11-18-2012 10:31 AM
Hello Experts,
I have stored fixed values m for male and f for female at domain level.while displaying it is showing m and f . I need to show it as male and female.can any one answer me please?thanks in advance.
Moderator Message: Please search before posting your question. Thread locked.
Message was edited by: Suhas Saha
11-18-2012 11:00 AM
When defining domain values, add a text, then in your dynpro when defining the dropdown give a "L" attributes, and define a correct width. (NB: Usually we use upper case values.)
Regards,
Raymond
11-18-2012 1:38 PM
11-18-2012 2:51 PM
Hi Santosh,
As i understand about your query, you want the short text for fixed values not as single value domain thenyou should use the function module which as i pasted a below piece code.
Here, one of the example as pasted below. you can follow below one based on that you would have write your own code.
Please, check below piece code and i hope it will clear your query.
DATA:
fs_taba TYPE dd07v.
DATA:
it_taba TYPE STANDARD TABLE OF dd07v,
it_tabb TYPE STANDARD TABLE OF dd07v.
CALL FUNCTION 'DD_DOMA_GET'
EXPORTING
domain_name = 'XFELD'
langu = sy-langu
withtext = 'X'
TABLES
dd07v_tab_a = it_taba
dd07v_tab_n = it_tabb
EXCEPTIONS
illegal_value = 1
op_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE: 'The fixed values for the domain','''XFELD''','are:-'.
LOOP AT it_taba INTO fs_taba.
WRITE:
/ sy-tabix,fs_taba-domvalue_l CENTERED ,fs_taba-ddtext CENTERED.
ENDLOOP.
ULINE.
Thanks,
Sekhar
11-18-2012 3:07 PM