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

Multiple documents in a PDF conversion

Former Member
0 Likes
578

Hello everyone,

I am writing a piece of ABAP which will convert a spool

file into a PDF file. This works fine where there is just

one document i.e. invoice to convert.

There is a file which will contain say 50 invoices and if

I run my ABAP it will convert the 50 invoices into just

one PDF file. Are there any techniques which will allow

me to split a spool file with the 50 invoices into 50

separate PDF files.

Any help much appreciated.

Cheers

Andy

3 REPLIES 3
Read only

Former Member
0 Likes
491

can you show your code?

call the fm: CONVERT_ABAPSPOOLJOB_2_PDF every time with a new spool number.

It would return a new internal table with odf data every time its being called.

Regards,

Ravi

Read only

0 Likes
491

Thanks for your reply.

Perhaps I'm not explaining myself very well.

Each individual spool file will have 50 invoices on it.

Calling the fm will simply convert this into a PDF

containing 50 invoices. I somehow need to split the

spool file into 50 individual PDF documents.

Andy

Read only

Former Member
0 Likes
491

Hello Andy,

If you start your convert from SAP spool, your are right it's too late to make 1 PDF file per invoice.

According of your SAP version, it's possible to create directly PDF file from SD application.

Otherwise, you have to split your invoice spool in ordrer to generate 1 PDF file per spool.

Regards

Sebastien