Skip to Content
avatar image
Former Member

How to download attachments in a purchase order

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 16, 2017 at 05: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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 18, 2017 at 09: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.

    Add comment
    10|10000 characters needed characters exceeded