cancel
Showing results for 
Search instead for 
Did you mean: 

How to split spools into multiple pages and download them in local directory

former_member333737
Active Participant
0 Kudos

Hi Gurus,

I have a requirement where I am creating an spool of 100 pages of invoice details and I need to download them  in pdf format into separate pages on a local directory.

I am creating invoices with sap scripts.

Has anyone worked on such kind of requirement.

Waiting for a positive response.

Many Thanks,

Thanks & Regards,

Nikhil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The most easiest way would be to create separate spools for Invoice.

IF that is not an option, then you can go ahead and look at the OTF format and figure out where each page actually begins and ends.

If you look at the OTF table, it has the components TDPRINTCOM and TDPRINTPAR.

OP - Open Page and EP - End of page.

Split the internal table at these and you will get the OTF for a page.

Convert that to PDF and do the same process all over again for the rest of the OTF content.

Thanks,

Shambu

Former Member
0 Kudos

Hi Nikhil,

If you decide on separate spools, then you may run into a a spool overflow run time error. My 2 cents.

Regards,

Shravan

Former Member
0 Kudos