‎2008 May 07 7:19 AM
HI experts !
how I can assign lock obect in my program . i have created one lock obect in se11 ztest .
‎2008 May 07 7:22 AM
Hi Sharma,
Now since you've create lock object. You shall be provided with two function modules Enqueue_<yourobject> and Dequeue_<yourobject>.
You should be making use of those function modules after and before making changes to the object you wanted to lock.
Reward points if this info helps,
Kiran
‎2008 May 07 7:22 AM
Hi Sharma,
Now since you've create lock object. You shall be provided with two function modules Enqueue_<yourobject> and Dequeue_<yourobject>.
You should be making use of those function modules after and before making changes to the object you wanted to lock.
Reward points if this info helps,
Kiran
‎2008 May 07 7:19 PM
Use the PATTERN button in the ABAP Editor, and enter your zTbale in the call function area, such as ztable, and use the drop down. You will be able to selct your ENQUEUE or DEQUEUE Functions from there.
‎2008 May 07 7:28 PM
Hi,
Lock object are use in SAP to avoid the inconsistancy at the time of data is being insert or modify into the database.
in SAP we have 3 lock objects
1)Read Lock
2)Write Lock
3)Enhanced write Lock
To create Lock object use T-Code SE11
when u create lock object system automatically creates 2 Function Modules
ENQUEUE_LOCKOBJECT NAME
DEQUEUE_LOCKOBJECT NAME
ENQUEUE_LOCKOBJECT NAME : To insert the object in a queue
DEQUEUE_LOCKOBJECT NAME :To remove the object.
Reward points if helpful
Thanks
Prashanth
‎2008 May 07 7:29 PM
hi check this..
create lock object
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eef3446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a2/3547360f2ea61fe10000009b38f839/content.htm
regards,
venkat appikonda
‎2008 May 08 1:29 PM
hi,
When a lock object obj is activated, two function modules (see CALLFUNCTION) with the names ENQUEUE_obj and DEQUEUE_obj are generated.
These lock modules are used to explicitly request or release SAP locks in an ABAP program.