10-10-2008 12:23 PM
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
10-10-2008 1:05 PM
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).
10-10-2008 1:05 PM
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).
10-10-2008 1:33 PM
10-10-2008 2:03 PM
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.
10-10-2008 6:21 PM
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
10-13-2008 9:59 AM
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
10-28-2008 6:53 PM
hi Priti,
Please do a "commit work" after the BAPi call. Your problem will be solved
09-09-2010 11:17 AM
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