cancel
Showing results for 
Search instead for 
Did you mean: 

how to hide a entire tablecontrol without using subscreen....

former_member193357
Participant
0 Kudos

hiiiiiii

iam using input/out and tablecontrol in screen 100...my input/output field is matnr.. before entering matnr tablecontrol should not visible....i.e i want entire tablecontrol to hide not particular column....n tablecontrol is hide.... when iam entering matnr tablecontrol should visible.....

how to visible and invisible a tablecontrol without using subscreen.....is tre a way to do it...

table-invisible = 'x'.

where table is name of tablecontrol n it hides the tablecontrol... but again after entering matnr how to make tablecontrol visible....

if any one knows how to do it pls help....

rewards if any tell correctly.......

thanks...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
in PBO.
 MODULE HIDE_UNHIDE.

in PAI
MODULE HIDE_UNHIDE.


MODULE HIDE_UNHIDE.
 if not p_matnr is initial.
      loop at screen.
         if screen-name eq 'TC1'.
            screen-active = '0'.
            modify screen.
         endif.
       endloop.
 endif.
ENDMODULE.

Answers (2)

Answers (2)

former_member193357
Participant
0 Kudos

thanksss n will assign rewards...

Former Member
0 Kudos

In screen painter, open the table control attributes, enter the some value in group column.

ex:

PROCESS BEFORE OUTPUT.

MODULE SCR_INIT.

&----


*& Module SCR_INIT OUTPUT

&----


  • text

----


MODULE SCR_INIT OUTPUT.

LOOP AT SCREEN.

if g_auth = 'BM'.

if screen-group1 = 'GR1'.

SCREEN-ACTIVE = '0'.

SCREEN-INPUT = '0'.

endif.

modify screen.

endloop.