2007 Mar 05 9:46 PM
Does anyone one know if you can filter one select-option based on another select-option. If so how do you do it?
2007 Mar 05 9:56 PM
Based on the values that you have entered in one of the select options y ou can modify the values for other select option in at selection-screen output. Is that what you are looking for ?
Does anyone one know if you can filter one select-option based on another select-option. If so how do you do it?
2007 Mar 05 9:53 PM
2007 Mar 05 9:56 PM
Based on the values that you have entered in one of the select options y ou can modify the values for other select option in at selection-screen output. Is that what you are looking for ?
2007 Mar 05 9:57 PM
Hi,
cut and paste and see how it works then you can modify as per your requirement
election-screen : begin of block blk with frame title text-001.
parameters : p_head radiobutton group gp1 default 'X'
user-command chk,
p_deta radiobutton group gp1.
selection-screen : end of block blk.
selection-screen : begin of block blk1 with frame title v_text.
selection-screen : skip 1.
selection-screen : begin of line.
selection-screen : comment 1(12) text_001.
parameters : p_pact like ztable-zabc modif id g1
matchcode object zsearchelp.
selection-screen : end of line.
selection-screen : begin of line.
selection-screen : comment 1(9) text_003.
parameters : p_matnr like mara-matnr modif id g2 obligatory.
selection-screen : comment 33(13) text_004.
parameters : p_matnr1 like mara-matnr modif id g2 obligatory.
selection-screen : end of line.
selection-screen : skip 1.
selection-screen : end of block blk1.
at selection-screen output.
loop at screen.
if p_head = 'X' and ( screen-group1 = 'G2' or screen-group1 = 'G3' ).
clear : text_003 ,text_004.
v_text = 'xxxxxx'.
text_001 = 'xxxxxx.
screen-active = 0.
modify screen.
endif.
if p_deta = 'X' and ( screen-group1 = 'G1' or screen-group1 = 'G3' ).
clear : text_001." text_002 ,text_001.
v_text = 'xxxx'.
text_003 = 'xxxxx'.
text_004 = 'dsadsas'.
screen-active = 0.
modify screen.
endif.
endloop.
Thanks
venki