Fonction SAP BAPI_REPMANCONF_CREATE_PLOT - Execute Backflush in Production Lot Scenario

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BFLUSHDATAGEN BAPI_RM_DATGEN u 282 Backflush Parameters Independent of Process
BFLUSHDATAMTP BAPI_RM_DATPLOT u 8 Additional Backflush Parameters f. Process: Prod. by Lot
BFLUSHFLAGS BAPI_RM_FLG u 5 Backflushing Type of a BAPI Backflush

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Parameter

Paramètre Reférence Long. Facultatif Description
SERIALNR BAPI_RM_DATSERIAL 18 X List of Serial Numbers

Functionality
A backflush is being executed for the production by lot scenario. Ifthe backflush is not completed successfully, an appropriate message istransferred via the exporting parameter RETURN. If the backflush iscompleted successfully, the exporting parameter RETURN is filled withinitial values.
The backflush is carried out for a production lot. The costs arecollected at the production lot.
Meaning of the parameters:

  • BFLUSHFLAGS: Control of the type and scope of the backflush.

  • BFLUSHDATAGEN: Parameter for the backflush data independent of the
  • scenario.
    • BFLUSHDATAMTP: Parameter specifically for the production lot scenario.

    • SERIALNR: List of serial numbers.

    • RETURN: Return of an error code if the backflush could not be compelted
    • successfully.
      • In this module, no COMMIT WORK is executed.
      • Notes
        Note that a COMMIT WORK is initiated directly after accessing thisBAPI. This means that it is not possible to use several recordingbackflush BAPIs in sequence and then initiate one single COMMIT WORKafter the last BAPI. Should this happen, the second BAPI will beterminated as the program does not support accessing the BAPI insequence.
        A production lot and a plant must be transferred. A PDC backflushnumber must also be transferred.
        The entry of a posting date and a document date is also mandatory.
        If, in the repetitive manufacuturing profile, you have defined that acorrection in dialog is mandatory should withdrawal errors occur andshould an error actually occur in the backflush, the backflush cannotbe carried out and an appropriate error code is displayed in the RETURNparameter.
        If, in the repetitive manufacuturing profile, you have defined that acorrection in dialog is optional should withdrawal errors occur andshould an error actually occur in the backflush, postprocessing recordsare created for the components that cannot be withdrawn. Make sure thatthe creation of postprocessing records is allowed in the repetitivemanufacturing profile. Otherwise, the withdrawal errors are not loggedand there is no way of reposting them automatically in the system.

        Description
        The fields of this parameter provide information on the error whichoccurred when the backflush could not be completed successfully. Thefield MESSAGE contains a more detailed error description if the shorttext of the error is not sufficient to descrube the reason for theerror.

        Description
        The individual parameteres of this structure contain the data requiredfor backflushing which is independent of the selected scenario(process). The following parameters must be transferred:
        PDC_NUMBER,,PDC backflush number
        POSTDATE,,Posting date
        DOCDATE,,,,Document date
        The fields PRODPLANT or PLANPLANT must also be filled. Depending onwhether you are backflushing yield or scrap, one of the fieldsBACKFLQUANT or SCRAPQUANT has to be filled.
        The field PLANORDER must be filled if the backflush is to be carriedout for a specific planned order.

        Description
        The indvidual parameters of this structure contain the required datafor the backflush which is specifically required for the production bylots scenatio. This includes the following parameter:
        PRODLOT,,,,Production lot number
        This parameter must always be filled.
        WARNING: If only the parameter PRODLOT is transferred and severalplanned orders exist for this production lot, the backflush cannot becompleted successfully as the system cannot select one of the plannedorders automatically. In such as case, you also have to transfer theplanned order in addition to the fields for the production lot.

        Description
        The individual parameters of this structure control the type or thescope of the backflush to be posted in the backflushing processselected as a result of the BAPI selection.

        • Parameter BCKFLTYPE

        • This parameter determines the type of backflush to be posted. Thefollowing backflush types are allowed when backflushing in a productionby lot scenario:
          01,,Final backflush
          20,,Postprocessing
          • Parameters RP_SCRAPTYPE, ACTIVITIES_TYPE, COMPONENTS_TYPE

          • These parameters have no significance in the production by lotscenario.

            Description
            If the finished product to be backflushed takes part in the serialnumber assignment option, you can use this parameter to transfer theserial numbers with which the goods receipt for the finished product isto be posted. Please note that in certain circumstances the number ofserial numbers transferred must correspond exactly to the backflushquantity (this depends on the serial number settings in the SAP system).If, in this case, not enough serial numbers are transferred, thebackflush cannot be carried out successfully.