Fonction SAP BAPI_ALM_CONF_CANCEL - Cancel confirmation for maintenance/service order

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONFIRMATION BAPI_CONF_KEY-CONF_NO N 10 Confirmation
CONFIRMATIONCOUNTER BAPI_CONF_KEY-CONF_CNT N 8 Confirmation counter
CONFTEXT BAPI_ALM_CONFIRMATION-CONF_TEXT C 40 X Confirmation Text
POSTGDATE BAPI_ALM_CONFIRMATION-POSTG_DATE D 8 X Posting Date

Paramètre Reférence Type Long. Description
CREATED_CONF_COUNT BAPI_CONF_KEY-CONF_CNT N 8 Confirmation counter for cancellation record
CREATED_CONF_NO BAPI_CONF_KEY-CONF_NO N 10 Confirmation of cancellation record
LOCKED BAPI_CORU_PARAM-LOCKED C 1 Indicator: Order is locked
RETURN BAPIRET2 u 548 Return Parameter

Functionality
This method is used to cancel the confirmation of a maintenance/serviceorder.
Goods movements that were posted along with the confirmation (backflush)are also automatically canceled. They cannot be influenced externally.
INCLUDE BAPI_COMMIT OBJECT DOKU ID TX LANGUAGE EN

Notes
INCLUDE BAPI_PRODORDCONF_HINT_COMMIT OBJECT DOKU ID TX
Authorization check
The authorization object C_AFRU_AWK with activity85 (cancel) and the order type and plant for the confirmedmaintenance/service order are checked.
Parameter

  • Confirmation

  • The CONFIRMATION parameter contains the confirmation number whichuniquely identifies the confirmed object.
    • ConfirmationCounter

    • The CONFIRMATIONCOUNTER parameter, along with theCONFIRMATION parameter, represents the unique identification ofthe individual confirmation.
      • PostgDate

      • The POSTGDATE parameter is used to specify a posting date for thereverse postings. However, this posting date is only used if the postingperiod of the original posting date is locked in the controlling forfurther postings. This may be the case if the posting period is in thepast and has already been completed.
        • ConfText

        • In the CONFTEXT parameter, you have the option of entering a textthat describes the reason for the cancelation.
          • ExternalIdent

          • The EXTERNALIDENT parameter is used to specify the confirmationkey that has been defined in the external system for a confirmation andwas specified in the SAP system when the confirmation was entered andwas also saved in the SAP system. The CONFIRMATION parameter mustalso be specified for the unique identification of a confirmation.
            • Return

            • If the confirmation could not be canceled, the RETURN parameterprovides information on the errors that occurred.
              • Locked

              • If the cancelation cannot be posted due to a lock conflict, the LOCKED indicator is set.
                • CreatedConfNo

                • If the confirmation can be canceled successfully, the CREATEDCONFNO
                  parameter contains the confirmation number for thecancelation-confirmation record that was created.
                  • CreatedConfCount

                  • If the confirmation can be canceled successfully, theCREATEDCONFCOUNT parameter contains the confirmation counter forthe cancelation-confirmation record that was created. Together with theCREATEDCONFNO parameter, this provides a unique identificationfor the cancelation-confirmation record.

                    Description
                    The confirmation counter as part of the key of the cancellationconfirmation created during a successful processing.
                    The confirmation and the confirmation counter form the key for one ofeach confirmation record in table AFRU.

                    Description
                    Confirmation as a part of the key of the cancellation confirmationcreated during a successful processing.
                    The confirmation and the confirmation counter form the key for one ofeach confirmation record in table AFRU.

                    Description
                    The LOCKED export parameter displays if the confirmation couldnot be canceled due to a lock situation.
                    In this case, the cancelation may be repeated at a later date since theproblem was only a temporary exceptional situation.

                    Description
                    The return parameter displays if the confirmation cancelation wasposted correctly or which exceptions occurred.
                    If the cancelation was successful, the return parameter is returnedwith initial values. However, if an exception occurred, the structureof the RETURN parameter contains all necessary information onthe error that occurred, both in detail and formatted in theMESSAGE
                    message text.

                    Description
                    The confirmation is an internally assigned number that is assigned foreach operation of an order when the operation is created. It is aunique identification for the operation.
                    Together, the confirmation counter and the confirmation form the keyfor each confirmation record in table AFRU.

                    Description
                    A confirmation counter is an internally assigned counter thatdistinguishes several confirmations for the same operation or for thesame order. The most recently assigned confirmation counter is retainedin the operation or order.
                    Togther, the confirmation and the confirmation counter form the key foreach confirmation record in table AFRU.

                    Description
                    As an option, you can transfer a text string to parameter CONFTEXT that refers to the background for the cancelation.

                    Description
                    Date on which documents resulting from the confirmation are entered inaccounting or cost accounting.
                    When entering and reversing a confirmation, a check is run to seewhether the corresponding posting period is valid. If a confirmationthat was entered for a posting period that has subsequently closed isto be reversed, the reversal must take place in an alternative openposting period. For this case, the alternative posting date for thereversal can be provided in the POSTGDATE parameter.

901919PM/CS order: Incorrect maint planner group authorization chk
898409PM/CS order: Incorrect maint plng plant authorization check