Application Development and Automation 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: 
Read only

lock object

Former Member
0 Likes
736

HI experts !

how I can assign lock obect in my program . i have created one lock obect in se11 ztest .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
653

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

5 REPLIES 5
Read only

Former Member
0 Likes
654

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

Read only

Former Member
0 Likes
653

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.

Read only

Former Member
0 Likes
653

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

Read only

Former Member
0 Likes
653

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.