Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Domain text

Former Member
0 Kudos

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

4 REPLIES 4

valter_oliveira
Active Contributor
0 Kudos

Check table DD07T.

Regards,

Valter Olvieira.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thank You