on 04-18-2007 12:45 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.