12-08-2011 3:29 PM
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.
12-08-2011 3:43 PM
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.
12-08-2011 3:43 PM
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.
12-08-2011 4:20 PM
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.
12-08-2011 4:46 PM
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
12-09-2011 5:31 AM
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.
12-09-2011 4:42 PM
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
12-10-2011 2:49 AM