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.
||9 July 2014
|PDF File Size:
|ePub File Size:
||Free* [*Free Regsitration Required]
April 26, at 6: Kind Regards, Ron Johns. No search term specified. Does anyone have a better way of performing this action? Fetch the file from URL on your machine. 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. Just create a logical unit in your user’s PC pointing the server you want to use.
Identify the URL 2. Have you got succeed to print a pdf directly from SAP? Why not just print it on the PC?
SAP cl_gui_frontend_services=>execute method with abap program
Former Member Post author. For your understanding refer the code below.
Now go and check you have the print outs waiting to be picked at your windows cl_gui_fronntend_services.
Thanks Christian for adding valuable info to the blog. Thank you cl_gui_frontend_serbices have a nice day! Where did it originate from? You have authentication to access the URL link. IF sy-subrc NE 0. 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.
And is it the same principe with excel file and word file?
Sap DMS – direct print of pdf drawings on Windows frontend – Problem Solved Problem Solved
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. I dont need to view or modify. There is no documentation for these commands other than what is listed below. Snowythx4allthefishYuriT, Gothmog. What I’ve got so far, which more or less works is this: Anything you can do using your “C: Finally at the end I close the spool request.
Sign up or log in Sign up using Google. April 25, 3 minute read. From the selection screen allow a user to select a printer. Now you have to print this PDF. Now once file is fetched use suitable method to print it at windows printer.
Now Identify the URL means: See below string as example:. 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. 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.
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. After speaking with a colleague he suggested that I use the following Function Modules: The older I get the better I was.
CL_GUI_FRONTEND_SERVICES print and delete file
It could also be printed on a cl_gui_fronhend_services different printer dependant on the users printer settings. Hi all, Putting on my functional hat, I’d be interested to know what the Business Requirement for the intial post was. Tables explanation is out of scope of this document. Other options for the command line are: Hi antho59, I’m very interested on your topic “print PDF file”.