09-15-2017 8:10 PM
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
09-16-2017 6:26 AM
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
09-18-2017 10:41 AM
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.
06-25-2023 9:56 PM
Hi,
maybe you can help me with my situation.
I need to download material documents linked to tables DRAD/DRAW.
First I get entries from DRAD table where OBJKY = material_number.
Then I loop at DRAD entries and get entry from DRAW table where DOKAR, DOKNR, DOKVR and DOKTL are the same.
When should I call this cl_binary_relation=>read_links?
What should I pass as an argument inside IS_OBJECT?
Also, so_document_read_api1 accepts document ID, is it even returned by cl_binary_relation=>read_links?
Thanks in advance and kind regards.