cancel
Showing results for 
Search instead for 
Did you mean: 

Search Help - Username - in Select Options

former_member189058
Active Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)