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
391

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.,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
373

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

3 REPLIES 3
Read only

Former Member
0 Likes
374

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

Read only

Former Member
0 Likes
373

Hi,

Try

Set cursor line tablecontrol-top_line.

Regards,

Vasavi.