05-22-2012 7:26 AM
Hi,
I want to grey out the particular cell in 3rd row 'ITAB-SINE' (2nd column)column in the table control.
I've tried like this.But its not working.
loop at itab with control TC cursor tc-current_line.
module gray_out.
endloop.
module gray_out output.
DATA COLS LIKE LINE OF TC-COLS.
loop at tc-cols into cols .
if tc-current_line = '3' and
cols-screen-name = 'ITAB-SINE'.
cols-screen-input = '0'.
modify tc-cols from cols index sy-tabix.
endif.
endloop.
endmodule.
Thanks.
Bala
Moderator message : Not enough re-search before posting, discussion locked.
Message was edited by: Vinod Kumar
05-22-2012 7:31 AM
05-22-2012 7:42 AM
Hi Karthik,
Need to make the field only for output(not for input) in table control in module pool not in ALV.
05-22-2012 8:07 AM
here my table control name is ZSD_TAB
LOOP WITH CONTROL zsd_tab.
MODULEgray_out output.
endloop.
MODULE display OUTPUT.
READ TABLE itab_item INTO item INDEX sy-stepl.
LOOP AT itab_item .
IF zsd_tab-current_line = '3'.
LOOP AT SCREEN.
IF screen-name = 'ITAB-SINE'..
screen-input = 0.
MODIFY SCREEN .
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDMODULE.
05-22-2012 8:27 AM
05-22-2012 8:21 AM