Skip to Content
0

How to download attachments in a purchase order

Sep 15, 2017 at 07:10 PM

87

avatar image
Former Member

hi,

We need to download attached documents of Purchase orders, Work centers, Material docs , Equipment into Presentation server folders. Can you provide some existing programs or leads on how to do it.

Regards,

Sat

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Krishna Murthy Sep 16, 2017 at 05:26 AM
0

hi

u need report automatically download or user interaction downloading.

reafer below

tables: SGOSSTXT

SRGBTBREL

Table : SRGBTBREL
Fields : Values
RELTYPE : ATTA
INSTID_A : 5000000157 (PO)
TYPEID_A : BUS2012
CATID_A : BO

Functional Module: GOS_EXECUTE_SERVICE

reference package: SGOS

Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Sep 18, 2017 at 09:41 AM
0

To get list of attached documents use a class like cl_binary_relation=>read_links* then loop at links and read their content with a function module like so_document_read_api1. Then download those data to presentation server with methods of class cl_gui_frontend_services.

Share
10 |10000 characters needed characters left characters exceeded