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: 

iw32 transaction to change the date

Former Member
0 Kudos
632

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?

3 REPLIES 3

Former Member
0 Kudos
297

Hi,

Please try this function exit EXIT_SAPLCOIH_012.

Thanks

Naren

Former Member
0 Kudos
297

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.

Former Member
0 Kudos
297

i found different way.