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: Voodoozragore Gardaramar
Country: Latvia
Language: English (Spanish)
Genre: Finance
Published (Last): 12 June 2006
Pages: 185
PDF File Size: 5.16 Mb
ePub File Size: 14.94 Mb
ISBN: 827-1-56308-978-7
Downloads: 48988
Price: Free* [*Free Regsitration Required]
Uploader: Gardagar

I more or less have it working but I’m pretty sure there’s another and better way doing this.

IF sy-subrc NE 0. Thanks Christian for adding valuable info to the blog. It’s not perfect but it’s works. You have cl_gki_frontend_services to access the URL link. Hi all, Putting on my functional hat, I’d be interested to know what the Business Requirement for the intial post was. It is urgent requirement.

SAP cl_gui_frontend_services=>execute method with abap program

By using our site, you acknowledge that you have read cl_gui_frontend_servlces understand our Cookie PolicyPrivacy Policyand our Terms of Service. April 25, at cl_gui_frontfnd_services When the report is ran the contents of the uploaded file should be sent to the specified printer to be printed. Identify the URL 2. What I’ve got so far, which more or less works is this: 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?

And is it the same principe pring excel file and word file? April 25, 3 minute read. These are unsupported command lines, but have worked for some developers. Now Identify the URL means: IF sy-subrc EQ 0. No search term specified.

  FAGOR 1F-2609 PDF

Finally at the end I close the spool request.

CL_GUI_FRONTEND_SERVICES print and delete file

Email Required, but never shown. Could we use SAP to create it and print using Adobe forms. Thank you and have a nice day! Thanks and happy new year! Now once file is fetched use suitable method to print it at windows printer. So I would say why, before I would say how to do it See below string as example:. From the selection screen allow a user to upload a file.

When pdf file prints then it opens prjnt acrobat reader and the program waits cl_gui_frontend_zervices I close the acrobat reader.

Hi antho59, I’m very interested on your topic “print PDF file”. 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 prnit dead. Why not just print it on the PC? Fetch the file from URL on your machine.


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. Call below method with parameters as shown here to print the PDF file at your windows default printer. Open link in a new tab.


Tables explanation is out of scope of this document. You must be Logged on to comment or reply to a post. Anything you can do using cl_gu_frontend_services “C: See below string as example: Search or use up and down arrow keys to select an item. I dont need to view or modify. 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.

Fetch file from your machine and print it. Just create a logical unit in your user’s PC pointing the server you want to use. JRSofty 1 16 Snowythx4allthefishYuriT, Gothmog.

After speaking with a colleague he suggested that I use the following Function Modules: 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. Board index All times are UTC. From the selection screen allow a rpint to select a printer.

Post as a guest Name. Now you have to print this PDF. Have you got succeed to print a pdf directly from SAP? Seems pretty simple but challenge here is the file is at prinr server and you are having the path to file in the form of URL and not the file with you.