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):||6 September 2004|
|PDF File Size:||13.60 Mb|
|ePub File Size:||18.64 Mb|
|Price:||Free* [*Free Regsitration Required]|
– Printing Attachments Of Work Order Via IW32
Snowythx4allthefishYuriT, Gothmog. See below string as example: However, if you are trying to do what I cl_gui_grontend_services 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 cl_guui_frontend_services send the prints from SAP. So I would cl_gui_forntend_services why, before I would say how to do it Kind Regards, Ron Johns.
IF sy-subrc NE 0. Prinf 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.
The SAP Fan Club Forums • View topic – print PDF file
Email Required, but never shown. No search term specified. Search or use up and down arrow keys to select an item. Sign up using Email and Password.
To add your printer instead of default printer here just add printer details in parameter: You must be Logged on to comment or reply to a post. Post as a guest Name. Thanks Christian for adding valuable info to the blog. The exercise requirements are: Regards Rich Abap KC: It is urgent requirement. There is no documentation for these commands other than what is listed below.
Other options for the command line are: Now go and check you have the print outs waiting to be picked at your windows printer. Now once file is fetched use suitable method to print it at windows printer. Board index All times are UTC. 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.
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.
Former Member Post author. It might happens with you that you are able to open the URL in browser but not able to fetch file in sap.
CL_GUI_FRONTEND_SERVICES SAP Class – Frontend Services
See below string as example:. Finally at the end I close the spool request. Sign up or prijt in Sign up using Google. April 25, 3 minute read.
JRSofty 1 16 Hi all, Putting on my functional hat, I’d be interested to know what the Business Requirement for the intial post was. Have you got succeed to print a pdf directly from SAP?
Fetch file from your machine and print it. Now you have to print this PDF. From the selection screen allow a user to select a printer.