cancel
Showing results for 
Search instead for 
Did you mean: 

Export/Print Invoices to PDF Format Using Document Number

former_member609325
Discoverer
0 Kudos

Hello SAP gurus,

I have dozens, sometimes hundreds of invoices, that need to be exported and saved as individual PDF files.

I have been able to print/export a batch of specified invoices as PDFs however, the system, by default, assigns each PDF a unique spool number and saves each PDF file using the spool number as the file name. This isn't helpful because each PDF then needs to be opened to determine the invoice number and then subsequently renamed.

Is there a way to export/print invoices where the invoice number itself is used as the default file name? I know how to do this one invoice at a time, but need to do this with mass batches of invoices.

Another issue I run into is the the printer pop-up message with the options "Ok" or "Cancel" must be clicked for each and every invoice which is also very time consuming. What is the way around this from the user end?

I have searched for an answer in the various SAP forums for several days but I do not see any recently posted solutions to this scenario.

Thank you.

Martin

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member609325
Discoverer
0 Kudos

I do not have access to the developer side of SAP. I am using VF31 to print invoices but must either print and save them one at a time to PDF using the invoice number as the file name OR I can print them all to PDF but the system by default saves them using generated spool numbers as the file names which then creates the task of opening each file, determining the invoice number, and renaming it to the invoice number. See my original question. Both methods are extremely time consuming. Is there not a way to batch print to PDF and save using the very document numbers you are requesting as the file names?

Florian
Active Contributor
0 Kudos

Then you should contact your development-team/provider/whatever.

Florian
Active Contributor
0 Kudos

Don't print the invoices. Create pdf within the system and afterwards download all as a zip-file or put it on a server-path.

There is a bunch of solutions out there. So no need to ask, just search. For example this one:

https://wiki.scn.sap.com/wiki/display/Snippets/Convert+Smartform+to+PDF+format

afterwards do this one

https://wiki.scn.sap.com/wiki/display/ABAP/Zip+any+file+via+ABAP+using+CL_ABAP_ZIP

and last but not least this one

https://answers.sap.com/questions/4085800/index.html

or

https://answers.sap.com/questions/4541033/index.html

former_member609325
Discoverer
0 Kudos

I do not have access to the developer side of SAP. I am using VF31 to print invoices but must either print and save them one at a time to PDF using the invoice number as the file name OR I can print them all to PDF but the system by default saves them using generated spool numbers as the file names which then creates the task of opening each file, determining the invoice number, and renaming it to the invoice number. See my original question. Both methods are extremely time consuming. Is there not a way to batch print to PDF and save using the very document numbers you are requesting as the file names?