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: 

Re:Getting Valus of domain

Former Member
0 Kudos

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

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Sorry I didn't understand.can you Explain me in detail.

Former Member
0 Kudos

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


Former Member
0 Kudos

Use function module GET_DOMAIN_VALUES