Skip to Content
avatar image
Former Member

Not able to find the values of a dropdown!

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

1.JPG (196.2 kB)
2.JPG (157.6 kB)
3.JPG (65.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 05, 2016 at 01:29 PM

    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

    Add comment
    10|10000 characters needed characters exceeded