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: Akinocage Gajas
Country: Ghana
Language: English (Spanish)
Genre: Literature
Published (Last): 17 May 2006
Pages: 91
PDF File Size: 7.17 Mb
ePub File Size: 10.31 Mb
ISBN: 773-1-50496-540-2
Downloads: 43908
Price: Free* [*Free Regsitration Required]
Uploader: Dakasa

You must be Logged on to comment or cl_gui_frontend_servkces to a post. Now once file is fetched use suitable method to print it at windows printer. IF sy-subrc NE 0. After speaking with a colleague he suggested that I use the following Function Modules: You have authentication to access the URL link.

Does anyone have a better way of performing this action? Board index All times are UTC. Former Member Post author. Fetch the file from URL on your machine. No search term specified. From the selection screen allow a user to select a printer. Thank you and have a nice day! Could we use Cl_guu_frontend_services to create it and print using Adobe forms. See below string as example: The exercise pring are: 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?


– Printing Attachments Of Work Order Via IW32

Identify the URL 2. Post Your Answer Discard Cl_gui_frontsnd_services clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy cl_gui_frontend_servicss cookie policyand that your continued use of the website is subject to these policies. Sign up using Email and Password. April 25, 3 minute read. It is urgent requirement. It might happens with you that you are able to open the URL in browser but not able to fetch file in sap.

When the report is ran the contents of the uploaded file should be sent to the specified printer to be printed. Kind Regards, Ron Johns.

Just create a logical unit in your user’s PC pointing the server you want to use. So I would say why, before I would say how to do it I more or less have it working but I’m pretty sure there’s another vl_gui_frontend_services better way doing this.

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. Cl_gui_trontend_services 25, at Search or use up and down arrow keys to select an item.


SAP cl_gui_frontend_services=>execute method with abap program

Now Cl_gui_frontend_servicfs the URL means: The development can be broken into steps: See below string as example:. The older I get the better I was. Fetch file from your machine and print it. To add your printer instead of default printer here just add printer details in parameter: Now go and check you have the cl_gui_frontend_serfices outs waiting to be picked at your windows printer.

Where did it originate cl_gui_frontend_servics Sign up using Facebook. Call below method with parameters as shown here to print the PDF file at your windows default printer. I dont need to view or modify. Hi all, Putting on my functional hat, I’d be interested to know what the Business Requirement for the intial post was.

Thanks Christian for adding valuable info to the blog. If you are using Acrobat, substitute Acrobat.