cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to display domain value range descriptions rather than values?

Former Member
0 Kudos

Hi All,

We're using ECC6.

I have a context input field on my view, which is bound to a data type that is bound to a domain. The values are brought back from the domain automatically but when the user selects a row, the fixed value is displayed rather than the description, i.e. the code for the value is displayed rather than the short description.

This is not acceptable. Before I go off and code something for this instead is there a parameter I can set to tell it to display the description rather than the code.

Many thanks,

Liz.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hallo Liz,

As far as i know, you do not have any parameter to which would reverse the output. You can either create a new domain or you can build your own value set and bind that to the context attribute.

I would create a new domain and use it.

Answers (1)

Answers (1)

vineetrrakesh
Explorer
0 Kudos

HI Liz,

You can read the domain name i guess, then you can use the Function Module DD_DOMVALUES_GET, make the call as

 
CALL FUNCTION 'DD_DOMVALUES_GET'
       EXPORTING
            domname        = i_dom_name
            text           = 'X'
            langu          = sy-langu
       IMPORTING
            rc             = lv_rc
       TABLES
            dd07v_tab      = t_dd07v
       EXCEPTIONS
            wrong_textflag = 1
            OTHERS         = 2.

you should get the short description in the field ddtext of result t_dd07v.

Now instead of creating a domain you can provide these values to the valid values for your context dynamically.

Hope this helps.

Regards

Vineet