08-02-2005 2:01 PM
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.
08-02-2005 2:08 PM
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
08-02-2005 2:06 PM
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.
08-02-2005 2:08 PM
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
08-02-2005 3:27 PM