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

Function modules

Former Member
0 Likes
993

Hi,

Pplease tell me what are these function modules meant for.

ENQUEUE_E_TABLE, DEQUEUE_E_TABLE

Thanks,

Binay

8 REPLIES 8
Read only

Former Member
0 Likes
914

Hi,

These table are to lock the particular table... when ever we need to update any table of SAP we need to lock that table to make sure that he other users are not trying to changes the same table entries...

FM: ENQUEUE_E_TABLE is used to lock the table...

FM: DEQUEUE_E_TABLE is used to unlock the table...

Satya.

Read only

Former Member
0 Likes
914

Hi,

We Use the FM ENQUEUE_E_TABLE when you want to lock the table..

and the FM 'DEQUEUE_E_TABLE' to unlock it

You create a lock object for you table via SE11, doing so, creates two function modules, an ENQUEUE function module and a DEQUEUE funciton module. When you want to lock a table entry, you simply call the ENQUEUE function module for that lock object and pass the values in which are the key of the record that you want to lock.

http://help.sap.com/saphelp_nw2004s/helpdata/en/a2/3547360f2ea61fe10000009b38f839/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm

Regards,

Priyanka.

Read only

Former Member
0 Likes
914

whenever you activate a lock object...two function modules are created...

enqueue_<lock object name> and dequeue_<lock object name>

enqueue is used to obtain a lock on the specified record/table while dequeue is used to release this lock.

These are important while working on data in a shared environment.

in your example, your lock object name is e_table and hence the two function modules.

Read only

Former Member
0 Likes
914

HI,

ENQUEUE_E_TABLE -- locks the table

DEQUEUE_E_TABLE -- unlocks the table..

This Fm are automatically generated by SAP when you create a lock object.

E_TABLE is your lock object name.

go to se11 enter E_TABLE in lock objects ad you will come to know what is been locked.

rewards if useful,

regards,

nazeer

Read only

Former Member
0 Likes
914

These function modules are used to lock the table and to unlock the table. When ever you create a lock object for a table by default it will create two function modules like this.

ENQUEUE_E_TABLE to lock the table,

DEQUEUE_E_TABLE to unlock the table.

These function modules will have key fields as import parameters.

If you pass the values of the key fields to this FM it will lock only that particular record other wise it will lock the entire table.

Reward points if helpful.

with regards,

Srinivas.

Read only

varma_narayana
Active Contributor
0 Likes
914

Hi

When u create a Lock Object in SE11 with Name : EZEMP on a Table ZEMP.

When the Lock object is Activated these two FM are generated.

ENQUEUE_EZEMP. "Call this to Lock a record

DEQUEUE_EZEMP. "Call this to release the Lock on a record

<b>REWARD IF HELPFUL</b>

Read only

Former Member
0 Likes
914

hi,

These table are to lock the particular table... when ever we need to update any table of SAP we need to lock that table to make sure that he other users are not trying to changes the same table entries...

FM: ENQUEUE_E_TABLE is used to lock the table...

FM: DEQUEUE_E_TABLE is used to unlock the table...

in sap we can have 3 types of locking mechanisms as

1. EXCLUSIVE LOCKS - allows only for one user to display or modify

2. SHARED LOCKS - allows one user for modifying and others for display only

3. EXCLUSIVE NOT CUMULATIVE - similar to exclusive but per a transaction it allows only one user at a time.

if helpful reward some points.

with regards,

Suresh Aluri.

Read only

Former Member
0 Likes
914

When you create a lock object System automatically creat two function module.

1. ENQUEUE_<Lockobject name>. to insert the object in a queue.

2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.

regards,

srinivas