PP BAPI RFC Used the same way in S/4HANA

BAPI_PRODORDCONF_CANCEL Cancel Production Order Confirmation

Cancels a single production order confirmation identified by confirmation number and counter, like CO13. It is used when an interface sent wrong quantities or a terminal posting has to be reversed. Read the cancellation record from CREATED_CONF_NO and CREATED_CONF_COUNT, check LOCKED and RETURN, and commit afterwards.

Function group
2116
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
CONFIRMATIONBAPI_PP_CONF_KEY-CONF_NOConfirmation numberYes
CONFIRMATIONCOUNTERBAPI_PP_CONF_KEY-CONF_CNTConfirmation counterYes
CONF_TEXTBAPI_PP_CONFIRM-CONF_TEXTConfirmation text—
POSTG_DATEBAPI_PP_CONFIRM-POSTG_DATEPosting date—

Exporting parameters

ParameterTypeDescription
CREATED_CONF_COUNTBAPI_PP_CONF_KEY-CONF_CNTCounter of the cancellation record
CREATED_CONF_NOBAPI_PP_CONF_KEY-CONF_NOConfirmation number of the cancellation record
LOCKEDBAPI_CORU_PARAM-LOCKEDOrder is locked
RETURNBAPIRET1Return messages

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_PRODORDCONF_CANCEL'
  EXPORTING
    confirmation = lv_confirmation
    confirmationcounter = lv_confirmationcounter
  IMPORTING
    created_conf_count = lv_created_conf_count
    created_conf_no = lv_created_conf_no
    locked = lv_locked
    return = lv_return.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report