cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to find the values of a dropdown!

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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