Application Development and Automation 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: 
Read only

Need help with 'BAPI_MATPHYSINV_COUNT'

Former Member
0 Likes
1,709

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.

4 REPLIES 4
Read only

nishanthbhandar
Contributor
0 Likes
804

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.

Read only

Former Member
0 Likes
804

Hi,

Check out the following thread.

Rgds,

Sumana

Read only

Former Member
0 Likes
804

Hi,

retry it, May be not you some body else trying some thing. check there is any locks.

Regards

vijay

Read only

Former Member
0 Likes
804

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