Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

getting split PDF file for each individual invoice while taking SAP dump for multiple invoices through print program

praveen_kumar132
Participant
0 Likes
2,034

Hi Gurus,

my challenge here is i have print program, where can give multiple invoice and download to PDF.

here it will generate single PDF with all invoices in multiple pages.

i want to generate single PDF of individual invoice. please help to achieve this,

getting split PDF file for each individual invoice while taking SAP dump for multiple invoices  through print program


Regards,

Praveen.

Hi Gurus,

my challenge here is i have print program, where can give multiple invoice and download to PDF.

here it will generate single PDF with all invoices in multiple pages.

i want to generate single PDF of individual invoice. please help to achieve this,

getting split PDF file for each individual invoice while taking SAP dump for multiple invoices  through print program


Regards,

Praveen.

5 REPLIES 5
Read only

krishnaananth
Active Participant
0 Likes
1,294

Hi,

Slightly change the code by adding smartform function in loop.

http://scn.sap.com/docs/DOC-10364

Regards,

Ananth

Read only

0 Likes
1,294

Thanks Ananth,

here  we are using sapscript  and already in production. cannot go for smart form as of now

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,294

You may concatenate several OTF spool data, and call CONVERT_OTFSPOOLJOB_2_PDF. I think you'll find several answers how to do it in the forum.

Read only

0 Likes
1,294

Hi Sandra,

while passing multiple invoice , how can can get individual spool for individual invoice.

now i am getting only one spool while passing multiple invoices in my program

regards,

Praveen

Read only

0 Likes
1,294

Oh sorry, I guess your question is mainly how to get only one spool for each invoice (it seems that currently, you have several forms going into one spool). There may be several reasons. You must call function module 'CLOSE_FORM' between each form. You must also force the forms not reusing the same spool, by using parameter OPTIONS-TDNEWID = 'X' in function module OPEN_FORM.