Fonction SAP BAPI_PRODORDCONF_GETDETAIL - Detailed Data for Production Order Confirmation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONFIRMATION BAPI_PP_CONF_KEY-CONF_NO N 10 Confirmation
CONFIRMATIONCOUNTER BAPI_PP_CONF_KEY-CONF_CNT N 8 Confirmation counter

Paramètre Reférence Type Long. Description
CONF_DETAIL BAPI_PP_CONFIRM u 702 Data from production order confirmation
RETURN BAPIRET1 u 470 Return parameter

Paramètre Reférence Long. Facultatif Description
FAILEDGMOVES BAPI_CORU_FGM 545 X Incorrect or Flagged Goods Movements
GOODSMOVEMENTS BAPI2017_GM_ITEM_SHOW 887 X Successfully Posted Goods Movements

Functionality
In this method the data for a confirmation for a production order isprovided in the ConfDetail parameter. It makes no differencewhether the confirmation is entered as a

  • Time ticket

  • Time event

  • Activity confirmation

  • Order confirmation

  • Goods movements that are posted together with the confirmation, arealso provided. Here the system differentiates between successfullyposted goods movements in the Goodsmovements table and goodsmovements with errors in the Failedgmoves. The latter can bere-processed with the COGI transcation.

    Notes
    Authorization check
    The authorization object C_AFRU_AWK is checkedtogether with the activity 03 (display), the order type and the plantof the confirmed production order.
    Parameters

    • Confirmation

    • The parameter Confirmation is the confirmation number, withwhich the confirmed object can be identified.
      • ConfirmationCounter

      • The parameter ConfirmationCounter identifies individualconfirmations, together with the parameter Confirmation.
        • Return

        • If the confirmation data could not be provided due to an error, theReturn parameter receives information about the error.
          • ConfDetail

          • ConfDetail contains the confirmation data of the selectedconfirmation.
            • Goodsmovements

            • The optional table Goodsmovements contains the goods movementsthat have been successfully posted for the confirmation. These can begoods issues or goods receipts from several material documents.
              • Failedgmoves The optional table Failedgmoves contains the
              • goods movements that could not be posted because of an error. Thesegoods movements have to be re-processed with the help of transactionCOGI.
                Reprocessing incorrect goods movements

                Description
                Detail data about the confirmation that is identified with the keyConfirmation and ConfirmationCounter.

                Description
                The Return parameter shows whether the requested confirmation datacould be provided or which exceptions occurred.
                If the confirmation data has been successfully provided, the Returnparameter is returned with initial values.
                The Return parameter is only filled if either the requestedconfirmation does not exist, the confirmation exists but belongs inanother order category or authorization to access the confirmation doesnot exist. If one of these exceptions occurs, the Returnparameter's structure contains all the necessary information about theerror in detail. This is also prepared in the message textMESSAGE.

                Description
                The confirmation number is assigned internally. It is assigned to everyoperation in an order at the point when the operation is created. Ittherefore clearly identifies the operation.
                If a confirmation is entered for an order, rather than for anoperation, this internal number is not assigned until the firstconfirmation is made. The number is then stored in the order header.
                The confirmation number and the confirmation counter combine to formthe key for every confirmation record in the table AFRU.

                Description
                The confirmation counter is assigned internally and is used todifferentiate between several confirmations for the same operation orthe same order. The last confirmation counter to be assigned is alwaysrecorded in the operation or the order.
                The confirmation number and the confirmation counter combine to formthe key for every confirmation record in table AFRU.

                Description
                Automatic goods movements can also be posted with a confirmation. Thiscan take the form of automatic goods receipts andbackflushing.
                The posting of individual goods movements can fail due to an exception.Other goods movements can be posted immediately, without difficulty,when the confirmation is saved. Failed goods movements can besuccessfully posted by being reprocessed at a later stage.
                However, by rescheduling the execution of goods movements postings, youcan also decouple them from the process of saving the confirmation. Inthis case, future change records are written for background jobs.
                The structure of the FailedGmoves table contains all goodsmovements that are assigned to the selected confirmation and that havenot yet been successfully posted. These can be goods movements witherrors as well as those selected for background jobs.

                Description
                Automatic goods movements can also be posted with a confirmation. Thiscan take the form of automatic goods receipts andbackflushing.
                The posting of individual goods movements can fail due to an exception.Other goods movements can be posted immediately, without difficulty,when the confirmation is saved. Failed goods movements can besuccessfully posted by being reprocessed at a later stage.
                However, by rescheduling the execution of goods movement postings, youcan also decouple them from the process of saving the confirmation. Inthis case, future change records are written for background jobs.
                The Goodsmovements table contains all goods movements that areassigned to the selected confirmation and that have been successfullyposted up to this point in time.