# BAPI_MATPHYSINV_CREATE_MULT — Create Physical Inventory Documents

> Creates one or more physical inventory documents (MI01) from header data and a list of items. Developers use it to automate count planning or to bring count lists from warehouse systems. Use MAXITEMS to limit the items per document; the created document numbers come back in the RETURN messages, and you then call BAPI_TRANSACTION_COMMIT.

- Modules: MM
- Type: BAPI
- Function group: MB_BUS2028
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-matphysinv-create-mult/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| HEAD | BAPI_PHYSINV_CREATE_HEAD | Physical inventory document header | Yes |
| MAXITEMS | AM07M-MAXPO | Maximum number of items per document | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ITEMS | BAPI_PHYSINV_CREATE_ITEMS | Physical inventory document items | Yes |
| RETURN | BAPIRET2 | Confirmations and error messages | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_MATPHYSINV_CREATE_MULT'
  EXPORTING
    head = lv_head
  TABLES
    items = lt_items
    return = lt_return.
```

## Related tables

IKPF, ISEG

