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

table control

Former Member
0 Likes
534

how to hide a column in table control at run time?

5 REPLIES 5
Read only

Former Member
0 Likes
513

Hi,

U can't hide a cloumn in table control during runtime.

That option is not available.

Regards,

Priyanka.

Read only

former_member491305
Active Contributor
0 Likes
513

Hi,

Sorry for the mistake.TO hide a coloumn ,u got to use deep structure COLS of table control.

In PBO,

DATA w_cols LIKE LINE OF tc2-cols.

LOOP AT tc-cols into w_cols.

if screen-name = 'X_T001L-WERKS'.

w_cols-screen-invisible = 'X'.

MODIFY tc-cols from w_cols index sy-tabix.

EXIT.

endif.

ENDLOOP.

Message was edited by:

Vigneswaran S

Read only

Former Member
0 Likes
513

Hi,

u just do like this any any of the PBO module..

CONTROLS:TABC_200 TYPE TABLEVIEW USING SCREEN 200.

DATA:cols TYPE cxtab_column.

<b>LOOP AT TABC_200-cols INTO cols WHERE SCREEN-NAME = 'field u want to hide'.

cols-invisible = 'X'.

MODIFY TABC_200-cols FROM cols.

ENDLOOP.</b>

rgds,

bharat.

Read only

Former Member
0 Likes
513

HI..

You cant hide in runtime but we can hide particular field or cell in TC

CONTROLS:TABC_200 TYPE TABLEVIEW USING SCREEN 200.

DATA:cols TYPE cxtab_column.

LOOP AT TABC_200-cols INTO cols WHERE SCREEN-NAME = 'field u want to hide'.

cols-invisible = 'X'.

MODIFY TABC_200-cols FROM cols.

ENDLOOP.

Reward all helpfull answers.

Regards.

Jay

Read only

Former Member
0 Likes
513

Hi,

please check this thread..

Regards