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

ParameterTypeDescriptionRequired
HEADBAPI_PHYSINV_CREATE_HEADPhysical inventory document headerYes
MAXITEMSAM07M-MAXPOMaximum number of items per document—

Tables parameters

ParameterTypeDescriptionRequired
ITEMSBAPI_PHYSINV_CREATE_ITEMSPhysical inventory document itemsYes
RETURNBAPIRET2Confirmations and error messagesYes

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.

Request a custom report