Ansicht
Dokumentation

OIA_CANCEL_ASSIGNMENT - Cancel assignment including goods receipts and POs

OIA_CANCEL_ASSIGNMENT - Cancel assignment including goods receipts and POs

Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module cancels the purchase assignment for a delivery. For each assignment position, it

  1. cancels the assigned goods receipt,
  2. sets the deletion indicator for the assigned purchase order item (in case the purchase order had been generated), and
  3. updates the intended quantity in the quantity schedule of the purchase contract (if the order had been generated) or order (if the order had been assigned manually).

Example

You will typically call this function module after calling function module 'WS_REVERSE_GOODS_ISSUE', which cancels the goods issue for a delivery. If the delivery contains an assignment to a purchase order or contract, the function module 'WS_REVERSE_GOODS_ISSUE' will return the assignment data in parameter T_OIA11. Calling 'OIA_CANCEL_ASSIGNMENT' with this data will cancel the assignment as described above.

Notes

If there is any error occurring during the assignment cancellation, the assigned documents (goods receipt and purchase order) have to be cancelled manually and the assignment updated manually.

Since this function module cancels multiple goods movements, it will trigger a COMMIT WORK after cancelling each assignment position.

Further information

See the documentation for function module 'WS_REVERSE_GOODS_ISSUE'.





Parameters

I_BUDAT
I_COUNT
I_TCODE
T_MESG_TAB
T_OIA11_TAB

Exceptions

Function Group

OIAL

ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 1881 Date: 20240523 Time: 131424     sap01-206 ( 36 ms )