on 03-29-2016 1:11 PM
Dear Experts,
I am not able to find where the code is written to enter values into a dropdown.
I am not able to find the code in WDDOINIT, WDDOMODIFYVIEW. Also, the domain is WAERS which has value table TCURC containing 196 currencies but the screen has maximum upto 50 currencies.
I am not able to find the code where currencies are fetched in dropdown.
Please advice.
Please note that I opened the methods and did Ctrl + F with the keyword (REC_CURR).
Regards
Mani
HI Mani,
i see that you have the onAction-Event 'CURRENCY_SELECT'. In this method you get the key with this coding:
METHOD onactioncurreny_select .
DATA lt_params TYPE wdr_event_parameter_list.
DATA ls_params TYPE wdr_event_parameter.
DATA: lo_ref_excep TYPE REF TO cx_root,
l_val TYPE REF TO data,
lv_dropDown_value TYPE string.
FIELD-SYMBOLS: <fs> TYPE any.
CLEAR : lt_params[],ls_params.
lt_params = wdevent->parameters.
READ TABLE lt_params INTO ls_params WITH KEY name = 'KEY'.
ASSIGN ls_params-value->* TO <fs>.
TRY .
lv_dropDown_value = cl_wdr_conversion_utils=>to_string( value = <fs> ).
catch cx_root into lo_ref_excep.
EXIT.
ENDTRY.
ENDMETHOD.
Regards,
Shkelqim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.