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
| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI_ORDER_KEY-ORDER_NUMBER | Production order number | Yes |
| ORDER_OBJECTS | BAPI_PP_ORDER_OBJECTS | Order objects to read | Yes |
| COLLECTIVE_ORDER | BAPI_ORDER_FUNC_CNTRL-COLLECTIVE_ORDER | Include the whole collective order | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return messages |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADER | BAPI_ORDER_HEADER1 | Order header data | — |
| POSITION | BAPI_ORDER_ITEM | Order item data | — |
| SEQUENCE | BAPI_ORDER_SEQUENCE | Sequence data | — |
| OPERATION | BAPI_ORDER_OPERATION1 | Operation data | — |
| COMPONENT | BAPI_ORDER_COMPONENT | Component data | — |
| PROD_REL_TOOL | BAPI_ORDER_PROD_REL_TOOLS | Production resources/tools | — |
| TRIGGER_POINT | BAPI_ORDER_TRIGGER_POINT | Trigger 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.