GOS-Display all attchment for different object in one ALV
I need to create a ALV report in which there will be different objects in different coloumns.
on click of any row of that ALV i need to display all the attachments of those objects.
For EXAMPLE : coloumns will be
Service order notification functional location CU order
i need to display attachments of all these objects in one ALV pop up screen.
Please guide me in this.
Do we have any function module where i can give input as all these business objects and it can create aALV popup??
I tried GOS_ATTACHMENT_LIST_POPUP and it has option of appending multiple objects but it is only displaying attachment of only one object.
I can get all the attachment data from table srgbtbrel but i want to make these entries in ALV like a hyperlink.
like on click it should displcay all the attchments dat also.
Guys please guide me.
I already did a lot of research in SDN but did not get the right answer yet.
if possible paste the code, it will be very helpful.
Naimesh Patel replied
This is because of the bug in the method BROWSE_CONTAINER of the method CL_BROWSER. Method is using SY-TABIX to modify the Object and it is loosing the second object. So, if you have two objects going in the FM GOS_ATTACHMENT_LIST_POPUP, it only shows for the first one.
LOOP AT lt_bitem INTO lo_bitem. CALL METHOD lo_bitem->find EXPORTING it_bitem = gt_visited IMPORTING eo_bitem = lo_existing. IF NOT lo_existing IS INITIAL. MODIFY lt_bitem FROM lo_existing INDEX sy-tabix. " << ELSE.
This behavior is corrected in the [OSS Note 1476350 - GOS: Attachment list does not diplay all linked objects|https://service.sap.com/sap/support/notes/1476350].
You should call the FM GOS_ATTACHMENT_LIST_POPUP like this when you want more than one object's GOS list after the OSS note is implemented.
DATA: is_object TYPE sibflporb, t_objects TYPE standard table of sibflporb. is_object-instid = 'CUST1'. is_object-typeid = 'KNA1'. is_object-catid = 'BO'. is_objects-instid = 'CUST2'. is_objects-typeid = 'KNA1'. is_objects-catid = 'BO'. APPEND is_objects to t_objects. is_objects-instid = 'CUST3'. is_objects-typeid = 'KNA1'. is_objects-catid = 'BO'. APPEND is_objects to t_objects. CALL FUNCTION 'GOS_ATTACHMENT_LIST_POPUP' EXPORTING is_object = is_object ... TABLES it_objects = t_objects