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: 

Coloring in Table control

Former Member
0 Kudos

Hi All,

I have a requirement to show alternate rows of table control with alternate colors.

Please help on this.

Thanks in advance.

Suri

5 REPLIES 5

Former Member
0 Kudos

http://help.sap.com/search/highlightContent.jsp.

this link will help you.

regards.

venkat.

Former Member
0 Kudos

hi suresh,

Welcome to SDN forum

check these links

Reward with points if it is helpful

Cheers

Alfred

Former Member
0 Kudos

hi,

in a tablecontrol_ (not a grid control) you have only two options for coloring fields:

1. They can be input or output only fields (SCREEN-INPUT = 1 or 0) i.e. the background is white or grey (by default settings in sapgui)

1. The fields can be normal or intensified (SCREEN-INTENSIFIED = 0 or 1) i.e. the foreground is black or red (by default).

regards,

Bus, R. A.

Former Member

Former Member
0 Kudos

Hi,

try below logic

IN PBO

LOOP AT INT_ZBKTC WITH CONTROL CTRL_1500

CURSOR CTRL_1500-CURRENT_LINE.

lv_index = CTRL_1500-CURRENT_LINE.

module alternate.

ENDLOOP.

module alternate.

if lv_index % 2 = 0.

loop at screen.

screen-input = 0.

modify screen.

endloop.

else.

loop at screen.

screen-input = 1.

modify screen.

endloop.

endif.

Regards

amole