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.

Author: Gokasa Dalar
Country: Germany
Language: English (Spanish)
Genre: Music
Published (Last): 1 June 2004
Pages: 462
PDF File Size: 3.89 Mb
ePub File Size: 10.59 Mb
ISBN: 479-1-66240-562-1
Downloads: 76543
Price: Free* [*Free Regsitration Required]
Uploader: Vole

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?

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. It might happens with you that you are able to open the URL in browser but not able to fetch file in sap. 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. The exercise requirements are: Open link in a new tab.

Related Posts (10)  DD 1351-2 PDF

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?

April 25, at Identify the URL 2. Sign up using Email and Password. Thanks Christian for adding valuable info to the blog. Snowythx4allthefishYuriT, Gothmog. Sign up or log in Sign up using Google. Stack Overflow works best with JavaScript enabled. Former Member Post author. I more or less have it working but I’m pretty sure there’s another and better way cl_gui_frontenx_services this. The next time, please, open a cl_gui_feontend_services thread, and if you want add to your post a link to the thread you are tempted to raise from dead.

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.

However, if you are trying to do what I was which is to print a sequence of documents note that the print spooler used is the local pc’s spooler rather than the Cl_gui_frontend_servicew Spooler so your PDF can be printed at any time and not neccesarily in the sequence that you send the prints from SAP. Post Your Answer Discard By clicking “Post Your Cl_gji_frontend_services, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.


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.