Skip to Content
0
Former Member
Feb 20, 2010 at 08:41 AM

Convert to PDF, Save and Print SAP Script

392 Views

Dear Experts,

I have a requirement to convert SAP script output to PDF format and save the same to local sytem as well get print immediately as soon as user executes VL03N by choosing output type

I have developed a Script and converted the the output to PDF using FM 'CONVERT_OTF'.

using method cl_gui_frontend_services=>file_save_dialog for TAKING THE DOWNLOAD FILE PATH AS USER INPUT

using FM 'GUI_DOWNLOAD' for DOWNLOADING THE PDF DATA to local system.

with this I am able to save the document to local system with PDF format where as I am not getting hard copy print from the printer.

can any one tell me if I need to add anything else to get Save and Print the document immediately as soon as user chooses the path to save

Thanks in Advance

Venkat