on 06-13-2008 6:31 PM
Hi,
I have created a selection field for the data element XUBNAME (username).
The domain of this data element is also XUBNAME and has the value table USR01.
This is how I created the selection field
* create a range table
lt_range_table = wd_this->g_sel_opt_handler->create_range_table( i_typename = 'XUBNAME' ).
* add a new field to the selection
wd_this->g_sel_opt_handler->add_selection_field( i_id = 'S_BNAME'
it_result = lt_range_table ).
A select-options is visible on the selection screen. However, there is no value help assiciated with it.
If I simply create an input field and bind it to an attribute of type XUBNAME, the value help is automatically associated with the input field.
But this is not hapenning with the selection field.
Any idea, what should I do?
Regards,
Reema.
Hi Reema
For creating serach help
use
CALL METHOD LO_R_HELPER_CLASS1->ADD_SELECTION_FIELD
EXPORTING
I_ID = 'NAME'
IT_RESULT = lt_range_table1
I_OBLIGATORY = ABAP_FALSE
I_VALUE_HELP_STRUCTURE = 'USR21'
I_VALUE_HELP_MODE = '0'
I_VALUE_HELP_TYPE = 'SEARCHHELP'
I_VALUE_HELP_STRUCTURE_FIELD = 'BNAME'
.
see [link|http://help.sap.com/saphelp_nw70/helpdata/EN/45/bf07361248003de10000000a11466f/content.htm]
Regards
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.