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

BAPI_PLANNEDORDER_CREATE Create Planned Order

Creates a planned order with header data such as material, plant, order profile, quantity and dates, and optionally its components. It is used by APS or external planning tools that send their planning results to SAP. RETURN is a single BAPIRETURN1 structure; if it is empty, read PLANNEDORDER and call BAPI_TRANSACTION_COMMIT.

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

Importing parameters

ParameterTypeDescriptionRequired
HEADERDATABAPIPLAF_I1Header dataYes

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return messages
PLANNEDORDERBAPI_PLDORD-PLDORD_NUMCreated planned order number
CREATEDHEADERDATABAPIPLAF_E1Header data of the created order
CAPACITYHEADERDATA1BAPI_KBKOCapacity header (detailed scheduling)
CAPACITYHEADERDATA2BAPI_KBKOCapacity header (rate-based scheduling)
CAPACITYHEADERDATA3BAPI_KBKOCapacity header (rough-cut scheduling)

Tables parameters

ParameterTypeDescriptionRequired
COMPONENTSDATABAPI_PLDORDCOMP_I1Component data—
CREATEDCOMPONENTSDATABAPI_PLDORDCOMP_E1Created component data—

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_PLANNEDORDER_CREATE'
  EXPORTING
    headerdata = lv_headerdata
  IMPORTING
    return = lv_return
    plannedorder = lv_plannedorder
    createdheaderdata = lv_createdheaderdata
    capacityheaderdata1 = lv_capacityheaderdata1
    capacityheaderdata2 = lv_capacityheaderdata2
    capacityheaderdata3 = lv_capacityheaderdata3
  TABLES
    componentsdata = lt_componentsdata
    createdcomponentsdata = lt_createdcomponentsdata.

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