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

BAPI_PLANNEDORDER_GET_DETAIL Get Planned Order Details

Reads the header, capacity headers and component data of one planned order. It is used in reports and outbound interfaces that pass planned orders to APS or MES systems. Check RETURN before using HEADERDATA, because the structures stay initial when the order is not found.

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

Importing parameters

ParameterTypeDescriptionRequired
PLANNEDORDERBAPI_PLDORD-PLDORD_NUMPlanned order numberYes

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return messages
HEADERDATABAPIPLAF_E1Planned order header data
CAPACITYHEADERDATA1BAPI_KBKOCapacity header (detailed scheduling)
CAPACITYHEADERDATA2BAPI_KBKOCapacity header (rate-based scheduling)
CAPACITYHEADERDATA3BAPI_KBKOCapacity header (rough-cut scheduling)

Tables parameters

ParameterTypeDescriptionRequired
COMPONENTSDATABAPI_PLDORDCOMP_E1Component 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_GET_DETAIL'
  EXPORTING
    plannedorder = lv_plannedorder
  IMPORTING
    return = lv_return
    headerdata = lv_headerdata
    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.

Request a custom report