cancel
Showing results for 
Search instead for 
Did you mean: 

Report to send spool (pdf form) to printer

jepi_flanders
Participant
0 Kudos

Hello Gurus,

I've got the following requirement: there is a background job that daily generates pdf forms and sends them to the spool: I need now a report that, knowing the spool id, will send the forms to the user printer.

My starting point is the spool, as follows:

I tried already with a report, making use of the FM  RSPO_OUTPUT_SPOOL_REQUEST but unfortunately the output is not sent to the printer.

I can see the following error while looking at the processed output:

The error mentioned is saying

Unable to initialize device __DEFAULT

note: If I double click on the pdf icon in the first screen shot above, I can get the pdf document rendered correctly within SAP.

Do you have any alternative FM / program to get my requirement satisfied?

Thanks a lot in advance for the help.

With best regards,

JFlanders

Accepted Solutions (0)

Answers (2)

Answers (2)

Sandra_Rossi
Active Contributor
0 Kudos

I think the easiest way to do it is to use the RSPO0020 program (cf SAP note 2268476 Download print data from an Adobe PDF spool to a file https://service.sap.com/sap/support/notes/2268476), download the PDF to the user's desktop and display it via Acrobat Reader and let the user print from there (there are also possibilities to automate the print, which was already discussed in the forum). There are also many consulting SAP notes about the PDF spool files, maybe one of them could help you.

jepi_flanders
Participant
0 Kudos

Hello ,

Thanks a lot for your answer. Indeed, I would need something to automate the print, like you said. Unfortunately, all my searches in the forum and on OSS were unsuccessful.

Do you have any pointer to possible solutions at hand? It would help me a lot!

Thanks again and kind regards,

JF

Sandra_Rossi
Active Contributor
0 Kudos

search this way: acrobat reader command line print site:scn.sap.com

former_member202771
Contributor
0 Kudos

Hi Jepi,

Collect spool ids from TSP01 table and submit to RSNAST00 program.

Thanks,

Anil

jepi_flanders
Participant
0 Kudos

Thank you for answer, .

Unfortunately, I have no NAST entry for the spool id, so I cannot submit RSNAST00 program.

Is there any other option?

Thanks,

JF