Skip to Content
author's profile photo Former Member
Former Member

Check Boxes on selection screen

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 10, 2005 at 04:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2005 at 04:18 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.