This routine prepares outflow documents for the return of material received from third party. It is necessary when material is not returned straight to the goods owner establishment.

To prepare the outflow document, the system copies the original document and changes some amounts, according to information received from Outflow/Inflow Type and Product  files.

This routine gets the Customer/Supplier to return third party material of parameters:

The inflow/outflow type of TES of original document item (Symbolic Return - [F4_TESP3]) is retrieved from the copied outflow document.

Thus, the TES of original document holds TES correspondent to the return operation and that parameters are filled out with a valid Customer or Supplier code.

Then, the system checks the third party possession balances of Customer/Supplier/Product and runs its appropriation/write off, using FIFO (first in, first out) concept.

WARNING!

If items of original outflow document are not correlated to inflow and outflow type or with Customer/Supplier, this item is not added to the return outflow document.