cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with FP_JOB_OPEN /CLOSE

Former Member
0 Kudos

Hi,

I am working on Multiple form outputs.It is like printing multple invoices.My goal is to get all invoices in only single pdf file.

I have called FM's FM_JOB_OPEN & CLOSE in loop and endloop.

Although i see a single spool number i still see multiple part numbers for the file.

Basically user wants to see all in one PDF rather than Multiple parts as i am presently getting .

Here is the output jpeg imaged i am getting [Image output|http://picasaweb.google.com/vara.kp/Spool?feat=directlink#5386561577288827010]

Inside loop these are parameters

fp_outputparams-nodialog = 'X'. " suppress printer dialog popup

fp_outputparams-dest = 'ZADS'.

fp_outputparams-ARCMODE = ''.

outside loop.

fp_outputparams-reqnew = 'X'.

I am clearing fp_outputparams at end of loop...

Do I have to maintain any other parameter which will stop doing it?

Rgds

Vara

Accepted Solutions (0)

Answers (2)

Answers (2)

Sandra_Rossi
Active Contributor
0 Kudos

Adobe forms do not work as previous technologies, you CAN'T merge several generated forms into one PDF. I mean, you can't do it in the ABAP. You must do it in the form itself, by creating a subform on the whole page, and repeat it. I've never done it. You may also use third-party softwares to merge several PDFs into one PDF. It has already been asked in Interactive Forms by Adobe forum.

Former Member
0 Kudos

Sandra,

Thank you for your input.

Could you throw some more light on this subform repeating.

Do we have any blogs or links whihc can help me build this?

Rgds

Vara

Former Member
0 Kudos

take the FP_JOB_OPEN/CLOSE outside the loop endloop.

open.

loop.

close.

Former Member
0 Kudos

Soumyaprakash,

I tried your recommendation .

It gives me core dump.

The following error text was processed in the system DV1 : Error SYSTEM_CORE_DUMPED occured. P1=0 
The error occurred on the application server sape-dev_DV1_00 and in the work process 0 . 
The termination type was: RABAX_STATE 
The ABAP call stack was: 
Function: ADS_SR_CONFIRM of program SAPLSPADS
Form: CONFIRM_SPOOL_REQUEST of program SAPLFPCOMP
Form: OUTPUT_FORM_SPOOL of program SAPLFPCOMP
Form: OUTPUT_FORMS of program SAPLFPCOMP
Function: FPCOMP_FORM_END of program SAPLFPCOMP
Function: /1BCDWB/SM00000091 of program /1BCDWB/SAPLSM00000091
Method: ONACTIONSEARCH of program /1BCWDY/6I1SHK7FK3KQ4HLJJ778==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/6I1SHK7FK3KQ4HLJJ778==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP

Looks like Sandra is right we got to work on form itself.. but unfortunately this is my first time of Adobe forms with multiple.

rgds

Vara

Former Member
0 Kudos

closing this ticket because it did not meet my requirement.

I will be working on online form inserting subforms..

former_member156446
Active Contributor
0 Kudos

You need to convert spool to OTF combined all the OTF structure and then convert to PDF after the loop