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):||17 September 2015|
|PDF File Size:||1.11 Mb|
|ePub File Size:||2.81 Mb|
|Price:||Free* [*Free Regsitration Required]|
Search or use up and down arrow keys to select an item. Have you got succeed to print a pdf directly from SAP? IF sy-subrc NE 0. Anything you can do using your “C: Post as a guest Name.
No search term specified. I dont need to view or modify.
Regards Rich Abap KC: This allowed the file to be printed as is expected, but without all the control characters and it remembered to put in the blank lines as they are in the actual text file.
These are unsupported command lines, but have worked for some developers.
Sap DMS – direct print of pdf drawings on Windows frontend – Problem Solved Problem Solved
Identify the URL 2. April 25, at From the selection screen allow a user to select a printer. From the selection screen allow a user to upload a file. Hi all, Putting on my functional hat, I’d be interested to know what the Business Requirement for the intial post was. The exercise requirements are: Thanks Christian for adding valuable info to the blog.
Now once file is fetched use suitable method to print it at windows printer. Fetch file from your machine and print it.
The SAP Fan Club Forums
There is no documentation for these commands other cl_gui_frontend_servlces what is listed below. Just create a logical unit in your user’s PC pointing the server you want to use.
It might happens with you that you are able to open the URL in browser but not able to fetch file in sap. Email Required, but never shown. Former Member Post author.
– Printing Attachments Of Work Order Via IW32
However, if you are trying to do what I was which is to print a sequence of documents note that the print spooler cl_ggui_frontend_services is the local pc’s spooler rather than the SAP Spooler so your PDF can be printed at any time and not neccesarily in the sequence that you send the prints from SAP.
Other options for the command line are: JRSofty 1 16 Now Identify the URL means: Finally at the end I close the spool request. You must be Logged on to comment or reply to a post.
ABAP PRINT PDF FILE
After speaking with a colleague he suggested that I use the following Function Modules: When pdf ck_gui_frontend_services prints then it opens the acrobat reader and the program waits until I close the acrobat reader. For your understanding refer the code below. Why not just print it on the PC? Seems 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.
Kind Regards, Ron Johns. 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 parameters, that is exactly what your example does. The older I get the better I was. Board index All times are UTC.
It’s not perfect but it’s works.
Fetch the file from URL on your machine.