on 2008 May 05 1:06 PM
Hi ,
I'm new in interactive forms.
I would like to know if it is possible to generate different forms in a loop(abap) and display all them
in only one PDF file?
Thanks you
Karim
Request clarification before answering.
Hi Karim,
actually, it's possible to merge Interactive Forms in one output PDF. You have to pass 'M' as getpdf on SFPOUTPUTPARAMS structure and fill parameter ASSEMBLE. At the end of the job, use function module FP_GET_PDF_TABLE to get the result.
You can check SAP example in program FP_CHECK_BATCH_PDF_RETURN. It's really simple.
Best regards,
Evandro Pizani Ramos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Evandro
I have check program FP_CHECK_BATCH_PDF_RETURN, but the logic of this program is only read several records, and display as ALV grid, then user can select each records and download one PDF file, it is still several different PDF files, not put several records into one PDF file.
And more, in my system, program FP_CHECK_BATCH_PDF_RETURN read no data in table SCUSTOM. After I add some data in debug mode, program call function FP_JOB_OPEN with error return, the exception is usage_error.
So with GETPDF is M and ASSEMBLE is X, function FP_JOB_OPEN will not work.
Do we have anothe related program of output data into single PDF file?
Thanks
Bin
I got it now.
The parameter ie_outputparams in funciton FP_JOB_OPEN must be set as: bumode = 'M', getpdf = 'M', assemble = 'X' or 'M', then follow code same as before, but no PDF return in each ADOBE form call.
After function FP_JOB_CLOSE, we need another function module FP_GET_PDF_TABLE to get the final PDF data, then convert it into binary data, save PDF file, got multiple print into one PDF file.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.