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

How to hide a selection screen comment ?

Former Member
0 Likes
1,592

Hi Experts,

I have an issue in Interactive report...

I know by using  LOOP AT SCREEN we can modify screen elements like HIDE ... in the AT SELECTION-SCREEN OUTPUT event

But my question is i need to HIDE Selection screen comment also...I can this be achieved....???

Please do reply me with a solution...

Thanks in Advance...

Reddy Arun

1 ACCEPTED SOLUTION
Read only

thangam_perumal
Contributor
0 Likes
1,043

Hi Reddy,

              Please go through below code..

it will fulfill ur requirements

REPORT 123.


  PARAMETERS : RB_USER  RADIOBUTTON GROUP za .
PARAMETERS RB_MAN   RADIOBUTTON GROUP za .
PARAMETERS RB_MAN1   RADIOBUTTON GROUP za DEFAULT 'X'.

AT SELECTION-SCREEN OUTPUT.


   PERFORM f13000_check_radio.

FORM f13000_check_radio.

     IF rb_man1 = ''.
LOOP AT SCREEN.
     IF screen-NAME = 'RB_MAN'.
       IF rb_man  = 'X'.
         screen-active = 0.
         rb_man  = ''.
       ELSE.
         screen-active = 1.
       ENDIF.
       MODIFY SCREEN.
     ENDIF.

     IF screen-NAME = 'RB_USER'.
       IF rb_user = 'X'.
         screen-active = 0.
         RB_USER = ''.
       ELSE.
         screen-active = 1.
       ENDIF.
       MODIFY SCREEN.
     ENDIF.

ENDLOOP.

     ELSE.

       LOOP AT SCREEN.

     IF screen-NAME = 'RB_USER'.
         screen-active = 1.
            MODIFY SCREEN.
     ENDIF.

   IF screen-NAME = 'RB_MAN'.
         screen-active = 1.
       MODIFY SCREEN.
     ENDIF.
   ENDLOOP.
ENDIF.


ENDFORM.           " f13000_check_radio

2 REPLIES 2
Read only

VenkatRamesh_V
Active Contributor
0 Likes
1,043

Hi,

Pass all the values to the Selection-screen report 2 ,or remove the obligatory comment in report2.

Regards,

Venkat.

Read only

thangam_perumal
Contributor
0 Likes
1,044

Hi Reddy,

              Please go through below code..

it will fulfill ur requirements

REPORT 123.


  PARAMETERS : RB_USER  RADIOBUTTON GROUP za .
PARAMETERS RB_MAN   RADIOBUTTON GROUP za .
PARAMETERS RB_MAN1   RADIOBUTTON GROUP za DEFAULT 'X'.

AT SELECTION-SCREEN OUTPUT.


   PERFORM f13000_check_radio.

FORM f13000_check_radio.

     IF rb_man1 = ''.
LOOP AT SCREEN.
     IF screen-NAME = 'RB_MAN'.
       IF rb_man  = 'X'.
         screen-active = 0.
         rb_man  = ''.
       ELSE.
         screen-active = 1.
       ENDIF.
       MODIFY SCREEN.
     ENDIF.

     IF screen-NAME = 'RB_USER'.
       IF rb_user = 'X'.
         screen-active = 0.
         RB_USER = ''.
       ELSE.
         screen-active = 1.
       ENDIF.
       MODIFY SCREEN.
     ENDIF.

ENDLOOP.

     ELSE.

       LOOP AT SCREEN.

     IF screen-NAME = 'RB_USER'.
         screen-active = 1.
            MODIFY SCREEN.
     ENDIF.

   IF screen-NAME = 'RB_MAN'.
         screen-active = 1.
       MODIFY SCREEN.
     ENDIF.
   ENDLOOP.
ENDIF.


ENDFORM.           " f13000_check_radio