Application Development and Automation 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: 
Read only

Table Control

Former Member
0 Likes
591

Hi All,

I am looking at options to put color in table control. I tried using SCREEN-INTENSIFIED EQ 1. But this changes to red. I want to change to any color.

There is field COLOR in screen structure. Anybody used this earlier ?

Also any idea how can i change the background in Table Control.

6 REPLIES 6
Read only

Former Member
0 Likes
544

hi

plz see the program

<b>showcolo</b>

which is a standard report

plz reward if useful

Read only

0 Likes
544

Hi Ganesh,

This is not for table control. It is only for lists.I am specifically looking for Table Control.

Read only

rahulkavuri
Active Contributor
0 Likes
544

this will also help u I hope

/message/806301#806301 [original link is broken]

Read only

Former Member
0 Likes
544

hii Durgesh ,

You can't change color when you are doing screen (dynpro) programming. You can set the field to be Bright/Normal.

<b>Not possible in table control, possible in ALV</b>

will update you if i know more on it..

use below logic to intensify the row.

LOOP AT SCREEN.

IF screen-name = 'SC1'

IF G_Zreport_WA-HOLD = 'W'.

screen-intensified = 1.

MODIFY SCREEN.

ELSE.

screen-intensified = 0.

MODIFY SCREEN.

ENDIF.

endif.

endif.

endlooop.

Thanks &Regards

Naresh

Read only

Former Member
0 Likes
544

Hi Durgesh,

Can you please post your code here?

Read only

0 Likes
544

Hi Veera,

Look at code below.

PBO :

LOOP AT t_zdlyhrs WITH CONTROL tabcntrl.

MODULE display_details.

ENDLOOP.

MODULE.

LOOP AT SCREEN.

IF screen-name EQ 'ZZT_ZDLYHRS-ZDATE'.

screen-intensified = '1'.

screen-color = 2.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDMODULE.