‎2008 Apr 14 6:39 PM
Dear Friends.,
I have this Req't.
1) In user selection screen ,, user enters a,b values based on this
2) Suppose I am displaying( next screen) a,b,c fields in Table control.,>>
display mode.,
3) Suppose User want to modify selected c values in Table control ,, I want
to modify that c field
in chage mode.,instead of a,b.,.
4) For above ,,I am not getting table control screen in display mode after
the first screen,.
5) I was written the code for {display<>change} it is working fine for
that particula field.,
simply I want 4'th Anwser
How to get the table control in display mode.,
‎2008 Apr 14 6:52 PM
your reqment is not very clear..
i assume you wnat to make a particular field in dosplay/input mode.
for those columns which u wnat to make in displaymode, give group1 values as G1, G2...etc.
write this code in PBO inside a module.
suppose tctrl_rfid is ur table control.
DATA WA_COLS LIKE LINE OF TCTRL_RFID-COLS. (this line in ur top include )
if A = 'X'
LOOP AT TCTRL_RFID-COLS INTO WA_COLS.
IF WA_COLS-SCREEN-GROUP1 = 'G1'.
WA_COLS-INVISIBLE = 'X'.
WA_COLS-screen-INPUT = 0.
ENDIF.
MODIFY TCTRL_RFID-COLS FROM WA_COLS INDEX SY-TABIX.
ENDLOOP.
elseif B= 'X'.
LOOP AT TCTRL_RFID-COLS INTO WA_COLS.
IF WA_COLS-SCREEN-GROUP1 = 'G2'.
WA_COLS-INVISIBLE = 'X'.
WA_COLS-screen-INPUT = 0.
ENDIF.
MODIFY TCTRL_RFID-COLS FROM WA_COLS INDEX SY-TABIX.
ENDLOOP.
endif...
Let me know, if u need more clarification.
Edited by: Sujamol Augustine on Apr 14, 2008 7:53 PM
‎2008 Apr 14 6:52 PM
your reqment is not very clear..
i assume you wnat to make a particular field in dosplay/input mode.
for those columns which u wnat to make in displaymode, give group1 values as G1, G2...etc.
write this code in PBO inside a module.
suppose tctrl_rfid is ur table control.
DATA WA_COLS LIKE LINE OF TCTRL_RFID-COLS. (this line in ur top include )
if A = 'X'
LOOP AT TCTRL_RFID-COLS INTO WA_COLS.
IF WA_COLS-SCREEN-GROUP1 = 'G1'.
WA_COLS-INVISIBLE = 'X'.
WA_COLS-screen-INPUT = 0.
ENDIF.
MODIFY TCTRL_RFID-COLS FROM WA_COLS INDEX SY-TABIX.
ENDLOOP.
elseif B= 'X'.
LOOP AT TCTRL_RFID-COLS INTO WA_COLS.
IF WA_COLS-SCREEN-GROUP1 = 'G2'.
WA_COLS-INVISIBLE = 'X'.
WA_COLS-screen-INPUT = 0.
ENDIF.
MODIFY TCTRL_RFID-COLS FROM WA_COLS INDEX SY-TABIX.
ENDLOOP.
endif...
Let me know, if u need more clarification.
Edited by: Sujamol Augustine on Apr 14, 2008 7:53 PM
‎2008 Apr 15 5:08 PM
Hi,
Try
Set cursor line tablecontrol-top_line.
Regards,
Vasavi.
‎2008 Apr 16 5:14 AM