07-22-2011 10:18 AM
Hi Experts,
While creating Purchase order,there is an option to attach files or documents.Now the requirement is
to develop a report.Once the purchase order is given as input, then the list of documents attached to
the purchase order are to be displayed and once clicks on the document, the document has to be opened.
Please suggest me any classes are availbale to know how many documents are attached to PO and how to read those documents.
Thanks in advance.
S.Gangireddy
07-22-2011 1:00 PM
Hi,
please have a look to the cl_gos_manager class. To view an attachment you can use a code something like:
DATA: go_myobject TYPE REF TO cl_gos_manager.
CREATE OBJECT go_myobject.
CALL METHOD go_myobject->start_service_direct
EXPORTING
ip_service = 'VIEW_ATTA'
is_object = ls_object
io_container = lo_container.
Hope this helps,
kind regards,
Dirk