cancel
Showing results for 
Search instead for 
Did you mean: 

How to Captured Value into Select-Options Range Table Without "Enter"

Former Member
0 Kudos

Hi,

I defined a set of Select-Options in the Web Dynpro. I found that the value for the Select-Options will not be captured whenever I manually type in the value instead of choosing it from F4 Help Drop Down.

However, this problem can be resolved if I manually type in the value for Select-Options in the Selection Field and I press "Enter". Without pressing "Enter" value will not be captured.

Any solution for this issue? Please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In slect options after selecting value, click on OK or double click selected item you get that value automatically, no need to press enter again, by default you get that.

Tell me what exactly your problem?

Cheers,

Kris.

Former Member
0 Kudos

Hi Kris,

My problem is only when the user key in the value themselves rather than choosing it from Select-Options drop down value. Most of the time user will know what value to key in and will skip the step to choose from the Drop Down List. Thus, if this happen, the value keyed in by the user will not be able to capture into the range table.

I am using this logic to capture the value for selection item:

wd_this->m_helper->get_selection_screen_items(

IMPORTING et_selection_screen_items = lt_sel_item ).

* Values From Selection Screen

LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.

CASE <fs_sel_item>-m_id.

WHEN `PERNR`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_pernr>.

WHEN `BUKRS`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_bukrs>.

WHEN `STAT2`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_stat2>.

WHEN `WERKS`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_werks>.

WHEN `BTRTL`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_btrtl>.

WHEN `PERSG`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_persg>.

WHEN `PERSK`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_persk>.

WHEN `ABKRS`.

ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_abkrs>.

WHEN `BEGDA`.

ASSIGN <fs_sel_item>-m_value->* TO <fs_begda>.

ENDCASE.

ENDLOOP.

E.g. User key in the BUKRS without using the Drop Down Value provided by the Select-Options. For this case, <fs_bukrs> table will be initial as no value is captured.

Edited by: Girish Nabar on Apr 21, 2011 8:55 AM