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

BAPI for Work Order IW31.

Former Member
0 Likes
5,848

Dear Experts,

I need to create/provide a bapi for external system to create work order in IW31. I tried to use BAPI_ALM_ORDER_MAINTAIN, but soon learnt that this bapi can only be used for maintaining existing work orders.

Can any one please help me by giving me the proper bapi or function module to create work order in IW31. If BAPI_ALM_ORDER_MAINTAIN is the correct function module to create work order, then please give me a the sample code to create work order using this function module.

If no function module or bapi exists for creating a work order, I plan to write a BDC for IW31. Can BDC be written for IW31?.

Thanks and regards,

M.Madhusudan Rao.

8 REPLIES 8
Read only

Former Member
0 Likes
2,374

Hi,

See this link:

Read only

Former Member
0 Likes
2,374

hai ,

the bapi bapi_alm_order_maintain can be used for creatign orders

it is not only for exisiting orders to maintian

but u can create new orders also and when u create order u have to give atleast one operation with it

then only it will allow to create a order

hope the solution

m.a

Read only

0 Likes
2,374

Hi,

Can you please give me the code. Coz, I tried creating through it, but we have to give BAPI_ALM_ORDER_METHOD-OBJECTKEY which is work order no.

So this cannot be used for creating new work orders.

Please help.

Regards,

Madhu

Read only

0 Likes
2,374

hai rao ,

did u use bapi_transaction_commit after using the bapi_alm_order_maintain

and u have to give the objecy key and method

what is the code u r using so that i can rectify if any mistakes

m.a

Read only

Former Member
0 Likes
2,374

Hi,

There is no problem in creating BDC for IW31 & IW32,

I have created a lot of BDC's for this t-code.

BAPI has some other problems also like authorization, if you give user IW31 authorization he can create order but for some strange reson when using this bapi it need some more authorization along with the IW31

I would suggest go for BDC.

Regards

Bikas

Read only

Former Member
0 Likes
2,374

Hi,

Try using the FM "ALM_ME_ORDER_CREATE" to create the work order.

For FM on change and display , please check the function group "ALM_ME_ORDER".

Hope this may help you.

Regards,

Smart Varghese

Read only

Former Member
0 Likes
2,374

Hi Experts,

I just passed temporary number to BAPI_ALM_ORDER_METHOD-OBJECTKEY and work order created.

Read only

0 Likes
2,374

Hello All,

I am getting some errors while changing a workorder with the help of this BAPI.

I want to update the revison in the order header.

I tred passing :

Ref no. = 1 or blank

Obj. Type = HEADER or ' '.

Method = CHANGE or SAVE

Obj. Key = 12 digit order no.

The errors are:

After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed

The BAPI control has been ended.

Could any one of you please suggest any solution to it.

Thanks in Advance,

Sumit