cancel
Showing results for 
Search instead for 
Did you mean: 

How to intensified particular row in tablecontrol: reward points.....

former_member193357
Participant
0 Kudos

hiii all experts....

my tablecontrol name is table n it consist of 9 records...its fields are:

Werks Charg Matnr Clabs

1 12 vn xx

2 34 vn xs

3 45 vn xs

. . . .

. . . .

my input/output field is Charg in same screen.

charg : xxxxxx

<b>Now if i put charg value as 34 i.e

charg : 34

then i want this full row i.e 2 34 vn xs to be highlighted.</b>

I used the logic given below but it is intensified all rows of tablecontrol....i want only only that row which depends on my input/output field......i.e charg : 34

*LOOP AT SCREEN.

IF.....

SCREEN-INTENSIFIED = 1.

ELSE.

SCREEN-INTENSIFIED = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

2. Add the following code...

(define)

controls tbl_ctrl type tableview ...

wa like tbl_ctrl-cols.

loop at tbl_ctrl-cols into wa.

if wa-screen-group1 = <group defined for the column>

wa-intensified = 1.

modify tbl_ctrl-cols from wa

endif

endloop

santhosh

former_member181962
Active Contributor
0 Kudos

Hi hemant, Include this part of the code in a module that is in the table control loop.

in PBO

loop at tc with....

module modify_screen.

endloop.

in program

module modify_screen.

if itab-charg = '34'.

*LOOP AT SCREEN.

IF.....

SCREEN-INTENSIFIED = 1.

ELSE.

SCREEN-INTENSIFIED = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

endif.

endmodule.

Regards,

Ravi

former_member193357
Participant
0 Kudos

hiii ravi

thankz for ur suggestion...

but tell me how to loop at tc..with...(i.e tc means table control name)

did't get this part....

loop at table.(table is name of table control)

endloop.

giving me error.......

............table not defined...........

thankz....

former_member193357
Participant
0 Kudos

thankxxx got it...

points given...

Former Member
0 Kudos

Hi,

If u loop at screen and

then screen-intensified = 'X' u intensify all the fields i have pasted some code go thru that there u need to first give a modif id to the field which u want to b intensified

santhosh