2010 Jan 20 1:42 PM
Hi,
I am using badi WORKORDER_UPDATE to change the date from tcode iw32 change mode.
Sample code.
method if_ex_workorder_update~before_update.
break dreddy.
field-symbols: <fs_abc> type line of cobai_t_header.
loop at it_header assigning <fs_abc>.
<fs_abc>-gltrp = '20100130'.
endloop.
endmethod.
I am getting the short dump .
A new value is to be assigned to the field "<FS_ABC>", although this field is
entirely or partly protected against changes.
Please assist me...how do i change the date while changing or creating the PM work order from iw31/iw32 tcodes.
Is there any userexits available?
2010 Jan 20 11:28 PM
Hi,
Please try this function exit EXIT_SAPLCOIH_012.
Thanks
Naren
2010 Jan 21 6:12 AM
i have tried this function exit EXIT_SAPLCOIH_012. It will work only creation of PM suborder using tcode iw36.
it won't help me.
is there any way i can overwrite these badi fileds.
method if_ex_workorder_update~before_update.
break dreddy.
field-symbols: <fs_abc> type line of cobai_t_header.
loop at it_header assigning <fs_abc>.
<fs_abc>-gltrp = '20100130'.
endloop.
endmethod.
2010 Mar 10 8:27 AM