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

BAPI_PLANNEDORDER_CHANGE Change Planned Order

Changes the header data of an existing planned order, for example quantity or dates. It is used when an external planning system re-plans orders that SAP MRP created. Set the matching field in HEADERDATAX for every value in HEADERDATA and commit after an empty RETURN.

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

Importing parameters

ParameterTypeDescriptionRequired
PLANNEDORDERBAPI_PLDORD-PLDORD_NUMPlanned order numberYes
HEADERDATABAPIPLAF_I2Header dataYes
HEADERDATAXBAPIPLAF_I2XChange flags for header dataYes

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return messages
CHANGEDHEADERDATABAPIPLAF_E1Header data after the change
CAPACITYHEADERDATA1BAPI_KBKOCapacity header (detailed scheduling)
CAPACITYHEADERDATA2BAPI_KBKOCapacity header (rate-based scheduling)
CAPACITYHEADERDATA3BAPI_KBKOCapacity header (rough-cut scheduling)

Tables parameters

ParameterTypeDescriptionRequired
COMPONENTSDATABAPI_PLDORDCOMP_E1Component 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_CHANGE'
  EXPORTING
    plannedorder = lv_plannedorder
    headerdata = lv_headerdata
    headerdatax = lv_headerdatax
  IMPORTING
    return = lv_return
    changedheaderdata = lv_changedheaderdata
    capacityheaderdata1 = lv_capacityheaderdata1
    capacityheaderdata2 = lv_capacityheaderdata2
    capacityheaderdata3 = lv_capacityheaderdata3
  TABLES
    componentsdata = lt_componentsdata.

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