‎2009 Jun 17 7:48 AM
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.
‎2009 Jun 17 8:37 AM
‎2009 Jun 17 8:50 AM
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
‎2009 Jun 17 11:05 AM
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
‎2009 Jun 17 11:11 AM
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
‎2009 Jun 17 11:28 AM
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
‎2009 Jul 03 12:44 PM
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
‎2009 Nov 24 3:41 AM
Hi Experts,
I just passed temporary number to BAPI_ALM_ORDER_METHOD-OBJECTKEY and work order created.
‎2010 Dec 30 11:04 AM
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