cancel
Showing results for 
Search instead for 
Did you mean: 

Se51 Can't select values from Dropdown list

Former Member
0 Kudos

Hi All,

I've been doing an enhancement of Infotype. The requirement is to add another dropdown box in the screen provide with the values. The dropdown box was already added, and the values were there. The problem is when I am trying to select value from the dropdown, it was not selected. The field is still empty. Can you plese help me with this? Here's my code:

TYPE-POOLS vrm.

DATA: list TYPE vrm_values,

          value TYPE LINE OF list.

DATA: it_vorruhestan TYPE STANDARD TABLE OF yoht_vorruhestan,

          wa_vorruhestan TYPE yoht_vorruhestan.

SELECT value begda endda

     FROM yoht_vorruhestan

     INTO TABLE it_vorruhestan.

LOOP AT it_vorruhestan INTO wa_vorruhestan.

     value-key = sy-tabix.

     value-text = wa_vorruhestan-value.

     APPEND value to list.

ENDLOOP.

CALL FUNCTION 'VRM_SET_VALUES'

     EXPORTING

          id = 'P9201-YOH_VORRUHESTAN'

          values = list.

Thanks!!

Accepted Solutions (0)

Answers (2)

Answers (2)

guillaume-hrc
Active Contributor
0 Kudos

Hi,

I am quite sure this won't work in Web Dynpro ABAP since this FM is intended to be used in classic ABAP dynpro.

You should move your post in ABAP forum.

Best regards,

Guillaume

Former Member
0 Kudos

Hi All,

I already fixed this. This thread is closed. Thanks!