03-18-2019 7:50 PM
Hello Everyone,
I have a requirement to get list of all attached objects(Name and type would be enough) per transaction.
I tried the previous post, but could not get the right answer. I tried some tables like SOOD, SOFM, and SOFFCONT1, but none of them giving the link between the real object like Incoming invoice number.
I know there are lot of posts out there and I tried to find my answer, but I couldn't find it. Appreciate your help.
Thanks,
Kishore.
03-18-2019 8:03 PM
03-18-2019 8:03 PM
03-18-2019 10:42 PM
Please convert your "answer" into a comment (in the menu), because ANSWER is reserved to solutions only.
03-19-2019 5:28 AM
The following class might help you with GOS stuff: https://github.com/keremkoseoglu/ABAP-Library/blob/master/zcl_bc_gos_toolkit.abap
03-19-2019 10:07 AM
Hi Kishore,
You can use method 'read_links_of_objects' of class 'cl_binary_relation' to get all the attached documents.
Inputs can be referred from 'SRGBTBREL' table.
Cheers.
ls_object-instid = ls_header-ebeln. " info from SRGBTBREL table
ls_object-typeid = 'BUS2010'.
ls_object-catid = 'BO'.
append ls_object to lt_objects.
clear ls_object.
cl_binary_relation=>read_links_of_objects( " Reading all the linked attachments with the Document
exporting
it_objects = lt_objects
importing
et_links_a = lt_links_a).