PP
BAPI
RFC
Used the same way in S/4HANA
BAPI_REQUIREMENTS_CHANGE Change Planned Independent Requirements
Changes existing planned independent requirements identified by material, plant, requirements type, version and requirements plan number. It is used when demand plans are refreshed periodically from a forecasting system. Use DELETE_OLD and UPDATE_MODE deliberately, because they decide what happens to schedule lines you do not pass.
- Function group
- 3027
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| MATERIAL | BAPISITEMR-MATERIAL | Material number | Yes |
| PLANT | BAPISITEMR-PLANT | Plant | Yes |
| REQUIREMENTSTYPE | BAPISITEMR-REQU_TYPE | Requirements type | Yes |
| VERSION | BAPISITEMR-VERSION | Version | Yes |
| REQMTSPLANNUMBER | BAPISITEMR-REQ_NUMBER | Requirements plan number | Yes |
| VERS_ACTIV | BAPISITEMR-VERS_ACTIV | Version active | Yes |
| MATERIAL_LONG | BAPISITEMR-MATERIAL_LONG | Material number (long) | — |
| MRP_AREA | BAPISITEMR-MRP_AREA | MRP area | — |
| DO_COMMIT | BAPISPARAM-DO_COMMIT | Commit inside the BAPI | — |
| UPDATE_MODE | BAPISPARAM-UPDATE_MODE | Update mode | — |
| DELETE_OLD | BAPISPARAM-DELETE_OLD | Delete existing schedule lines | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| REQUIREMENT_ITEM_OUT | BAPISITEMR | Item data after the change |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| REQUIREMENTS_SCHEDULE_IN | BAPISSHDIN | Schedule lines | — |
| REQUIREMENTS_CHAR_IN | BAPISCHARR | Configuration (characteristic) data | — |
| RETURN | BAPIRETURN1 | Return messages | Yes |
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_REQUIREMENTS_CHANGE'
EXPORTING
material = lv_material
plant = lv_plant
requirementstype = lv_requirementstype
version = lv_version
reqmtsplannumber = lv_reqmtsplannumber
vers_activ = lv_vers_activ
IMPORTING
requirement_item_out = lv_requirement_item_out
TABLES
requirements_schedule_in = lt_requirements_schedule_in
requirements_char_in = lt_requirements_char_in
return = lt_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.