Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase order attachments

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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