Skip to Content
author's profile photo Former Member
Former Member

Re:Getting Valus of domain

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2012 at 02: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


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2012 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2012 at 01:38 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2012 at 03:07 PM

    Use function module GET_DOMAIN_VALUES

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.