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: 

dynamic setting of cell attributes in Table Controls

Former Member
0 Kudos

Hi everybody,

I would like to set dynamicly wheather a cell or a line in a Table Control is only for output or ready for input.

I know how it works with columns, but nothing is said about cells or lines.

Thanx for clues.

Greets

Olaf

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Olaf,

Basically this works the same for all fields. However for table controls you should do the 'LOOP AT SCREEN' (within routine modify_screen_line in the example code) within the LOOP/ENDLOOP over your table control:

LOOP AT g_tc_itab

INTO g_tc_wa

WITH CONTROL tc_delivplant

CURSOR tc_delivplant-current_line.

MODULE modify_screen_line.

ENDLOOP.

Regards,

John.

1 REPLY 1

Former Member
0 Kudos

Hi Olaf,

Basically this works the same for all fields. However for table controls you should do the 'LOOP AT SCREEN' (within routine modify_screen_line in the example code) within the LOOP/ENDLOOP over your table control:

LOOP AT g_tc_itab

INTO g_tc_wa

WITH CONTROL tc_delivplant

CURSOR tc_delivplant-current_line.

MODULE modify_screen_line.

ENDLOOP.

Regards,

John.