Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

upload stock through BAPI

Former Member
0 Kudos

I am using function module BAPI_GOODSMVT_CREATE to upload stock for movement types Z61 and Z62. Z61 is used to increase stock and Z62 to decrease it. Now the same i want to modify fir movement types 701 and 702. 701 is used for increase stock & 702 to decrease it. But when i execute the report it is giving me error

"Qty and / or "delivery completed" ind. or final issue ind. are missing". How do i proceed

1 ACCEPTED SOLUTION

former_member183994
Active Participant
0 Kudos

Hi Priti,

these are physical inventory movement types. Is this what you are trying to accomplish? If so, use BAPI_MATPHYSINV_CREATE_MULT (to create physical inventory documents), BAPI_MATPHYSINV_COUNT (to enter count for the documents), and BAPI_MATPHYSINV_POSTDIFF (to post the differences between physical inventory and inventory management).

7 REPLIES 7

former_member183994
Active Participant
0 Kudos

Hi Priti,

these are physical inventory movement types. Is this what you are trying to accomplish? If so, use BAPI_MATPHYSINV_CREATE_MULT (to create physical inventory documents), BAPI_MATPHYSINV_COUNT (to enter count for the documents), and BAPI_MATPHYSINV_POSTDIFF (to post the differences between physical inventory and inventory management).

0 Kudos

Thank u so much. I think this will surely help me.

0 Kudos

Initially i will have to use BAPI_MATPHYSINV_CREATE_MULT,

then after this when i use BAPI_MATPHYSINV_COUNT, i need to pass thephysical inventory document. How do i get the physical inventory document after using BAPI_MATPHYSINV_CREATE_MULT bcoz this BAPI does not export the phys. doc created.

0 Kudos

You're right, BAPI does not return physical inventory documents, but you can search return table for message M7 710 (id = 'M7' and number = '710'). Then, physical inventory is populated at message_v1 of table return

0 Kudos

Now initialy when i use BAPI_MATPHYSINV_CREATE_MULT, i get the physical inven. no. in message_v1 of table return.

Now when i pass this inven. no. to next BAPI to enter count for doc. i.e. BAPI_MATPHYSINV_COUNT, it says that this document does not exist. Then how do i proceed

0 Kudos

hi Priti,

Please do a "commit work" after the BAPi call. Your problem will be solved

0 Kudos

Hi,

I am also using the above mentioned BAPI's. But the BAPI_MATPHYSINV_COUNT return error that the Inventory document does not exists. I am doing a BAPI_TRANSACTION_COMMIT with Wait = 'X' after BAPI_MATPHYSINV_CREATE_MULT. But the DB is not updated. Even I have inseterd a select query like:

DO.

SELECT SINGLE iblnr FROM iseg INTO lv_inventory WHERE iblnr = lv_inventory.

IF 0 = sy-subrc.

EXIT.

ENDIF.

ENDDO.

But, this goes in an infinite loop..

Help !

regards,

Rohan