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

BAPI_PRODORD_CHANGE Change Production Order

Changes header fields of an existing production order, for example quantity or basic dates. It is used when an external planning system reschedules orders or when a custom program corrects orders in bulk. Set the matching flag in ORDERDATAX for every field you fill in ORDERDATA, otherwise the value is ignored.

Function group
2005_BAPI
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
NUMBERBAPI_ORDER_KEY-ORDER_NUMBERProduction order numberYes
ORDERDATABAPI_PP_ORDER_CHANGEProduction order fields to changeYes
ORDERDATAXBAPI_PP_ORDER_CHANGEXChange flags for order dataYes

Exporting parameters

ParameterTypeDescription
MASTER_DATA_READBAPIFLAG-BAPIFLAGMaster data was read again
ORDER_STATUSBAPI_ORDER_STATUSOrder status indicators
ORDER_TYPEBAPI_ORDER_COPY-ORDER_TYPEOrder type
RETURNBAPIRET2Return 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_PRODORD_CHANGE'
  EXPORTING
    number = lv_number
    orderdata = lv_orderdata
    orderdatax = lv_orderdatax
  IMPORTING
    master_data_read = lv_master_data_read
    order_status = lv_order_status
    order_type = lv_order_type
    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