BAPI_MATPHYSINV_CHANGECOUNT Change Count in Physical Inventory Document
Corrects the counted quantities in selected items of a physical inventory document whose count was already entered (the MI05 equivalent). It is used in interfaces that transfer corrected counts from handheld terminals or external counting apps. Pass the items with their item numbers in ITEMS and call BAPI_TRANSACTION_COMMIT when RETURN has no type E messages.
- Function group
- MB_BUS2028
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
ABAP Cloud and clean core status
Not to be released for ABAP Cloud MM-IM
SAP does not release this object for ABAP Cloud. It keeps working in classic ABAP; in ABAP Cloud and clean core development use the successor below.
Use instead in ABAP Cloud:
- I_PHYSICALINVENTORYDOCUMENTTP
Source: SAP's list of released objects (S/4HANA Cloud Private Edition, latest), SAP Cloudification Repository
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| PHYSINVENTORY | IKPF-IBLNR | Physical inventory document | Yes |
| FISCALYEAR | IKPF-GJAHR | Fiscal year | Yes |
| PERCENTAGE_VARIANCE | IIKPF-ABWEI | Percentage variance | — |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ITEMS | BAPI_PHYSINV_COUNT_ITEMS | Count items | Yes |
| SERIALNUMBERS | BAPI_PHYSINV_SERIALNUMBERS | Serial numbers | — |
| RETURN | BAPIRET2 | Return 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_CHANGECOUNT'
EXPORTING
physinventory = lv_physinventory
fiscalyear = lv_fiscalyear
TABLES
items = lt_items
serialnumbers = lt_serialnumbers
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.