04-20-2007 12:19 PM
My problem is when i'm doing bdc if transaction is locked by other persons after the session it is shoing error message no records updated.
The program should check before the population it self and should give message that transaction is locked.
Thanks in advance,
prssastry.
04-20-2007 12:27 PM
Look for the lock object associated with that transaction and check to see if its locked before proceeding with the BDC.
Further help on lock entries:
http://help.sap.com/saphelp_nw04/helpdata/en/c2/2d7037ecc92a7ee10000009b38f8cf/frameset.htm
Hope this helps.
Sudha
04-20-2007 12:27 PM
Look for the lock object associated with that transaction and check to see if its locked before proceeding with the BDC.
Further help on lock entries:
http://help.sap.com/saphelp_nw04/helpdata/en/c2/2d7037ecc92a7ee10000009b38f8cf/frameset.htm
Hope this helps.
Sudha
04-20-2007 12:51 PM
Hi sudha ,
where to find out the lock object associated with the transaction.
04-20-2007 2:24 PM
Easiest way would be to go into the transaction in the change mode, and in another session, open SM12. It should reflect the lock entry there. Click on the name and select 'Details' (or double click on the line). The resulting popup will have the name of the Lock object.
You can then use the ENQUEUE fm to check if the object is already locked.
Hope this helps.
Sudha
04-20-2007 12:30 PM
04-20-2007 12:31 PM
If ur BDC changing any Documents then u can lock , otherwise u cannt lock ?
byusuing
ENQUEUE*
Regards
Prabhu
04-20-2007 12:39 PM
hi prssastry,
when u create a lock object u will see two fm's automatically created. One is enqueue another one is dequeue.
Enqueue ---> used to set the lock.
Dequeue-----> Release the lock.
Regards....
Arun.
Reward points if useful.
04-20-2007 12:50 PM
Hi Sastry,
As per my knowledge we can lock tables using Enqueue and Unlock them using DEQUEUE.
But We cannot lock Transactions within the program, So better try locking the individual tables used in the particular transaction.
Otherwise, you cam lock the Transaction outside the program using SM01.
Hope this resolves your query.
Reward all the helpful answers.
Regards
04-20-2007 2:28 PM
Hi
To lock the complete program u can use function module
ENQUEUE_ESFUNCTION
08-01-2007 4:30 PM