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

BAPI_REQUIREMENTS_CREATE Create Planned Independent Requirements

Creates planned independent requirements for a material, plant, requirements type and version, with schedule lines, like MD61. It is the standard way to load demand plans or sales forecasts from Excel or a planning tool. The BAPI has its own DO_COMMIT switch, so decide whether it commits or your program calls BAPI_TRANSACTION_COMMIT, and check the RETURN table.

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

Importing parameters

ParameterTypeDescriptionRequired
REQUIREMENTS_ITEMBAPISITEMRRequirement item dataYes
DO_COMMITBAPISPARAM-DO_COMMITCommit inside the BAPI—
UPDATE_MODEBAPISPARAM-UPDATE_MODEUpdate mode—

Exporting parameters

ParameterTypeDescription
MATERIALBAPISITEMR-MATERIALMaterial number
MATERIAL_EVGBAPIMGVMATNRLong material number (external)
MATERIAL_LONGBAPISITEMR-MATERIAL_LONGMaterial number (long)
MRP_AREABAPISITEMR-MRP_AREAMRP area
PLANTBAPISITEMR-PLANTPlant
REQMTSPLANNUMBERBAPISITEMR-REQ_NUMBERRequirements plan number
REQUIREMENTSTYPEBAPISITEMR-REQU_TYPERequirements type
REQ_PLAN_ID_EXTBAPISITEMR-REQ_PLAN_ID_EXTExternal requirements plan ID
REQ_SEGMENTBAPISITEMR-REQ_SEGMENTRequirement segment
VERSIONBAPISITEMR-VERSIONVersion

Tables parameters

ParameterTypeDescriptionRequired
REQUIREMENTS_SCHEDULE_INBAPISSHDINSchedule linesYes
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_CREATE'
  EXPORTING
    requirements_item = lv_requirements_item
  IMPORTING
    material = lv_material
    material_evg = lv_material_evg
    material_long = lv_material_long
    mrp_area = lv_mrp_area
    plant = lv_plant
    reqmtsplannumber = lv_reqmtsplannumber
    requirementstype = lv_requirementstype
    req_plan_id_ext = lv_req_plan_id_ext
    req_segment = lv_req_segment
    version = lv_version
  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