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: 

How to disable single cell in table control.

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

Cool. Thanks a lot.

Former Member
0 Kudos

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 ?