Fonction SAP BAPI_PRODORDCONF_CANCEL - Cancel 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
CONF_TEXT BAPI_PP_CONFIRM-CONF_TEXT C 40 X Confirmation Text
POSTG_DATE BAPI_PP_CONFIRM-POSTG_DATE D 8 X Posting Date

Paramètre Reférence Type Long. Description
CREATED_CONF_COUNT BAPI_PP_CONF_KEY-CONF_CNT N 8 Confirmation Counter for Cancellation Record
CREATED_CONF_NO BAPI_PP_CONF_KEY-CONF_NO N 10 Confirmation of Cancellation Record
LOCKED BAPI_CORU_PARAM-LOCKED C 1 Indicator: Order is locked
RETURN BAPIRET1 u 470 Return Parameter

Functionality
You can use this method to cancel a confirmation for a production order.It makes no difference whether the confirmation was entered as a

  • Time ticket

  • Time event

  • Activity confirmation

  • Order confirmation.

  • Goods movements that were posted with the confirmed are cancelledautomically too. You cannot affect them.

    Notes
    INCLUDE BAPI_PRODORDCONF_HINT_COMMIT OBJECT DOKU ID TX
    Authorization check
    The authorization object C_AFRU_AWK is checkedtogether with activity 85 (cancel) as well as the order type and theplant of the confirmed order.
    Parameters

    • Confirmation

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

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

        • The posting date for the cancellation can be entered in thePostgDate parameter. This posting date is only used though, ifthe posting period of the original posting date has been locked inControlling for further posting. This could be the case if the postingperiod is a long time ago and it has been settled.
          • ConfText

          • You can enter an optional text in the ConfText parameter, givingthe reason for the cancelation.
            • Return

            • If the confirmation could not be canceled, you receive information aboutthe errors that have occurred in the Return parameter.
              • Locked

              • If cancelation could not be carried out, due to a lock conflict, theLocked indicator is set.
                • CreatedConfNo

                • If the confirmation can be canceled successfully, the CreatedConfNo
                  parameter is given the confirmation number of the cancelledconfirmation record generated.
                  • CreatedConfCount

                  • If the confirmation can be canceled successfully, theCreatedConfCount parameter is given the confirmation counter ofthe cancelled confirmation record generated. Together with theCreatedConfNo parameter it serves to identify the cancelledconfirmation record.

                    Description
                    Confirmation counter as part of the key for the created confirmationcancellation, if processing was successful.
                    The confirmation counter and the confirmation number combine to formthe key for every confirmation record in table AFRU.

                    Description
                    Confirmation number as part of the key for the created confirmationcancellation, if processing was successful.
                    The confirmation number and the confirmation counter combine to formthe key for every confirmation record in table AFRU.

                    Description
                    Export parameter Locked shows whether the confirmationcancellation was not possible as the result of a lock situation.
                    In this case, the cancellation can be resumed at a later stage ifnecessary, as this is merely a temporary exceptional situation.

                    Description
                    The Return parameter shows whether the confirmation cancellation couldbe successfully posted or which exceptions occurred.
                    If a cancellation is successful, the return parameter is returned withinitial values. If, however, an exception occurs, the Returnparameter's structure contains all the necessary information about theerror in detail. This information 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
                    You have the option of transferring a text string in theConfText parameter. For example, this could provide backgroundinformation about the cancellation.

                    Description
                    Date on which documents resulting from a confirmation are posted toaccounts in financial accounting or controlling.
                    When the confirmation is entered and cancelled, the relevant postingperiod is checked to see if it is still valid. If the posting period inwhich the confirmation was entered has since been closed, theconfirmation cancellation has to be carried out in an alternative openposting period. You can enter the alternative posting date in thePostgDate parameter.

1586230FAQ: Confirmation using BAPI in production order
744403Confirmation BAPI's do not produce any results
208477Consulting: Process control in confirmation