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
| Parameter | Type | Description | Required |
|---|---|---|---|
| PLANNEDORDER | BAPI_PLDORD-PLDORD_NUM | Planned order number | Yes |
| HEADERDATA | BAPIPLAF_I2 | Header data | Yes |
| HEADERDATAX | BAPIPLAF_I2X | Change flags for header data | Yes |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return messages |
| CHANGEDHEADERDATA | BAPIPLAF_E1 | Header data after the change |
| CAPACITYHEADERDATA1 | BAPI_KBKO | Capacity header (detailed scheduling) |
| CAPACITYHEADERDATA2 | BAPI_KBKO | Capacity header (rate-based scheduling) |
| CAPACITYHEADERDATA3 | BAPI_KBKO | Capacity header (rough-cut scheduling) |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| COMPONENTSDATA | BAPI_PLDORDCOMP_E1 | 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_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.