# 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.

- Modules: PP
- Type: BAPI
- Function group: 2005_BAPI
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-prodord-get-detail/

## 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)

```abap
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

AFKO, AFPO, AFVC, RESB

