MM
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- MB_BUS2028
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_MATPHYSINV_CREATE_MULT'
EXPORTING
head = lv_head
TABLES
items = lt_items
return = lt_return.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.