on 12-02-2009 6:24 AM
Hi All,
We have created a select option for a field of our database table. This field has a value range in its domain. For Example
Fix Val Short Description
01 INR
02 US
03 EUR
When i press the f4 help of select option, am able to see both the number and the description in the F4 help. But when i select a value, it is only displaying the fixed value (01) in the select option field.
But i want the Short Description to be displayed instead of the fixed value.
Please tell me how to proceed.
Thanks in advance.
Hi,
When there are any values in the domain range it considers only the fixed values (keys)
to get the description what you can do is:
1.create a your own f4 help with the field description.
2.in the select options you can give the name of F4 help when you are populating the selection field.
wd_this->m_handle->add_selection_field(
i_description = 'Candidate Profit Center'
i_id = '/MRSS/T_RMOR_PROF_CENTER'
*i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp*
*i_value_help_id = '/MRSS/SH_RM_PC_GROUP'*
it_result = lt_range_table
i_read_only = read_only ).
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
wd_this->m_handle->add_selection_field(
i_description = 'Candidate Profit Center'
i_id = '/MRSS/T_RMOR_PROF_CENTER'
i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp
i_value_help_id = '/MRSS/SH_RM_PC_GROUP'"name of the search help it_result = lt_range_table
i_read_only = read_only ).
Priya
Hi,
have you checked the options at SH/select option for that field...also check at context attribute levell.
I guess, based on the selection you need to popuplate the same to the select option...
wehn we test the wdr_test_select_options you can find the same...
the DE with fixed values will take only the keys...try to have your own SH that returns the TEXT instead of key...
and give this to the selec option..then this should work..
Regards,
Lekha.
Edited by: Lekha on Dec 2, 2009 12:22 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.