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: 

To give colours for a certain row in table control in module pool

Former Member
0 Kudos

Hi,

In module pool,,,,,When I am displaying the Table Control......Suppose in some rows personnel no. is there and for the person who has exited from the company should be highlighted with red colour.

Please some code..

thanks..

3 REPLIES 3

Former Member
0 Kudos

Hi Jayasree,

I think I had a similar requirement to have a one column on a particular row

available for input where all other rows for that column were not. It took

me a while to figure this out but it was quite simple. I expect it will

work for colour changes too.

In Process Before Output

LOOP AT INTERNAL TABLE INTO WA WITH CONTROL TC

Call Module

END LOOP

In the module program the condition on which the colour change / input

status etc has to be changed using

IF condition = true

LOOP AT SCREEN

IF SCREEN-NAME = column name

Make your colour / input status change

MODIFY SCREEN

ENDIF

ENDLOOP

ENDIF

I hope this helps you.

Please search the forum before adding a new thread.

0 Kudos

but here the prob is

it will highlight the full column,,but I need only the personnel number to be highlighted...

Former Member
0 Kudos

Hi,


PBO.

loop at table control.
module display-tabalecontrol.
endloop.

module table_control output.
read table t_display.
if t_display-field1 = 102.
loop at screen.
if screen-name = 'T_DISPLAY'.
"add logic to screen in diferenr color.
modify.
endloop.

end module.

Regards,

Prabhudas