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: 

Disable Table Control fields

Former Member
0 Kudos

Hi ,

Can anyone please suggest me how to make fields invisible in Table Control.

Actually i have a problem where i'm using same Table control in 2 screens. In one Screen i have to make few fields invisible. i'm able to disable but not invisible.

thanks in advance,

Anjani.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In the PBO of screen where you are using Table control,

Define a module. In that module, loop at <table_ctrl>-cols. and modify the attributes of column you need.

here tab_tkreq is table control.

DATA : wa LIKE LINE OF tab_tkreq-cols .

LOOP AT tab_tkreq-cols INTO wa .

if wa-screen-name = 'ABC'.

wa-invisible = 1 .

endif.

MODIFY tab_tkreq-cols FROM wa .

endloop.

Regards,

Gagan

3 REPLIES 3

Former Member
0 Kudos

Hi,

This is an example:

FORM SUPRESS_TAB_CONTROL using sprfield.

data: fields type CXTAB_COLUMN.

loop at screen_0300-<b>cols</b> into fields.

if fields-screen-name = sprfield.

fields-invisible = 1.

MODIFY screen_0300-<b>COLS</b> FROM fields.

endif.

endloop.

ENDFORM.

Former Member
0 Kudos

Hi,

In the PBO of screen where you are using Table control,

Define a module. In that module, loop at <table_ctrl>-cols. and modify the attributes of column you need.

here tab_tkreq is table control.

DATA : wa LIKE LINE OF tab_tkreq-cols .

LOOP AT tab_tkreq-cols INTO wa .

if wa-screen-name = 'ABC'.

wa-invisible = 1 .

endif.

MODIFY tab_tkreq-cols FROM wa .

endloop.

Regards,

Gagan

0 Kudos

Hi Gagan,

Thanks Very much.

This solved my problem.

thanks,

anjani.