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

Check Boxes on selection screen

Former Member
0 Likes
659

I am working on a report and have 3 checkboxes on the selection screen.

P_CKBX1

P_CKBX2

P_CKBX3

IF none of them are checked then I must exit and give an error message. Now the user can select one or more checkboxes. Hence the reason for checkboxes instead of radio buttons.

Just need an idea on how I can proceed with it.

Regards

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
629

Ok, check this code.




report zrich_0001
       no standard page heading.


parameters: p_chk1 as checkbox,
            p_chk2 as checkbox,
            p_chk3 as checkbox.

at selection-screen.

  if p_chk1 is initial
     and p_chk2 is initial
    and p_chk3 is initial.
    message e001(00) with 'Select as least one'.
  endif.

REgards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
630

Ok, check this code.




report zrich_0001
       no standard page heading.


parameters: p_chk1 as checkbox,
            p_chk2 as checkbox,
            p_chk3 as checkbox.

at selection-screen.

  if p_chk1 is initial
     and p_chk2 is initial
    and p_chk3 is initial.
    message e001(00) with 'Select as least one'.
  endif.

REgards,

Rich Heilman

Read only

0 Likes
629

Please remember to award points for helpful answers and close the post when answered completely. Thanks.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
629

I hope you have already delecred . In the at selection screen ouput check

if p_ckbx1 <> 'X' or p_ckbx2 <> 'X' or p_ckbx3 <> 'X'.

message E(000)....

endif.