Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

unable to retreive values from selection screen built using WDR_SELEC_OPTIO

$
0
0

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  wd_this->m_handler->add_selection_field(    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


DATA
    lt_sel_item TYPE if_wd_select_options=>tt_selection_screen_item.

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



* Get the selection-screen items
  l_handler->get_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.      WHEN `PROCESS`.        ASSIGN <fs_sel_item>-m_value->* TO <fs_process>.      WHEN 'FLOW'.        ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_flow>.    ENDCASE.  ENDLOOP.

 

<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

 

Thanks

Bala Duvvuri


Viewing all articles
Browse latest Browse all 3667

Trending Articles