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

Technically complete CO Order BAPI

paulo_sousa3
Explorer
0 Likes
1,570

hello, how can I "close" or "technically complete" (transaction KKF2) a CO order ( AUTYP=04 ) programmatically?

Using BAPI_PRODORD_COMPLETE_TECH I get error message 'Order XXX000000913 has the wrong order category for this BAPI'

I tryed "COXT_BAPI_COMPLETE_TECH". The CO order seems to be closed, but all fields AUFK-PHAS0 to AUFK-PHAS3 get cleared and I'm not sure if this is the right way to change this kind of CO orders.

Can anyone give a clue?

1 REPLY 1
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
1,174

Hello paulo.sousa3

The easiest way to technically close an internal order would be to do CALL TRANSACTION to KE02. There is a menu option Edit -> Technically Complete.

You can also try to use BAPI_INTERNALORDER_SAVEREPLICA, but that will be more difficult to implement.

Unfortunately there is no standard BAPI function to update internal order status.

Best regards

Dominik Tylczynski