cancel
Showing results for 
Search instead for 
Did you mean: 

How do i get Document Number When using BAPI_MATPHYSINV_CREATE_MULT

zreds
Explorer
0 Kudos

Hello Gurus,

Im using BAPI_MATPHYSINV_CREATE_MULT to create inventory document ,

the second step would be to use BAPI_MATPHYSINV_COUNT and i need the document number but i cant find it anywhere.

Any idea to where i can find it ??

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

DominikTylczyn
Active Contributor

Hello zredsdread

I assume the BAPI_MATPHYSINV_CREATE_MULT function will return the success message M&710 in the RETURN table. Then, the inventory document number will be provided in the MESSAGE_V1 field.

Best regards

Dominik Tylczynski

Answers (3)

Answers (3)

raymond_giuseppi
Active Contributor

Look at RETURN table for message 710(M7)

Hint: For a sample look at FM IVIEW_SM_INV_RECOUNT.

DominikTylczyn
Active Contributor

Hello zredsdread

I guess it's returned in the RETURN table in the success message.

Best regards

Dominik Tylczynski

zreds
Explorer
0 Kudos

I have to extract the doc number from the string message ??

martinborda
Explorer
0 Kudos

I used

GET PARAMETER ID 'IBN' FIELD lv_physinventory_number.