cancel
Showing results for 
Search instead for 
Did you mean: 

mb_physical_inventory - booked quantity in not correct mi20

k_gjergja
Participant
0 Kudos

Hello ,

I have develop program with two functionalities.

1-picking against reservation for tat I am using 'BAPI_GOODSMVT_CREATE'

2-counting inventory for witch I am using function "mb_physical_inventory"

issue : after picking and psychical inventory quantity in MMBE is exact

Si if we start with qty 200 than we pick 1 pc ( witch is ok ) and afterwards we do

MB_physical inventory in same plant /storage location for the same material

in mmbe we see 199 pc of the same material, But in MI20 after creation

of physical inventory the Book quantity remains 200. I would expected 199 pc

as 1 pc is removed in previous step .

Please advice

View Entire Topic
DominikTylczyn
Active Contributor
0 Kudos

First of all don't use MB_PHYSICAL_INVENTORY function.

As per note 2554230 - Create physical inventory document via BAPI

1. BAPI_MATPHYSINV_CREATE_MULT

Used to create one or more physical inventory documents.

2. BAPI_MATPHYSINV_COUNT

Used to enter the count for items in a physical inventory document.

3. BAPI_MATPHYSINV_POSTDIFF

Used to post differences for physical inventory documents.

MB_PHYSICAL_INVENTORY is not released for the customer.

I'd suggest change your process to use SAP provided BAPIs according to their documentation and with proper transaction handling and see if that solves your problem.

If the problem persists you'll be able to call SAP support then as you'll be using SAP provided official BAPI interfaces.

Best regards

Dominik Tylczynski

k_gjergja
Participant
0 Kudos

Thank you

k_gjergja
Participant
0 Kudos

Hello Dominik ,

It works perfectly. I have one more question. If inventory number is created and and count, for some reason fail,

I would like to delete inventory number . Do you know bapi used to delete an existing inventory number in

that case.

Thank you