Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

dropdown 2 value has to change based on dropdown value1?

Former Member
0 Likes
781

dropdown 2 value has to change based on dropdown value 1? i have read many forums but its relevant to webdynpro. am trying in selection screen.

Please gimme some suggestions.

Thanks in advance

3 REPLIES 3
Read only

former_member183073
Active Participant
0 Likes
741

Hi Remya,

You can use VRM_GET_VALUES and VRM_SET_VALUES for fetching and setting the data on the screen.

   PARAMETERS: p1 TYPE aufart AS LISTBOX USER-COMMAND p1 VISIBLE LENGTH 10,
                           p2 TYPE aufnr  AS LISTBOX USER-COMMAND p2 VISIBLE LENGTH 10.

and in

   AT SELECTION-SCREEN.
  IF sy-ucomm EQ 'P1'.

**** Fetch the selected value using VRM_GET_VALUES fm and depending on this value fetch the data as per your requirement and set using VRM_SET_VALUES fm

   ENDIF.
Read only

0 Likes
741

Thanks

Read only

rosenberg_eitan
Active Contributor
0 Likes
741

Hi ,

Have a look at:


- FUNCTION 'DYNP_VALUES_READ'
- FUNCTION 'DYNP_VALUES_UPDATE'

In the program attached ( Y_R_EITAN_TEST_51_11 ) the field s_FLDATE is prompted based on s_carrid,s_connid .

Regards.