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):||14 April 2012|
|PDF File Size:||3.2 Mb|
|ePub File Size:||5.38 Mb|
|Price:||Free* [*Free Regsitration Required]|
What I’ve got so far, which more or less works is this: These are unsupported command lines, but have worked for some developers. To add your printer instead cl_guu_frontend_services default printer here just add printer details in parameter: Identify the URL 2.
Open link in a new tab. 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. Search or use up and down arrow keys to select an item.
Fetch file from your machine and print it. 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.
Fetch the file from URL on your machine.
Former Member Post author. Could we use SAP to create it and print using Adobe forms. Other options for the command line are: IF sy-subrc EQ 0. April 25, at Call below method with parameters as shown here to print the PDF file at your windows default printer. Sign up or log in Sign up using Google. It might happens with you that you are able to open the URL in browser but not able to fetch file in sap.
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?
ABAP PRINT PDF FILE – 程序园
The development can be broken into steps: 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 SAP Spooler so your PDF can be printed at any time and not neccesarily in the sequence that you send the prints from SAP.
Why not just print it on the PC?
Hi all, Putting on my functional hat, I’d be interested to know what the Business Requirement for the intial post was. I think it would be cl_gui_frontend_servives 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.
So I would say why, before I would say how to do it Does anyone have a better way of performing this action?
Sap DMS – direct print of pdf drawings on Windows frontend – Problem Solved Problem Solved
Tables explanation is out of scope of this document. Snowythx4allthefishYuriT, Gothmog. I dont need to view or modify. Now go and check you have the print outs waiting to be picked at your windows printer. Thank you and have a nice day!
The SAP Fan Club Forums
See below string as example:. JRSofty 1 16 Just create a logical unit in your user’s PC pointing the server you want to use. When pdf file prints then it opens the acrobat reader and the program waits until I cl_gui_frontend_segvices the acrobat reader. After speaking with a colleague he suggested that I use the following Function Modules: Where did it originate from?
CL_GUI_FRONTEND_SERVICES SAP Class – Frontend Services
IF sy-subrc NE 0. Anything you can do using your “C: It could also be printed on a totally different printer dependant on the users printer settings. From the selection screen allow a user to select a printer.