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: 

BAPI_ACC_DOCUMENT_CHECK Unlock entries

vijay_ramarao
Explorer
0 Kudos

Hi,

Is it correct to use "DEQUEUE_ALL" function module, after using "BAPI_ACC_DOCUMENT_CHECK"?

With this Im unlocking 3 tables (BPHI, BPTR, EBPJA), which internally releases locked amount.

For now when I tested its working fine, by any chance does it creates any other kind of issues?

FYI, in the subsequent process I'm using BAPI_ACC_DOCUMENT_POST also.

Regards,

Vijay.

1 ACCEPTED SOLUTION

mukundkansara
Participant
0 Kudos

Hi Vijay,

I think there are some chances that it will create problem coz 'DEQUEUE_ALL' will release other locks also. And i also dont think that u sud use this function module after check FM.

6 REPLIES 6

mukundkansara
Participant
0 Kudos

Hi Vijay,

I think there are some chances that it will create problem coz 'DEQUEUE_ALL' will release other locks also. And i also dont think that u sud use this function module after check FM.

0 Kudos

Thanks Mukund for your reply.

Sorry, I didn't give one more point in my previous post.

I'm calling that BAPI using RFC.

Call function 'BAPI .....' destination 'XYZ'.

Userid 'XYZ' is not used for any other purpose other than this check BAPI. So there is no chance of other lock entries.

With above scenario is it safe to use dequeue function module?

Regards,

Vijay.

0 Kudos

Hi Vijay,

You can follow the document:

http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCCSTEQ/BCCSTEQ_PT.pdf

Try not to use the DEQUEUE_ALL as it may delete locks on a LUW created by all users accessing the same LUW.

Hope this helps.

Regards,

Susanta

0 Kudos

Thanks Susanta,

Wonderful information.

Is it okay to use, BAPI_TRANSACTION_ROLLBACK after BAPI_ACC_DOCUMENT_CHECK?

When I have tested, rollback BAPI unlocks the entries.

I wonder why BAPI_ACC_DOCUMENT_CHECK locks the entries, which internally locks the amount. Since this is a BAPI to check validations? Any idea?

Regards,

Vijay.

0 Kudos

Hi Vijay,

BAPI BAPI_ACC_DOCUMENT_CHECK uses DEQUE_EFBKPF for unlocking entries.

So, you can use the same unlocking case to unlock the entries locked by BAPI_ACC_DOCUMENT_CHECK.

Instead of calling DEQUEUE_ALL, you may call DEQUE_EFBKPF.

Hope this helps.

Regards,

Susanta

0 Kudos

Thanks Susanta.