SAP Function BAPI_PROCORDCONF_CANCEL - Cancel Process Order Confirmation

Parameter Reference Type Length Default Optional Text
CONFIRMATION BAPI_PI_CONF_KEY-CONF_NO N 10 Completion confirmation number for the operation
CONFIRMATIONCOUNTER BAPI_PI_CONF_KEY-CONF_CNT N 8 Confirmation counter
CONF_TEXT BAPI_PI_CONFIRM-CONF_TEXT C 40 X Confirmation Text
POSTG_DATE BAPI_PI_CONFIRM-POSTG_DATE D 8 X Posting Date

Parameter Reference Type Length Text
CREATED_CONF_COUNT BAPI_PI_CONF_KEY-CONF_CNT N 8 Confirmation counter
CREATED_CONF_NO BAPI_PI_CONF_KEY-CONF_NO N 10 Completion confirmation number for the operation
LOCKED BAPI_CORU_PARAM-LOCKED C 1 Indicator: Entry blocked
RETURN BAPIRET1 u 470 Return Parameters

Functionality
You can use this method to cancel a confirmation of a processorder.
The confirmation can be created as any one of the following types:

  • As a confirmation time ticket

  • As a time event

  • As an activity confirmation

  • As an order confirmation

  • Goods movements that are posted together with the confirmation, areautomatically cancelled too. They cannot be externally influenced.
    INCLUDE BAPI_PRODORDCONF_HINT_COMMIT OBJECT DOKU ID TX
    Authorization Check
    Authorization checks are performed for the following objects:
    • Authorization object C_AFRU_AWK with the
    • activity 85 - Cancel
      • Order type of the process order to be confirmed

      • Plant of the process order to be confirmed
      • Description
        The CreatedConfCount parameter transfers the confirmationcounter as a component of the key of the created cancellationconfirmation for a successful processing.
        Together with the CreatedConfNo confirmation, the confirmationcounter forms the key of every confirmation record in table AFRU.

        Description
        The parameter CreatedConfNo transfers the confirmation as acomponent of the key of the generated cancellation confirmation for asuccessful processing.
        Together with the confirmation counter, CreatedConfCount,the confirmation makes up the key of every confirmation recordin the table AFRU.

        Description
        The parameter Locked indicates whether the cancellation of theconfirmation was prevented due to a lock situation.
        If the lock situation is only valid for a certain amount of time thenthe cancellation can be carried out later.

        Description
        The parameter Return displays whether the cancellation of theconfirmation was posted successfully.
        If the confirmation has failed, the return parameter transfers detailedinformation and message texts for the exceptional situation.

        Default
        If the cancellation is successful, the return parameter is returnedwith initial values.

        Description
        The Confirmation parameter transfers the confirmation number.
        The number is assigned internally for each phase of an order when thephase is created. It identifies the phase uniquely.
        If a confirmation is created not for the phase but for the order, thenthe number is assigned for the time of the first confirmation and storedin the order header.
        Together with the Confirmationcounter confirmation counter, theconfirmation number forms the key of every confirmation record in theAFRU table.

        Description
        The Confirmation Counter transfers the confirmation counter.
        The internally assigned counder distinguishes between multipleconfirmations for the same phase or the the same order. The lastassigned confirmation counter is retained in the phase or in the order.
        Together with the Confirmation confirmation number, theconfirmation counter forms the key of every confirmation record in tableAFRU.

        Description
        A text string can be transferred in the parameter ConfText
        The text can be used to explain the reason for the cancellation, forexample.

        Description
        The parameter PostgDate transfers the date under which thedocumenents of a confirmation are created in accounting or costaccounting.
        The system checks whether the posting period is admissible, both whena confirmation is created and when it is canceled.
        If a confirmation that has been created for a posting period that hassubsequently been closed is to be canceled, the cancellation musttake place in a different open posting period. In this case, you canmake the new posting date for the cancellation available in theparameter PostgDate.