on 01-08-2014 9:07 AM
Hello experts,
I have created a dropdown using the if_wd_select_options and now i have to read the value which has been selected by the user. Please can you assist me, in how it can be done.
Any help is much appreciated.
Best Regards,
Ashish
hi ashish....
Follow this link....
Defining Selection Criteria with Select Options - UI Technologies in ABAP - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gents,
Thanks a lot for the pointers.
I was able to solve this issue. This reply is coming quite late from me, and i have decided to write a blog on it detailing the nitty gritty things to be kept in mind to implement a drop down using select options in web dynpro.
I will later update the post with the blog link as well.
Ashish
Hi Ashish,
I think, your requirement is to read the selected value from the selection field/ parameter field. Once the value is selected, it can be read by using below methods
GET_SELECTION_FIELD
GET_PARAMETER_FIELD
You will get the data in parameter E_VALUE of the above methods.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashis,
In the method were you need to read the selected value put the following code and modify according your variable declaration.
you can get the selected value.
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_select_options( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_WDR_SELECT_OPTIONS .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_select_options( ).
DATA lv_r_helper_class TYPE ref to if_wd_select_options.
lv_r_helper_class = lo_interfacecontroller->init_selection_screen(
).
CALL METHOD lv_r_helper_class->GET_RANGE_TABLE_OF_SEL_FIELD
EXPORTING
I_ID = 'EBELN'
RECEIVING
RT_RANGE_TABLE = RANGE
.
ASSIGN RANGE->* TO <EBELN>.
Regards,
KK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.