‎2007 Mar 21 5:01 PM
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,
‎2007 Mar 21 5:20 PM
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
‎2007 Mar 21 5:20 PM
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
‎2007 Mar 21 6:12 PM
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,
‎2007 Mar 21 6:26 PM
It works for me.. pl post your code.. it could be the other input fields & not the checkboxes.
~Suresh
‎2007 Mar 21 8:41 PM