2007 Aug 10 8:05 AM
Hi all,
I need to check for lock before executing a specifi BAPI. How can I carry out that? Thanks in advance.
Hi all,
I need to check for lock before executing a specifi BAPI. How can I carry out that? Thanks in advance.
2007 Aug 10 8:15 AM
Use the enqueue function module for that lock object. The function module name will be ENQUEUE_ followed by the LOCK NAME. If the function module returns a sy-subrc value other than 0, then the object is already locked.
Please mark points if the solution was useful.
Regards,
Manoj
2007 Aug 10 9:09 AM
How can I determine the lock name or lock name for a specific BAPI?
2007 Aug 10 9:10 AM
It would be the SAP document that you are checking the lock for not the BAPI.
2007 Aug 10 9:19 AM
Yes, I understand. Example, if I'm calling the BAPI_PO_CHANGE, how can I determine what lock objects that need to be checked?
2007 Aug 10 9:52 AM
Hi mil,
1. While executing the bapi, if the purhcase order is locked by somebody,
then the bapi will return that error automatically.
2. We need not check it separately.
regards,
amit m.
2007 Aug 10 10:17 AM
I understand that, but I need to know what are the lock object and how can I check for that lock object. My problem is not to know whether the BAPI is locked or not.
2007 Aug 10 12:35 PM
Hi again,
1. U can use the FM
<b>MM_ENQUEUE_DOCUMENT</b>
2. This is also used in the standard program. While enqueing,
if there is any error (sy-subrc <> 0), then it means,
that particular purchase order is already locked.
regards,
amit m.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |