on 02-22-2011 4:12 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.