Skip to Content
author's profile photo Former Member
Former Member

DrillDown in ALV for fixed values of domains


i want to create an ALV Grid with an structure that has data elements with domains containing fixed values.

As far as i know, in Table Controls and other dynpro fields refering to such domains, the drilldown function is automatically available.

In an ALV-Grid the values are available with the F4-Button.

Ok, you can select a value, but the value is shown in the grid is the fixed value not the short text of the value like it is in Table Controls. What I did is to implement an conversion exit to show the short text in the grid, but I am not really satisfied.

What I ask you: Is there a possability to show a field of the ALV-Structure with drilldown functionality automatically, when the domain has fixed values?

Thanks in Advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 08, 2004 at 12:10 PM

    Hi Michael

    You can make fields displayed as drilldown. However, the values should explicitly be filled for which you can utilize standard FMs retrieving domain values.

    For the procedure you can inspect the tutorial "An" target="_blank">">"An Easy Reference for ALV Grid Control".


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi to all,

      now I try to solve the problem in another way with normal drilldown function. But for it I need an event when a value from the drilldown is selected. The event DATA_CHANGED is not triggered. Does anyone know if it all there is an event for drilldown?

      Thanks in advance


  • Posted on Dec 08, 2004 at 01:49 PM

    You can define the short/medium/long text via fieldcatalog.


    *-->  Customer / Vendor Name
        CLEAR lwa_fieldcat.
        lwa_fieldcat-fieldname = 'NAME1'.
    *    lwa_fieldcat-ref_table = 'KNA1'.
    *    lwa_fieldcat-ref_field = 'NAME1'.
        lwa_fieldcat-scrtext_s  = 'C/V Name'(f11).             "10
        lwa_fieldcat-scrtext_m  = 'Customer/Vendor Name'(f12). "20
        lwa_fieldcat-scrtext_l  = 'Customer/Vendor Name'(f13). "40
        APPEND lwa_fieldcat TO r_it_fieldcat.

    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.