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

BAPI_PRODORD_GET_DETAIL Get Production Order Details

Reads the details of one production order: header, items, sequences, operations, components, PRTs and trigger points. It is used in reports and outbound interfaces that need the full order structure without reading AFKO, AFVC and RESB directly. Mark the objects you need in ORDER_OBJECTS; tables that are not requested come back empty.

Function group
2005_BAPI
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
NUMBERBAPI_ORDER_KEY-ORDER_NUMBERProduction order numberYes
ORDER_OBJECTSBAPI_PP_ORDER_OBJECTSOrder objects to readYes
COLLECTIVE_ORDERBAPI_ORDER_FUNC_CNTRL-COLLECTIVE_ORDERInclude the whole collective order—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRET2Return messages

Tables parameters

ParameterTypeDescriptionRequired
HEADERBAPI_ORDER_HEADER1Order header data—
POSITIONBAPI_ORDER_ITEMOrder item data—
SEQUENCEBAPI_ORDER_SEQUENCESequence data—
OPERATIONBAPI_ORDER_OPERATION1Operation data—
COMPONENTBAPI_ORDER_COMPONENTComponent data—
PROD_REL_TOOLBAPI_ORDER_PROD_REL_TOOLSProduction resources/tools—
TRIGGER_POINTBAPI_ORDER_TRIGGER_POINTTrigger point 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_PRODORD_GET_DETAIL'
  EXPORTING
    number = lv_number
    order_objects = lv_order_objects
  IMPORTING
    return = lv_return
  TABLES
    header = lt_header
    position = lt_position
    sequence = lt_sequence
    operation = lt_operation
    component = lt_component
    prod_rel_tool = lt_prod_rel_tool
    trigger_point = lt_trigger_point.

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