I am searching a way to create a WM inventory AT MATERIAL level.
When I am trying to use the function L_INV_DOC_CREATE it doesn't work because it tries to get a new inventory number using the field T340d-NUKIQ, but this field is used for inventory at Quant level. I need a Function or a class that will find the number with T340d-NUKIV
I think that if you call the function providing a list of storage bins to be counted in the IT_LAGP and with IT_LQUA empty, then the physical inventory document will be on the bin level.
I have not tested that - the conclusion is just from looking at the function ABAP code.