‎2007 Sep 22 7:23 AM
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
‎2007 Sep 22 8:03 AM
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