# BAPI_INTERNALORDER_GETDETAIL — Internal Order Master Data, Status and Allowed Transactions

> Returns the master data, system and user statuses and allowed business transactions of an internal order. Interfaces use it to check whether an order is open, closed or technically completed before posting to it. Pass the order number in its 12-digit internal format; RETURN uses the older BAPIRETURN type.

- Modules: CO
- Type: BAPI
- Function group: 2075
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-internalorder-getdetail/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ORDERID | BAPI2075_2-ORDER | Order number | Yes |
| LANGUAGE | BAPI0003_3-LANGU | Language for texts | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| MASTER_DATA | BAPI2075_2 | Order master data |
| RETURN | BAPIRETURN | Return message |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| SYSTEM_STATUS | BAPI2075_3 | System statuses | - |
| USER_STATUS | BAPI2075_4 | User statuses | - |
| ALLOWED_BUS_TRACT | BAPI2075_5 | Allowed business transactions | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_INTERNALORDER_GETDETAIL'
  EXPORTING
    orderid = lv_orderid
  IMPORTING
    master_data = lv_master_data
    return = lv_return
  TABLES
    system_status = lt_system_status
    user_status = lt_user_status
    allowed_bus_tract = lt_allowed_bus_tract.
```

## Related tables

AUFK, JEST

