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

change screen input in table control

Former Member
0 Likes
566

Hi Expert Abapers,

Hope everybody is in good health and state.

Well my problem is that i am taking data in itab in a table control and i want to display the data in it only.

only if we select and line and click modify, 2 fields of it should be enabled for writing.

here's the code but is not working,

case OK_CODE.

WHEN 'EDIT'.

IF MARK = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME <> 'ITAB-CHQ_NO' OR SCREEN-NAME <> 'ITAB-DD_NO'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDCASE.

Pls suggest as to where am I wrong.

Regards , Neetu

1 REPLY 1
Read only

Former Member
0 Likes
330

Hi Neetu,

Try to assign fields to a group , the fields which u don't want to be editable keep

it in single group for eg, 'GP1'. And now write the code like this

LOOP AT SCREEN.

IF SCREEN-GROUP EQ 'GP1'

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards ,

Vivek