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

BAPI_PRODORD_CREATE Create Production Order

Creates a production order from header data such as material, plant, order type, quantity and basic dates; routing and BOM are exploded as in CO01. Developers use it in interfaces from MES or planning tools and in mass-creation uploads. Read ORDER_NUMBER only when RETURN has no E or A message, then call BAPI_TRANSACTION_COMMIT.

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

Importing parameters

ParameterTypeDescriptionRequired
ORDERDATABAPI_PP_ORDER_CREATEData for creating the production orderYes

Exporting parameters

ParameterTypeDescription
ORDER_NUMBERBAPI_ORDER_KEY-ORDER_NUMBERProduction order number
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_CREATE'
  EXPORTING
    orderdata = lv_orderdata
  IMPORTING
    order_number = lv_order_number
    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