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_ALM_CONF_CREATE not working

former_member201541
Participant
0 Likes
3,464

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

6 REPLIES 6
Read only

Ashg1402
Contributor
0 Likes
2,206

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

Read only

0 Likes
2,206

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.

Read only

former_member201541
Participant
0 Likes
2,206

Can someone help me on this urgently?

Thank you

Read only

0 Likes
2,206

Hi,

One simple question, how are you getting the confirmation number .?

Read only

Shubham_Srivastava1
Product and Topic Expert
Product and Topic Expert
0 Likes
2,206

Hello

Please refer these two SAP notes - 1074387 & 1888272.

Regards

Shubham

Read only

stefan_hewener2
Explorer
0 Likes
2,206

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