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

ParameterTypeDescriptionRequired
MATERIALBAPISITEMR-MATERIALMaterial numberYes
PLANTBAPISITEMR-PLANTPlantYes
REQUIREMENTSTYPEBAPISITEMR-REQU_TYPERequirements typeYes
VERSIONBAPISITEMR-VERSIONVersionYes
REQMTSPLANNUMBERBAPISITEMR-REQ_NUMBERRequirements plan numberYes
VERS_ACTIVBAPISITEMR-VERS_ACTIVVersion activeYes
MATERIAL_LONGBAPISITEMR-MATERIAL_LONGMaterial number (long)—
MRP_AREABAPISITEMR-MRP_AREAMRP area—
DO_COMMITBAPISPARAM-DO_COMMITCommit inside the BAPI—
UPDATE_MODEBAPISPARAM-UPDATE_MODEUpdate mode—
DELETE_OLDBAPISPARAM-DELETE_OLDDelete existing schedule lines—

Exporting parameters

ParameterTypeDescription
REQUIREMENT_ITEM_OUTBAPISITEMRItem data after the change

Tables parameters

ParameterTypeDescriptionRequired
REQUIREMENTS_SCHEDULE_INBAPISSHDINSchedule lines—
REQUIREMENTS_CHAR_INBAPISCHARRConfiguration (characteristic) data—
RETURNBAPIRETURN1Return messagesYes

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.

Request a custom report