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

Disable Table Control fields

Former Member
0 Likes
688

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
Read only

Former Member
0 Likes
564

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
Read only

Former Member
0 Likes
562

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.

Read only

Former Member
0 Likes
565

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

Read only

0 Likes
562

Hi Gagan,

Thanks Very much.

This solved my problem.

thanks,

anjani.