Skip to Content

ALV grid cell connecting to GOS_ATTACHMENT_LIST_POPUP

Hi everyone,

It has been sometime since I posted here. I just want to ask if anyone can give me an idea how to link a particular cell in the ALV to the corresponding attachment list?

For example I have a report displaying an ALV grid with customer number and other customer information. Requirement is to create a hotspot on a particular kunnr when there is an attachment list for the kunnr.

I could not simply use the statement GWA_FIELDCAT-HOTSPOT = 'X' as this will just make the whole column a hotspot.

I am using call method CL_SALV_TABLE=>FACTORY to build the catalog. Then used REUSE_ALV_GRID_DISPLAY_LVC to use I_CALLBACK_USER_COMMAND = 'ALV_USERCOMMAND' to instruct that user command '&IC1' to check whether the GT_SRGBTBREL has entry for that kunnr. Then call function GOS_ATTACHMENT_LIST_POPUP.

Thank you in advance for the help or if at least you can show me a demo or a link where I can get an idea how to proceed.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 15, 2016 at 09:13 AM

    Hi,

    Display an attachment icon in respective cell if an attachment exists, and use the double click event instead of hotspot. You can find lot of threads relating to this subject.

    Regards

    Kesav

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2016 at 10:54 AM

    You also have the demo program BCALV_TEST_GRID for instance (there are also the SALV*DEMO* and SALV*TEST* programs, and many more). You need to first generate the flight model data (cf http://wiki.scn.sap.com/wiki/display/ABAP/Flight+Data+Application+-+Demo+Example+for+Integration+Technologies ).

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.