2012 May 30 3:01 PM
Hi all,
I'm facing a little problem. I need to provide the ability to download some invoices in PDF using one RFC. The problem is that i can't find anything to return me that information (in raw, or something else).
Anyone knows a method to get invoice data raw based on invoice nr?
Regards,
Carlos
That's not the problem... The problem is that to generate that smart form we cannot use it directly. It has to be called from RLB_INVOICE, on the VF03 Tcode...
2012 May 30 3:30 PM
Why dont you use some BAPI which gives you the Invoice details and convert that to PDF in the calling side?
Also you can make use of RFC_READ_TABLE and read the Invoice tables.
2012 May 30 3:34 PM
Because I need the invoice with the correct format (smart form) and the correct values, that are not available that way.
2012 May 30 3:41 PM
2012 May 30 4:13 PM
I want to output the binary from the smartform generated pdf.
2012 May 30 4:33 PM
You have to design a custom RFC for this.
This RFC will take the invoice number as input, execute the smartform inside this and convert the output to binary content using CONVERT_OTF FM.
Check this link to convert to OTF.
http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm
2012 May 30 4:43 PM
That's not the problem... The problem is that to generate that smart form we cannot use it directly. It has to be called from RLB_INVOICE, on the VF03 Tcode...
2012 May 30 4:58 PM
Hi,
Can you explain the requirement?
You can send PDF's via output types in VF03.
Thanks,
Shambu
2012 May 30 5:52 PM
I know that, but i need to return that PDF through RFC call.
2012 May 30 5:57 PM
I think you need to copy the RLB_INVOICE and add the logic for calling the FM after the smartform is called.
2012 May 30 6:49 PM
I can't call the RLB manually, it has field needs that i don't have on the moment...
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |