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

Write this in PBO.

Table_control_name-INVISIBLE = 'X'.

8 REPLIES 8

Former Member
0 Kudos

hi

Check this link.

Former Member
0 Kudos

Hi,

This can be easily done by marking the value of field INVISIBLE (of your table control) to X. Check your table control deep structure in debug mode. You will see this field. Just change the value to X and you are done with it.

Let me know if there is any issue.

Thanks

Sourav

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 'value'

perform tab_hide.

endif.

ENDMODULE.

form tab_hide.

loop at screen.

if screen eq 'tablename'.

LOOP AT tab1-cols[] INTO wa1.

wa1-invisible = '1'.

MODIFY tab1-cols[] FROM wa1 INDEX sy-tabix.

ENDLOOP.

endif.

endform.

MarcinPciak
Active Contributor
0 Kudos

- Place your table control on one screen i.e 200 which is of type subscreen

- create another subscreen i.e. 201 which would be empty

- in main screen flow logic i.e. screen 100 call subscreen in subscreen area which you place on screen layout


"PBO
CALL SUBSCREEN sub_area INCLUDING sy-repid dynnr.

"in ABAP program
data: dynnr(4) type n value '0200'. "by default screen with table control is shown

MODULE pai INPUT.
  if condition ...  "if some condition met
     dynnr = '0200'. "then show table control
  else. 
    dynnr = '0201'. "otherwise show empty screen
  endif.
ENDMODULE.

Regards

Marcin

Former Member
0 Kudos

Hi,

Check this, hope it may help you.

TYPE-POOLS: cxtab.

CONTROLS:

tc1 TYPE TABLEVIEW USING SCREEN '0100'.

START-OF-SELECTION.

CALL SCREEN '0100'.

MODULE status_0100 OUTPUT.

PERFORM status.

ENDMODULE.

FORM status .

DATA wa_col TYPE cxtab_column.

LOOP AT tc1-cols INTO wa_col.

wa_col-screen-invisible = 0.

wa_col-screen-active = 0.

MODIFY tc1-cols FROM wa_col.

ENDLOOP.

ENDFORM. " status

Regards,

Revathi Bhoopal.

Former Member

Write this in PBO.

Table_control_name-INVISIBLE = 'X'.

venkat_o
Active Contributor
0 Kudos

Hi Surajith, <li>Lets say table control name is TABC. If you see the structure of TABC in debugging, you will see INVISIBLE field. <li> Just set like below


TABC-INVISIBLE = '1'.
Thanks Venkat.O

Former Member
0 Kudos

Hi,

Your question has already been answered. This is a duplicate post. Kindly mark this answered.

[;