on 06-16-2011 11:41 AM
Hi,
I have imported in Sap Business One some standard report developed by Sap with Crystal Report (like Sales Invoice).
I have try to print my Invoices and all is OK, then I have try to print a Draft Invoice and, even in this case, is all ok. Then I have open the Crystal Report designer for this print module, and the entry point is the OINV table. How can he print succesful the Draft Invoice (that is in the ODRF table ObjType = 13)? Formula Field? I don't understand!!
Thank for the help!!
Marco
Hi Marco,
System report is much more complicated than normal standard report. It has all built-in relationships defined.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marco,
You only need a single Crystal report for this. Base it on a stored procedure which has two INT type parameters @DocKey and @ObjectId. Within your SQL create IF blocks to handle different @ObjectId values:
IF @ObjectId = 13 then use the invoices tables OINV/INV1 etc.
IF @ObjectId = 112 then use the draft tables ODRF/DRF1 etc.
Don't forget to put the @ symbol at the end of the parameter in the report itself. That is all that is needed to create a single report that works for both added invoices and draft invoices. You could extend the SQL to handle other @ObjectId values like 14 for AR Credit Notes and so on.
Regards,
Andrew.
Hi Andrew,
I'm using this approach but am finding that when I do a print preview on an AR Invoice before adding the doc, its not creating a record in ODRF tables. For sales orders however it is inserting a record in ODRF when I print preview before adding.
Is there some setting that needs to be enabled for this to happen?
Thanks,
John
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.