Hi,
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
Michael
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">www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf">"An Easy Reference for ALV Grid Control".
*--Serdar
You can define the short/medium/long text via fieldcatalog.
Peter
... *--> 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