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: 

Grey out the single cell in table control

BALAMURUGANG
Participant
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

see this thread

http://scn.sap.com/thread/659891

Karthik.R

0 Kudos

Hi Karthik,

Need to make the field only for output(not for input) in table control in module pool not in ALV.

former_member182040
Active Contributor
0 Kudos

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.

0 Kudos

Hi Krupa,

Thanks.I've tried your method.But its not working.

Former Member
0 Kudos