You are backflushing for the make-to-order scenario. If the backflushis not successful, the system displays an appropriate message via the exporting parameter RETURN. If the backflush is carried outsuccessfully, the exporting parameter is filled with initial values.
The backflush is carried out for a sales order. Depending on the stockcategory (valuated or nonvaluated), the costs are collected at either a product cost collector or for the sales order.
Meaning of the parameters:
BFLUSHFLAGS: Control of the type and scope of a backflush
BFLUSHDATAGEN: Parameter for the backflush data independent of the scenario
BFLUSHDATAMTO: Parameter specifically for the make-to-order scenario
SERIALNR: List of serial numbers
RETURN: Return of an error code if the backflush could not be carried out successfully
In this module, no COMMIT WORK is carried out.
Note that a COMMIT WORK is created directly after accessing this BAPI.This means that it is not possible to use several backflushing BAPIsthat save data on the database in sequence and then only create one
WORK COMMIT after the last BAPI. Should this happen, however, the second BAPI will be terminated as such a chain of accesses is notsupported by the program.
A sales order and/or a planned order must be transferred.
You must also enter a posting date and a document date.
If the corresponding repetitive manufacturing profile is set so that anonline correction is mandatory in the event of withdrawal errors and ifwithdrawal errors occur in the backflush, the backflush cannot becarried out and an appropriate error code is recoded in the RETURN parameter.
If the corresponding repetitive manufacturing profile is set so that anonline correction is optional in the event of withdrawal errors and if withdrawal errors occur in the backflush, the system createsposprocessing records for the components which could not be withdrawn.
Therefore, make sure that the creation of postprocessing records isallowed in the repetitive manufacturing profile. Otherwise, thewithdrawal errors are not logged and a system-supported postprocessing is not possible.
The backflush number given by the system is returned to the caller via the parameter CONFIRMATION.