# BAPI_PLANNEDORDER_GET_DET_LIST — Get Detailed Planned Order List

> Returns header data of planned orders that match the selection criteria, such as material, plant or MRP controller. It is used in custom planning reports and in interfaces that export planned orders. Fill SELECTIONCRITERIA as narrowly as possible, because large plants can return many orders.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| SELECTIONCRITERIA | BAPIPLAF_I3 | Selection criteria | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return messages |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| DETAILEDLIST | BAPIPLAF_E1 | Planned orders with header data | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_PLANNEDORDER_GET_DET_LIST'
  EXPORTING
    selectioncriteria = lv_selectioncriteria
  IMPORTING
    return = lv_return
  TABLES
    detailedlist = lt_detailedlist.
```

## Related tables

PLAF

