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

SCREEN ENABLE AND DISABLE

Hi,

I have a selction screen as below,

parameter : r_c1 RADIOBUTTON GROUP id1 DEFAULT 'X'.

parameter : p_fpath1 TYPE rlgrap-filename.

parameter : r_c2 RADIOBUTTON GROUP id1 DEFAULT 'X'.

parameter : p_fpath2 TYPE rlgrap-filename.

parameter : r_c2 RADIOBUTTON GROUP id1 DEFAULT 'X'.

parameter : p_fpath2 TYPE rlgrap-filename.

Using the above selection screen

when i prees the r_c1 the p_fpath2 ,p_fpath3 should be hide and only p_fpath1 should be visible

and if i press the r_c2 the p_fpath1 ,p_fpath3 should be hide and only p_fpath2 should be visible

and if i press the r_c3 the p_fpath1 ,p_fpath2 should be hide and only p_fpath3 should be visible.

So how to do this using the LOOP AT SCREEN AND ENLOOP.

IF anybody have any idea pls solve this.

Thanks,

Deesanth

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 10:58 AM

    loop at screen.

    if rb_c1 = 'X'.

    if screen-group1 = 'SC2'.

    screen-active = '0'.

    endif.

    elseif rb_c2 = 'X'.

    if screen-group1 = 'SC1'.

    screen-active = '0'.

    endif.

    endif.

    modify screen.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 11:03 AM

    hi,

    parameter : r_c1 RADIOBUTTON GROUP id1 DEFAULT 'X' modif id 'AB'.

    parameter : p_fpath1 TYPE rlgrap-filename modif id 'AB'.

    parameter : r_c2 RADIOBUTTON GROUP id1 DEFAULT 'X' modif id 'BC.

    parameter : p_fpath2 TYPE rlgrap-filename modif id 'BC'.

    parameter : r_c2 RADIOBUTTON GROUP id1 DEFAULT 'X' modif id 'CD.

    parameter : p_fpath2 TYPE rlgrap-filename modif id 'CD'.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF r_c1 = 'X'.

    IF SCREEN-GROUP1 EQ 'BC' OR SCREEN-GROUP1 EQ 'CD' .

    SCREEN-ACTIVE = 1.

    ENDIF.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 11:05 AM

    Hi..

    your selection screen
    parameter : r_c1 RADIOBUTTON GROUP id1 DEFAULT 'X' MODIF ID bl1.
    parameter : p_fpath1 TYPE rlgrap-filename MODIF ID bl1.
    
    parameter : r_c2 RADIOBUTTON GROUP id1   MODIF ID bl2.
    parameter : p_fpath2 TYPE rlgrap-filename MODIF ID bl2.
    
    parameter : r_c2 RADIOBUTTON GROUP id1  MODIF ID bl3.
    parameter : p_fpath2 TYPE rlgrap-filename MODIF ID bl3.
    

      IF   r_c1 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 =  'BL2' and screen-group1 =  'BL3'.
            screen-active = '0'.
    
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
     elseif.....<like this try other>
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 11:10 AM

    Hi Deesanh,

    For your issue AT SELECTION-SCREEN OUTPUT has to be used.

    loop at screen.

    if screen-group1 = 'Num'.

    screen-active = '0'.

    screen-input = '0'.

    endif.

    Cheers!!

    Balu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 11:13 AM

    Hi,

    PARAMETER : r_c1 RADIOBUTTON GROUP id1 DEFAULT 'X' USER-COMMAND rd.
    PARAMETER : p_fpath1 TYPE rlgrap-filename MODIF ID 1.
    
    PARAMETER : r_c2 RADIOBUTTON GROUP id1.
    PARAMETER : p_fpath2 TYPE rlgrap-filename MODIF ID 2.
    
    PARAMETER : r_c3 RADIOBUTTON GROUP id1.
    PARAMETER : p_fpath3 TYPE rlgrap-filename MODIF ID 3.
    
    
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF r_c1 = 'X'.
          IF screen-group1 = '2' OR screen-group1 = '3'.
            screen-active = 0.
          ELSEIF screen-group1 = '1'.
            SCREEN-ACTIVE = 1.
          ENDIF.
        ELSEIF r_c2 = 'X'.
          IF screen-group1 = '1' OR screen-group1 = '3'.
            screen-active = 0.
          ELSEIF screen-group1 = '2'.
            SCREEN-ACTIVE = 1.
          ENDIF.
        ELSEIF r_c3 = 'X'.
          IF screen-group1 = '1' OR screen-group1 = '2'.
            screen-active = 0.
          ELSEIF screen-group1 = '3'.
            SCREEN-ACTIVE = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2008 at 11:30 AM

    Hi Deesanth,

    Try this code.

    parameter : r_c1 RADIOBUTTON GROUP id1 user-command x.

    parameter : p_fpath1 TYPE rlgrap-filename modif id P1.

    parameter : r_c2 RADIOBUTTON GROUP id1 .

    parameter : p_fpath2 TYPE rlgrap-filename modif id P2.

    parameter : r_c3 RADIOBUTTON GROUP id1 .

    parameter : p_fpath3 TYPE rlgrap-filename modif id P3.

    AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.

    IF r_c1 = 'X'.

    IF SCREEN-GROUP1 = 'P2' OR SCREEN-GROUP1 = 'P3'.

    SCREEN-active = 0.

    ENDIF.

    ENDIF.

    IF R_C2 = 'X'.

    IF SCREEN-GROUP1 = 'P3' OR SCREEN-GROUP1 = 'P1'.

    SCREEN-ACTIVE = 0.

    ENDIF.

    ENDIF.

    IF R_C3 ='X'.

    IF SCREEN-GROUP1 = 'P1' OR SCREEN-GROUP1 = 'P2'.

    SCREEN-ACTIVE = 0.

    ENDIF.

    ENDIF.

    MODIFY SCREEN.

    ENDLOOP.

    Hope it will be useful

    Regards,

    Lakshman.

    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.