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

Problem regarding dropdown list

Former Member
0 Likes
484

Hi guru,

I want to dispaly different data in the second dropdown list according to the value i selected in first dropdown list.

and according to these values i have to call different forms so how it is possible plz help me on this.

thanx

man

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
456

Hi,

Before processing the values for the second dropdown list use the FM 'DYNP_VALUES_READ' and get the selected value of the first drop down list.

After that ,process the values for the second dropdown using FM 'VRM_SET_VALUES'.

Regards,

Smart Varghese

4 REPLIES 4
Read only

Former Member
0 Likes
457

Hi,

Before processing the values for the second dropdown list use the FM 'DYNP_VALUES_READ' and get the selected value of the first drop down list.

After that ,process the values for the second dropdown using FM 'VRM_SET_VALUES'.

Regards,

Smart Varghese

Read only

0 Likes
456

my problem is

in first dropdown list if i selected value 'ABC'.

then in second dropdown list of plantt it will show 3 different plant.

i have made first drop down list.

how to create second dropdown list and show value in that according to the first dropdown list value.

Read only

0 Likes
456

REPORT ztest1234.

type-POOLs : vrm.

PARAMETERS : dr1 as LISTBOX VISIBLE LENGTH 20,

dr2 as LISTBOX VISIBLE LENGTH 20.

DATA : lv_values TYPE vrm_values,

lv_values1 TYPE vrm_values,

gw_values like LINE OF lv_values.

AT SELECTION-SCREEN OUTPUT.

gw_values-key = '1'.

gw_values-text = 'One'.

append gw_values to lv_values.

gw_values-key = '2'.

gw_values-text = 'Two'.

append gw_values to lv_values.

gw_values-key = '3'.

gw_values-text = 'Three'.

append gw_values to lv_values.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = 'dr1'

VALUES = lv_values

EXCEPTIONS

ID_ILLEGAL_NAME = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

check dr1 is NOT INITIAL.

if dr1 eq '1'.

CLEAR : gw_values.

gw_values-key = '4'.

gw_values-text = 'Four'.

append gw_values to lv_values1.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = 'dr2'

VALUES = lv_values1

EXCEPTIONS

ID_ILLEGAL_NAME = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

Read only

Former Member
0 Likes
456

Hi

Check the below thread

Cheerz

Ram