2010 Oct 06 4:06 PM
Hi,
I created a Z table with a field 'zstatus' and defined the fixed values 0,1,2 with the respective value range Doc not created, Doc created and Doc cleared.
Now in the output ALV report i have this field 'zstatus' with number 0 or 1 or 2. But for the enduser somehow they should be able to see the description defined in the value range as well.
Can you suggest me how can i display the description also in the output or is it possible to have 'F4' or search help or drill down in the alv output field.
Regards,
Anbu.
Hi,
I created a Z table with a field 'zstatus' and defined the fixed values 0,1,2 with the respective value range Doc not created, Doc created and Doc cleared.
Now in the output ALV report i have this field 'zstatus' with number 0 or 1 or 2. But for the enduser somehow they should be able to see the description defined in the value range as well.
Can you suggest me how can i display the description also in the output or is it possible to have 'F4' or search help or drill down in the alv output field.
Regards,
Anbu.
2010 Oct 06 4:51 PM
If you are using cl_gui_alv_grid then this can be easily displayed using fieldcatalg option f4availabl = 'X' and pass the ref. tab and ref. field.
2010 Oct 06 4:53 PM
Hi,
you can create a dictionary structure which includes the text field. Then you create a global table in your program using this structure.
After getting the data from your DB table you can add the text to this new field.
After that you use this global table for displaying your alv.
Regards,
Martin
2010 Oct 13 10:12 AM
Hi,
Got the solution, used the function module GET_DOMAIN_VALUES, pass the domain name, and TEXT ='X', you will get all the value range text defined in the domain.
Thanks
-Anbu
Edited by: anbu logu on Oct 13, 2010 11:13 AM
2010 Oct 13 10:22 AM
Hi,
Got the solution, used the function module GET_DOMAIN_VALUES, pass the domain name, and TEXT ='X', you will get all the value range text defined in the domain.
Thanks
-Anbu
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |