09-20-2006 9:13 AM
Hi my requirement is to disable single cell in the table control. Please let me know How to do this.
If possible please provide good module pool examples.
Harish
09-20-2006 9:31 AM
I have taken a Flight Example.
The following code will disable the column AIRLINE ID.
loop at tc-COLS into cols.
if cols-screen-name = 'SDYN_CONN-CARRID'.
cols-screen-input = '0'.
*cols-screen-active = '0'.
modify tc-cols from cols index sy-tabix.
endif.
endloop.
Rewards points if it helps.
Regards
Meera
09-20-2006 9:24 AM
Hi,
I´m not quite sure if this is gonna work. You have to make a loop over the screen and then you can change some characteristics of it, which includes the Input option:
LOOP AT SCREEN.
IF screen-group1 = 'ABC'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
I´ve used this code for selection screens but could help you. Check in SE11 all options for SCREEN.
09-20-2006 9:31 AM
I have taken a Flight Example.
The following code will disable the column AIRLINE ID.
loop at tc-COLS into cols.
if cols-screen-name = 'SDYN_CONN-CARRID'.
cols-screen-input = '0'.
*cols-screen-active = '0'.
modify tc-cols from cols index sy-tabix.
endif.
endloop.
Rewards points if it helps.
Regards
Meera
09-20-2006 9:48 AM
09-20-2006 9:45 AM
hi,
i think that u can make a cell disabled for input in screen layout design itself in the attributes window. what do u say ?