09-22-2008 2:05 PM
Hi friends,
I need your help to solve this problem.
I am working on table control with wizard. In that i have four fields - fg flag userid and date. Of which userid and date will be in display mode always( ie the user cant edit this mode at any time). I have made them to be in display mode.
But the fg field should be in display mode when i normally execute the transaction. But when i try to insert a record it should change to edit mode (ie the user must be able to insert the value) for that particlar record which i am going to insert others should be in display mode only. The flag field must in edit mode always.
In short, how to change the input mode of my field for a particular record alone
Please try out with some logic.
Thanks in advance
Bhuvana
09-22-2008 2:19 PM
Bhuvaneswari,
Try this code.
In the pbo of the screen, within the loop.. endloop, insert a module
in that module, check the value if the field required and sy-ucomm if necessary and modify the screen as given below.
process before output.
loop at <itab>
into <wa>
with control <tc>
cursor <tc>-current_line.
module modify_screen.
endloop.
module status_0100 .
module modify_screen output.
if sy-ucomm eq 'INS' and <wa>-field1 eq <required value>.
loop at screen.
screen-input = 1.
modify screen.
endloop.
endif.
endmodule.
Regards
Indu
09-22-2008 2:16 PM
09-22-2008 2:19 PM
Bhuvaneswari,
Try this code.
In the pbo of the screen, within the loop.. endloop, insert a module
in that module, check the value if the field required and sy-ucomm if necessary and modify the screen as given below.
process before output.
loop at <itab>
into <wa>
with control <tc>
cursor <tc>-current_line.
module modify_screen.
endloop.
module status_0100 .
module modify_screen output.
if sy-ucomm eq 'INS' and <wa>-field1 eq <required value>.
loop at screen.
screen-input = 1.
modify screen.
endloop.
endif.
endmodule.
Regards
Indu
12-16-2008 1:01 PM