Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

GOS-Display all attchment for different object in one ALV

HI Experts,,

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.


Abhinav shahi


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
        it_bitem = gt_visited
        eo_bitem = lo_existing.
    IF NOT lo_existing IS INITIAL.
      MODIFY lt_bitem FROM lo_existing INDEX sy-tabix.   " <<

This behavior is corrected in the [OSS Note 1476350 - GOS: Attachment list does not diplay all linked objects|].

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.

    is_object             = is_object
    it_objects            = t_objects


Naimesh Patel

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question