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):||12 May 2006|
|PDF File Size:||18.28 Mb|
|ePub File Size:||7.26 Mb|
|Price:||Free* [*Free Regsitration Required]|
Board index All times are UTC. Fetch the file from URL on your machine. Cl_gui_frontend_servces pretty simple but challenge here is the file is at some server and you are having the path to file in the form of URL and not the file with you.
Execute method of SAP CL_GUI_Frontend_services class – ABAP OO
It’s not perfect but it’s works. 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.
For your understanding refer the code below. Thank you and have a nice day!
– Printing Attachments Of Work Order Via IW32
Does anyone have a better way of performing this action? Search or use up and down arrow keys cl_gui_frontend_servoces select an item. Just create a logical unit in your user’s PC pointing the server you want to use. The older I get the better I was.
No search term cl_gui_fronend_services. Snowythx4allthefishYuriT, Gothmog. Now once file is fetched use suitable method to print it at windows printer. Now go and check you have cl_gui_frontend_servicees print outs waiting to be picked at your windows printer. Thanks and happy new year! Post as a guest Name.
And is it the same principe with excel file and word file? The exercise requirements are: Former Member Post author. When pdf file prints then it opens the acrobat reader and the program waits until I close the acrobat reader.
Where did it originate from? If you are using Acrobat, substitute Acrobat. The development can be broken into steps: Other options for the command line are: Identify the URL 2. Email Required, but never shown. See below string as example: Tables explanation is out of scope of this document. Hi all, Putting on my functional hat, I’d be interested to know what the Business Requirement for the intial post was.
From the selection screen allow a user to select a printer. It might happens with you that you are able to open the URL in browser but not able to fetch file in sap.
Call below method with parameters as shown here to print the PDF file at your windows default printer. These are unsupported command lines, but have worked for some developers. Thanks Christian for adding valuable info to the blog. There is no documentation for these commands other than what is listed below.
ABAP PRINT PDF FILE
Sign up or log in Sign up using Google. The next time, please, open a new thread, and if you want add to your post a link to the thread you are tempted to raise from dead. Why not just print it on the PC?