My problem was to print a pdf from SAP document management system I solved this using the classic function cl_gui_frontend_services=>execute giving as. For printing the attahcments, we need to read the contents of the attachment ‘ CL_GUI_FRONTEND_SERVICES’ to get the attachment path and to print them. CL_GUI_FRONTEND_SERVICES is a standard SAP object class available within R/3 SAP systems depending on your version and release level. Below is the.
|Published (Last):||1 June 2004|
|PDF File Size:||3.89 Mb|
|ePub File Size:||10.59 Mb|
|Price:||Free* [*Free Regsitration Required]|
It could also be printed on a totally different printer dependant on the users printer settings.
The SAP Fan Club Forums
Now once file is fetched use suitable method to cl_gui_frontend_sfrvices it at windows printer. When the report is ran the contents of the uploaded file should be sent to the specified printer to be printed. JRSofty 1 16 Other options for the command line are: IF sy-subrc NE 0. After speaking with a colleague he suggested that I use the following Function Modules: Have you got succeed to print a pdf directly from SAP?
I think it would be nice to have an additional information in your blog regarding the use of Adobe Acrobat Reader command line parameters, that is exactly what your example does. The exercise requirements are: Open link in a new tab.
When pdf cl_gui_frontend_servides prints then it opens the acrobat reader and the program waits until I close the acrobat reader. If you are using Acrobat, substitute Acrobat. Regards Rich Abap KC: For your understanding refer the code below.
April 25, 3 minute read. Does anyone have a better way of performing this action?
Sap DMS – direct print of pdf drawings on Windows frontend – Problem Solved Problem Solved
Where did it originate from? I dont need to view or modify. Hi Amit, I think it would be nice to have an additional information in your blog regarding the use of Adobe Acrobat Reader command line prinnt, that is exactly what your example does.
From the selection screen allow a user to upload a file. This allowed the cl_gui_frontene_services to be printed as is expected, but without all the cl_gui_grontend_services characters and it remembered to put in the blank lines as they are in the actual text file.
When I say this more or less works, basically I’m getting an output to the printer, but if there are empty lines separating text then these are not carried over during the print process. Fetch file from your machine and print it. There is no documentation for these commands other than what is listed below. Prlnt Regards, Ron Johns. No search term specified. The fact is that my file is not on my PC but on a server which it’s necessary to connect to reach it, have you a idea to help me?
Tables explanation is out of scope of this document. Why not just print it on the PC? Search or use up and down arrow keys to select an item. Just create a logical unit in your user’s PC pointing the server you want to use.