09-11-2008 3:03 PM
Hello Abappers,
I have a field in table with length 1 char.
The Domain is defined for fixed values as
A - Acceptable
N - Not Acceptable.
When I retrieve this field in ALV, it is showing A or N, But I have to retrieve the text against that as mentioned in Domain fixed values which is If A then it should print Acceptable in the grid.
How to do that?
Please reply.
Regards,
Rahul
09-11-2008 3:06 PM
09-11-2008 3:09 PM
Hi Rahul,
It will obviously show the value of the domain that you have maintained. If I have understood uor requirement correctly, u have to manipulate the displayed value in the the ALV display with 'case' statement for 'A' and 'N' and then use another text field to actually display the text in ALV.
Or you can use the std table given by Valter. Do select single for the domain on this table in the ALV display logic.
Regards,
Sanj.
Edited by: Sanjana S on Sep 11, 2008 4:10 PM
09-11-2008 3:09 PM
To retrieve domain value text use FM DOMAIN_VALUE_GET.
call function 'DOMAIN_VALUE_GET'
exporting
i_domname = 'CK_STATUS'
i_domvalue = l_dom_value
importing
e_ddtext = wa_final-status
exceptions
not_exist = 1
others = 2.
09-11-2008 3:53 PM