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

HELP ME OUT WITH THIS REQUIREMENT

HI,

IN THE SELECTION -SCREEN I HAVE 2 CHECKBOXES

WEN I SELECT ANY ONE OF THE CHECK-BOX THE OTHER

CHECBOX SHOULD GET INPUT DISABLED

ANY SAMPLE CODE WILL HELP

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 12:59 PM

    p_ck1 and p_ck2 are the checkboxes

    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'P_CK1 OR
           screen-name =  '%_P_CK1_%_APP_%-TEXT' .
    
          IF p_ck2 = 'X'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
    
        IF screen-name = 'P_CK2 OR
           screen-name =  '%_P_CK2_%_APP_%-TEXT' .
    
          IF p_ck1 = 'X'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.

    reward if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 01:03 PM

    Hi,

    try this select A and press enter.

    parameters : a type c as checkbox,

    b type c as checkbox.

    at selection-screen output.

    if a = 'X'.

    loop at screen.

    if screen-name = 'B'.

    screen-input = 0.

    endif.

    modify screen.

    endloop.

    endif.

    Cheers,

    Will.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 30, 2008 at 01:16 PM

    Here's the solution:

    REPORT  zmy_report.
    
    PARAMETERS: cbox1 AS CHECKBOX USER-COMMAND rad,
                cbox2 AS CHECKBOX USER-COMMAND rad.
    
    AT SELECTION-SCREEN OUTPUT.
      CASE 'X'.
        WHEN cbox1.
          LOOP AT SCREEN.
            CHECK screen-name = 'CBOX2'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDLOOP.
        WHEN cbox2.
          LOOP AT SCREEN.
            CHECK screen-name = 'CBOX1'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDLOOP.
      ENDCASE.
    

    Hope this solves your issue.

    Cheers,

    Sougata.

    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.