‎2010 Apr 15 8:56 AM
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
‎2010 Apr 15 9:04 AM
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
‎2010 Apr 15 9:04 AM
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
‎2010 Apr 15 9:51 AM
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.
‎2010 Apr 15 10:38 AM
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.
‎2010 Apr 15 9:56 AM