cancel
Showing results for 
Search instead for 
Did you mean: 

FM to Add new item(Material) in physical inventory document (MI02)

Former Member
0 Kudos

Hi all,

My requirement is to add new item Material in physical inventory document (Transaction MI02 > Edit > new item) using BAPI.

Standard SAP is using FM MB_UPDATE_INVENTORY_DOCUMENT to update physical inventory document. In this FM control parameters XVM07I & L_TIM07I needs to be passed. I have only PI doc header and item details. How to fill data in control parameters. I can fill

L_TIM07I by fetching data from T001, T001W and T001K table. But didn't find any logic to fill XVM071.

This is not released so can I use it ?

Is there any other FM to update PI doc or to insert new item into PI doc.

Thanks & Regards,

Manjiri Kamthe

Accepted Solutions (0)

Answers (1)

Answers (1)

NTeunckens
Active Contributor
0 Kudos

I don't think it is possible to just 'add' on an existing Phys.Inventory Document by FunctionModules or BAPI's.

2 options in my mind :

  • Have you thought about using BDC with 'MI02'? That could be your way out ;
  • It is probably better to start afresh, delete incomplete Documents and just create NEW Phys.Inventory documents with the Full Set of Materials instead of doing complex developments to add to existing Documents (if at all possible).
    The "BAPI_MATPHYSINV*" functions will help you there ...


Furthermore, there are some limitations in Mass-Processing ... what numbers of Materials are you talking about? See KBA 1655631 (a maximum of 333 items is accepted on one Physical Document) ...

Hope this helps

Nic T.