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: 

Check whether FB02 document is locked by another user

Former Member
0 Kudos

Hi All,

Is there any FM which tells that FI document number used by transaction FB02 is in use by another user or in another words how to know whether document number is already queued by another process.

Thanks,

Mark

4 REPLIES 4

Former Member
0 Kudos

You can check transaction SM12. Just remove 'user name' and press 'Enter',you can see locked entries by all users.

Regards,

Aparna.

former_member1245113
Active Contributor
0 Kudos

Hi,

This is a standard Tcode hence the SAP already taken care of this they use ENQUE Function Modules

which you can create in Tcode SE11

Try open the Tcode in 2 diff sessions and give the same document numbers

Hope this will solve your purpose.

regards

Ramchander Rao.K

Former Member
0 Kudos

Hi Mark,

Use the FM

call function 'ENQUEUE_EFBVOR'

exporting

bvorg = x_bvorg

belnr = x_belnr

exceptions

foreign_lock = 1

others = 2.

to lock the posting document.

Regards

Raj

Former Member
0 Kudos

This message was moderated.