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

Create Maintenance Order (Trans IW31) from BAPi

Former Member
0 Likes
4,093

Hello experts,

I already post this question but got the answer from Helman that now there is no BAPI to create a Maintenance Order.

However, I read somewhere that someone already did by using bapi "BAPI_ALM_ORDER_MAINTAIN".

I tried and got message: "IWO_BAPI: you must enter an order number to change an order".

If anyone successfully created, would you please share and provided me in detail how you fill out the data for your BAPI.

Thank you so much for your help.

tbluong.

Hello experts,

I already post this question but got the answer from Helman that now there is no BAPI to create a Maintenance Order.

However, I read somewhere that someone already did by using bapi "BAPI_ALM_ORDER_MAINTAIN".

I tried and got message: "IWO_BAPI: you must enter an order number to change an order".

If anyone successfully created, would you please share and provided me in detail how you fill out the data for your BAPI.

Thank you so much for your help.

tbluong.

4 REPLIES 4
Read only

Former Member
0 Likes
1,976

I am sorry, BDC Recording could be the only soloution to this,as the BAPI you have mentioned can only be used for Changing the existing maintenance orders.

Read only

0 Likes
1,976

Hi,

I'd like to create ( 4.6C ) with a function a PM order with operations , components and objects ...

does anybody have the info ?

thank's

Read only

Former Member
0 Likes
1,976

It's half year since you post this question, hope the answer would still help some how.

You can use the BAPI (BAPI_ALM_ORDER_MAINTAIN) to create Maintenance Order

Here is the parameter I use to create the order

IT_Header-Orderid = '%00000000001'

IT_Header-Order_type

IT_Header-Equipement

IT_Header-Short_text

IT_Partner-Orderid = '%00000000001'

IT_Operation-activity

IT_Operation-control_key

IT_Operation-work_cntr

IT_Operation-plant

IT_Operation-description

Method used:

CREATE 'HEADER'

CREATE 'PARTNER'

CREATE 'OPERATION'

SAVE ''

Read only

0 Likes
1,976

thanks jacky

yes this answer helped.