Application Development 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: 

Disable/Enable field for editing in Table control

Former Member
0 Kudos

Hi GURUS,

I have a requirement, where in i need to display data to users ( i am getting this data from select query). I am using table control wizard to display data to users.

I have a specific requirement here

if the second letter in SKB1-BUSAB ='DT', 'DC', 'IT', 'IC' is T, i need to make a column on my screen suppose itab-col1 to be disabled.

I need to enable this column for editing only if the second letter is C.

Please let me know if any one has ideas about this .

Thanks in advance....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

write the code as below

if SKB1-BUSAB+1(1) = 'T'

LOOP AT SCREEN.

IF screen-name1 = <field1>.

screen-input = 0.

ENDIF.

MODIFY SCREEN.

endloop.

else SKB1-BUSAB+1(1) = 'C'

loop at screen.

IF screen-name1 = <field1>.

screen-input = 1.

ENDIF.

MODIFY SCREEN.

endloop.

endif.

Reward points if useful

Regards

Anji

Message was edited by:

Anji Reddy Vangala

3 REPLIES 3

Former Member
0 Kudos

Hi

write the code as below

if SKB1-BUSAB+1(1) = 'T'

LOOP AT SCREEN.

IF screen-name1 = <field1>.

screen-input = 0.

ENDIF.

MODIFY SCREEN.

endloop.

else SKB1-BUSAB+1(1) = 'C'

loop at screen.

IF screen-name1 = <field1>.

screen-input = 1.

ENDIF.

MODIFY SCREEN.

endloop.

endif.

Reward points if useful

Regards

Anji

Message was edited by:

Anji Reddy Vangala

0 Kudos

Hi Reddy,

Can you plz let me know where i need to add this code.

I could not figure it out...

0 Kudos

Hi,

Write the above code in PBO module.

Thanks,

Sal.