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
| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADERDATA | BAPIPLAF_I1 | Header data | Yes |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return messages |
| PLANNEDORDER | BAPI_PLDORD-PLDORD_NUM | Created planned order number |
| CREATEDHEADERDATA | BAPIPLAF_E1 | Header data of the created order |
| 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_I1 | Component data | — |
| CREATEDCOMPONENTSDATA | BAPI_PLDORDCOMP_E1 | Created 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.