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: 

How to hide table control in a screen

Former Member
0 Kudos

Hi, Gems,

I want to hide the table control.Using "loop at screen" I am able to hide all other components except table control.

Can anyone tell me how to hide table control in a screen?

Any help will be appreciated.

-Thanks

Surajit.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In the PBO (in a module outside to the LOOP...ENDLOOP), use this


MODULE status_0100 OUTPUT.

 IF sy-ucomm EQ space.   "Give the function code on which you want to make your table control go invisible
                                          "Give a space if you want your table control to remail invisible on display of the screen

    CLEAR: t_header[].

    LOOP AT tabcontrol1-cols[] INTO wa_control1.
      wa_control1-invisible = '1'.
      MODIFY tabcontrol1-cols[] FROM wa_control1 INDEX sy-tabix.

    ENDLOOP.
ENDMODULE.  

1 REPLY 1

Former Member
0 Kudos

Hi,

In the PBO (in a module outside to the LOOP...ENDLOOP), use this


MODULE status_0100 OUTPUT.

 IF sy-ucomm EQ space.   "Give the function code on which you want to make your table control go invisible
                                          "Give a space if you want your table control to remail invisible on display of the screen

    CLEAR: t_header[].

    LOOP AT tabcontrol1-cols[] INTO wa_control1.
      wa_control1-invisible = '1'.
      MODIFY tabcontrol1-cols[] FROM wa_control1 INDEX sy-tabix.

    ENDLOOP.
ENDMODULE.