2016 Apr 29 12:49 PM
Hi All,
I'm using BAPI_ALM_CONF_CREATE to create confirmations after creating maintenance order from BAPI_ALM_ORDER_MAINTAIN. I'm using the work order number which is getting created by the BAPI_ALM_ORDER_MAINTAIN.
While using the newly created work order from the Order Maintenance in creating the confirmation BAPI, I'm getting error message as "Order not found".
Even though after creating a new work order number I'm getting this message. Can someone please tell me the solution why I'm getting such error message.
Thank You
Hi All,
I'm using BAPI_ALM_CONF_CREATE to create confirmations after creating maintenance order from BAPI_ALM_ORDER_MAINTAIN. I'm using the work order number which is getting created by the BAPI_ALM_ORDER_MAINTAIN.
While using the newly created work order from the Order Maintenance in creating the confirmation BAPI, I'm getting error message as "Order not found".
Even though after creating a new work order number I'm getting this message. Can someone please tell me the solution why I'm getting such error message.
Thank You
2016 Apr 29 1:54 PM
Hi,
Are you doing commit after creating order and waiting for the order number.?
Cause it happens that in background the system is still creating and doing all the processes and at that time try to access that order.
Do a commit and wait.
Use BAPI_TRANSACTION_COMMIT
It will work.
Regards
Ashish
2016 May 06 11:17 AM
Yes, I'm using that as well still getting the same error "Order not found". I also checked the same order no in AUFK table and it is present there.
2016 May 06 11:20 AM
2016 May 06 11:37 AM
Hi,
One simple question, how are you getting the confirmation number .?
2016 May 06 11:24 AM
Hello
Please refer these two SAP notes - 1074387 & 1888272.
Regards
Shubham
2016 Jun 03 1:54 PM
Hi,
just use
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = cs_rueck-aufnr
IMPORTING
output = cs_timeticket-orderid.
to fill following fields:
cs_timeticket-orderid,
cs_timeticket-operation,
cs_timeticket-conf_no,
cs_timeticket-postg_date.
Otherwise you'll the "Not Found Error".
Regards Stefan