Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

unable to retreive values from selection screen built using WDR_SELEC_OPTIO

Hi All,

I have created a selection screen as below

lr_field = wd_this->m_handler->create_range_table( 'YFMTFLOW' ).
*  ASSIGN lr_field->* TO <fs_range>.
*  ls_date-sign   = 'I'.
*  ls_date-option = 'EQ'.
*  ls_date-low    = 'US'.
*  APPEND ls_date TO <fs_range>.
* Add the select-option to the group
    i_id           = 'FLOW'
    i_within_block = 'PROC'
    i_no_intervals = abap_true
    it_result      = lr_field ).

If i enter some value and click a button to retireve the values as below

    lt_sel_item TYPE if_wd_select_options=>tt_selection_screen_item.

types: ty_flow type range of yfmtflow.
    <fs_sel_item> LIKE LINE OF lt_sel_item,
    <fs_process>   TYPE yfmtprocess,
    <fs_flow>   TYPE ty_flow.

* Get the selection-screen items
    IMPORTING et_selection_screen_items = lt_sel_item ).

* Retrieve the values from the select-options items
  LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.
    CASE <fs_sel_item>-m_id.
        ASSIGN <fs_sel_item>-m_value->* TO <fs_process>.
      WHEN 'FLOW'.
        ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_flow>.

<fs_flow> is empty

but after I enter value and then press enter and then click the button to retrieve the values I am able to get low value <fs_flow> not the sign and option

Is it the standard functionality ,if yes how can we overcome


Bala Duvvuri

Former Member
Not what you were looking for? View more on this topic or Ask a question