# BAPI_PRODORD_RELEASE — Release Production Orders

> Releases one or more production orders passed in the ORDERS table, which sets the REL status and allows confirmations and goods movements. Typical uses are scheduled jobs that release orders by date and interfaces that release orders after a material availability check. Check DETAIL_RETURN for the result of each order and commit with BAPI_TRANSACTION_COMMIT.

- 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-release/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| RELEASE_CONTROL | BAPI_ORDER_FUNC_CNTRL-RELEASE_CNTRL | Release control | Yes |
| WORK_PROCESS_GROUP | BAPI_ORDER_CNTRL_PARAM-WORK_PROC_GROUP | Server group for parallel processing | - |
| WORK_PROCESS_MAX | BAPI_ORDER_CNTRL_PARAM-WORK_PROC_MAX | Maximum number of work processes | - |

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ORDERS | BAPI_ORDER_KEY | Production order numbers | Yes |
| DETAIL_RETURN | BAPI_ORDER_RETURN | Detailed return messages per object | - |
| APPLICATION_LOG | BAPI_ORDER_APPLICATION_LOG | Application log handle | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_PRODORD_RELEASE'
  EXPORTING
    release_control = lv_release_control
  IMPORTING
    return = lv_return
  TABLES
    orders = lt_orders
    detail_return = lt_detail_return
    application_log = lt_application_log.
```

## Related tables

AFKO, AUFK, JEST

