# BAPI_INTERNALORDER_SAVEREPLICA — Replicate Individual Internal Order (ALE)

> Saves internal order master data and statuses received from another system through ALE in the receiving system. It is usually not called directly; it runs in IDoc inbound processing for the INTERNALORDER message type. In distributed landscapes make sure order number ranges and order types are defined the same way in both systems.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| MASTERDATA | BAPI2075_MASTERDATA_ALE | Order master data | Yes |
| STATUSHEADER | BAPI2075_STATUSHEADER_ALE | Status header | Yes |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| OBJECTSTATUS | BAPI2075_OBJECTSTATUS_ALE | Object statuses | Yes |
| RETURN | BAPIRET2 | Return messages | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_INTERNALORDER_SAVEREPLICA'
  EXPORTING
    masterdata = lv_masterdata
    statusheader = lv_statusheader
  TABLES
    objectstatus = lt_objectstatus
    return = lt_return.
```

## Related tables

AUFK, JEST

