‎2007 Jul 12 12:09 PM
Hello
i have a Table Control with feild select with chk boxes when i select a rec it shd post the rec after posting the record the chk box should not appear in Table control for the feild which it has posted but it is appearing in my Table Control.
any suggestion
points for sure
‎2007 Jul 12 12:26 PM
‎2007 Jul 12 1:10 PM
Hi,
Have one more flag in your structure of the table control and set that flag = 'X' when you successflly post that record.And then in pBO do like this.
PROCESS BEFORE OUTPUT.
MODULE tc2_change_tc_attr.
LOOP AT it_marc INTO x_marc WITH CONTROL tc2 CURSOR tc2-current_line.
MODULE tc2_get_lines.
ENDLOOP.
MODULE tc2_get_lines OUTPUT.
g_tc2_lines = sy-loopc.
IF x_marc-sel = 'X' and x_marc-fg_post = 'X'.
*---->x_marc-fg_post -flag has to be set as 'X' when you post the document
LOOP AT SCREEN.
IF screen-name = 'X_MARC-SEL'.
screen-active = 0.
screen-output = 0.
screen-input = 0.
screen-invisible = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDMODULE. "TC2_GET_LINES OUTPUT
‎2007 Jul 12 1:42 PM
hi,
i couldnt get ur query properly...
ok..for hiding the field..use
screen-active = 0.(invisible..)
thanks
jaideep
*reward points if useful..