‎2006 Jun 14 7:07 AM
Hi,
I am using this bapi - 'BAPI_MATPHYSINV_COUNT'
to upload the physical inventory count.
However some of the items in the given physical inventory document can not be uploaded and following message is given by system.
'User XYZ blocks the physical inventory document XXX YYYY...'
xxx- doc num, yyyy - year
Also, there is no other material doc related transaction open at the time of upload which could block the upload.
Also, some of items gets counted (uploaded) and while for some items which are already counted message is returned by bapi saying that no data changed.
Could you pls help me with this one?
Thanks a lot.
Regards,
Shreyas
Help will be rewarded.
‎2006 Jun 14 7:22 AM
The message 'User XYZ blocks the physical inventory document XXX YYYY...' will arise only if a lock has been applied.Go to SM12 and give the username as appearing in the message and check if the document is locked.The no data change will appear because as per the BAPi documentation an explicit commit is required to save your changes.Check it out.
‎2006 Jun 14 7:47 AM
‎2006 Jun 14 7:55 AM
Hi,
retry it, May be not you some body else trying some thing. check there is any locks.
Regards
vijay
‎2006 Jun 14 7:57 AM
Hi,
After calling the bapi 'BAPI_MATPHYSINV_COUNT' call bapi 'BAPI_TRANSACTION_COMMIT' to commit the changes done. If this is not done the changes will not reflect.
Sameena