‎2020 May 06 6:50 PM
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?
‎2020 May 07 7:46 AM
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