Application Development 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: 

Problem with hiding text-symbols

former_member209217
Active Contributor
0 Kudos

Hi Experts,

I have one selection screen having a check box and text symbol.


SELECTION-SCREEN:PUSHBUTTON 1(10) pu_attr USER-COMMAND push1.
PARAMETERS ch_docu AS CHECKBOX MODIF ID FST. 
SELECTION-SCREEN COMMENT 3(34) text-c01 MODIF ID FST.

AT SELECTION-SCREEN.

  IF sy-ucomm = 'PUSH1'.
    LOOP AT SCREEN.
      IF SCREEN-group1 = 'FST'.
         SCREEN-INVISIBLE = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
   ENDIF.

.

If user clicks on the push button Checkbox will be made invisible.The check box is invisble But my problem is i am not able to hide the text symbol text-c01. Its still appears on the selection-screen.Not sure where i am going wrong.I tried setting screen-active = 0 .But still not working.

Can anyone please help me?

Regards,

lakshman.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use BLOCK statement and then try to hide whole block together.

this worked for me.

thanks,

Sarbpreet

Former Member
0 Kudos

Hi Lakshman,

SELECTION-SCREEN:BEGIN OF BLOCK B1 WITH FRAME TITLE T1
SELECTION-SCREEN:PUSHBUTTON 1(10) pu_attr USER-COMMAND push1.
PARAMETERS ch_docu AS CHECKBOX MODIF ID FST. 
SELECTION-SCREEN COMMENT 3(34) text-c01 MODIF ID FST.
SELECTION-SCREEN:END OF BLOCK B1.
 
AT SELECTION-SCREEN.
 
  IF sy-ucomm = 'PUSH1'.
    LOOP AT SCREEN.
      IF SCREEN-group1 = 'FST'.
         SCREEN-INVISIBLE = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
   ENDIF.

Edited by: Mishra.Manas on Mar 26, 2010 7:48 AM

0 Kudos

Hi Manas,

I tried your code .Still its not working.

Sarbpreet,

Can you post some sample code. I already tried with BLOCK .Still the same problem.

Regards,

Lakshman.

0 Kudos

Hi,

Test with the Sample Code Bellow it is working fine for me.

SELECTION-SCREEN:PUSHBUTTON 1(10) pu_attr USER-COMMAND push1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS ch_docu MODIF ID FST.
SELECTION-SCREEN COMMENT 3(34) text-c01 MODIF ID FST.
SELECTION-SCREEN END OF LINE.
data: ucomm like sy-ucomm.

AT SELECTION-SCREEN.
  ucomm = sy-ucomm.

at SELECTION-SCREEN OUTPUT.
  IF ucomm = 'PUSH1'.
    LOOP AT SCREEN.
      IF SCREEN-group1 = 'FST'.
        SCREEN-INVISIBLE = 1.
        SCREEN-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

Thanks and Regards,

Faisal

former_member209217
Active Contributor
0 Kudos

Thanks Faisal,I am able to do it now using your code