Skip to Content
avatar image
Former Member

Regarding Select options

Hi,

I have created the select option in my webdynpro component , when i enter the values through f4 first time

it is capturing the values correctly and display it in another page , when i am executing the application with new values it shows the old values . I am using the below code in action event of button.

DATA: lr_select_options TYPE REF TO iwci_wdr_select_options.

DATA lr_helper TYPE REF TO if_wd_select_options.

DATA: lt_range TYPE REF TO data.

FIELD-SYMBOLS: <lt_range_table> TYPE table ,"wd_this->elements_range,

<ls_field> type line of if_wd_select_options=>tt_selection_screen_item.

DATA: lr_comp_usage TYPE REF TO if_wd_component_usage.

DATA: lt_fields TYPE if_wd_select_options=>tt_selection_screen_item.

lr_comp_usage = wd_this->wd_cpuse_select_options( ).

IF lr_comp_usage->has_active_component( ) IS INITIAL.

lr_comp_usage->create_component( ).

ENDIF.

lr_select_options = wd_this->wd_cpifc_select_options( ).

lr_helper = lr_select_options->init_selection_screen( ).

lr_helper->get_selection_screen_items( IMPORTING

et_selection_screen_items = lt_fields ).

READ TABLE lt_fields ASSIGNING <ls_field> INDEX 1.

ASSIGN <ls_field>-mt_range_table->* TO <lt_range_table>.

Please help .

Regards,

Ratheesh BS

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 31, 2008 at 11:36 AM

    Rather than reading the table with index 1 , use the with key m _id = 'your element name'. and try

    Add comment
    10|10000 characters needed characters exceeded