Hi everyone,
I'm trying to use the BAPI_ALM_ORDER_MAINTAIN BAPI to set the delete flag on a maintenance order but I get the error IWO_BAPI2 - 107 "Order number 12345 for SET_DEL_FLAG method not allowed" and the error IWO_BAPI2 - 113 "Error processing the BAPI methods".
The order underwent accounting movements (costs) but they were all reversed.
From IW32 the cancellation flag is set correctly, without errors.
The BAPI was parameterized as follows:
IT_METHODS
REFNUMBER 000001
OBJECTTYPE HEADER
METHOD SET_DEL_FLAG
OBJECTKEY (order_number)
REFNUMBER 000001
OBJECTTYPE
METHOD SAVE
OBJECTKEY
IT_HEADER
ORDERID (order_number)
ORDER_TYPE (order_tupe)
PLANT (order_plant)
Can someone help me?
Thanks and best regards.