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

At Selection screen

Former Member
0 Likes
394

Hi all,

i have bunch of fields and updates checkboxes on selection screen and i have to put a check on it like atleast one checkbox or atleast one fields values needs to be pass.. can you please tell me how can i do that. can you please send me sample code for that.

Thanks,

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
378

parameters: p_1 as checkbox,

p_2 as checkbox,

p_3 as checkbox,

p_matnr type matnr,

p_werks type werks,

p_bukrs type bukrs.

AT selection-screen.

if ( p_1 is initial and p_2 is initial

and p_3 is initial )

or ( p_matnr is initial and p_werks is initial

and p_bukrs is initial ).

message e016(rp) with 'Inavlid selections!'.

endif.

~Suresh

4 REPLIES 4
Read only

suresh_datti
Active Contributor
0 Likes
379

parameters: p_1 as checkbox,

p_2 as checkbox,

p_3 as checkbox,

p_matnr type matnr,

p_werks type werks,

p_bukrs type bukrs.

AT selection-screen.

if ( p_1 is initial and p_2 is initial

and p_3 is initial )

or ( p_matnr is initial and p_werks is initial

and p_bukrs is initial ).

message e016(rp) with 'Inavlid selections!'.

endif.

~Suresh

Read only

0 Likes
378

hi suresh,

Thanks for the reply but my requirement is little diffrent i was trying to do the same way you suggested. i have 8 update checkboxes on selection screen in diffrent lines and at selection screen i have to check like atleast 1 checkbox needs to be checked by user. and the way you have suggested i do it then it checks all the update checkboxes but even if one of them was selected it gives error msg what i am trying to populate.

I really appreciate your help.

Please reply me with your suggestion.

Thanks,

Read only

0 Likes
378

It works for me.. pl post your code.. it could be the other input fields & not the checkboxes.

~Suresh

Read only

0 Likes
378

Thanks, it strated working.