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

Filter a select-option based on another select-option

paul_pendleton
Participant
0 Likes
641

Does anyone one know if you can filter one select-option based on another select-option. If so how do you do it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
495

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?

3 REPLIES 3
Read only

Former Member
0 Likes
495

Hi,

Please explain your requirement in detail...

Thanks,

Naren

Read only

Former Member
0 Likes
496

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 ?

Read only

0 Likes
495

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