|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Printing Attachments Of Work Order Via IW32
witll check the sy-ucomm and print the attachments.
printing the attahcments, we need to read the contents of the attachment using
FM ‘SO_DOCUMENT_READ_API1' into
need to pass the unique identification number for the attachment (I_WORK-INSTID_B)
to the FM and fetch the contents of the attachment into internal table ‘I_TAB_OBJCONTX’.
are using class ‘CL_GUI_FRONTEND_SERVICES’ to get the attachment path and to
, we need to call METHOD ‘CL_GUI_FRONTEND_SERVICES=>GET_SAPGUI_WORKDIR’
to fetch the path/name of the attachment.
If attachment is of URL type, then this
FM will give us the full path of the attachment else if attachment is of
external type, then name of the attachment will be fetched.
After that we need to download it on
the local system using FM ‘GUI_DOWNLOAD’.
print the attachment using method ‘CL_GUI_FRONTEND_SERVICES=>EXECUTE’
with document path and ‘Print’ command.
The selected attachments will be printed.
of printing attachments via IW32:
Now, let’s see how enhancement tab
displays the attachment details.
Go to IW32. Open work order having attachments.
Go to enhancement tab, it will display attachment list.
Select the attachment and press ‘Print’ button.
It will display message at the bottom after download is
Once downloading of the attachment is done, attachment is
opened for printing and once printed it is closed.
So, the required attachments are printed.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards