‎2009 Apr 17 8:20 AM
Hi All,
I should be highly appreciate if any one help me for locking function module like ENQUEUE and DEQUEUE
for function location.
Thanks
Shaw
‎2009 Apr 17 8:22 AM
Create lock object and these FM are automatically generated .
‎2009 Apr 17 8:22 AM
Create lock object and these FM are automatically generated .
‎2009 Apr 28 1:27 PM
Hi All,
I want to implement locking concept in a report where I need to lock the function location (IL02), can any one please help me in getting the ENQUEUE AND DEQUEUE Function module .
Thanks
Shaw
‎2009 Apr 28 1:43 PM
Use transaction SE11 to create a lock object for that table. When the lock object is created the ENQUEUE and DEQUEUE function modules will be created automatically.
‎2009 Apr 28 2:05 PM
Hi,
You can either use the standard way of locking by using :
data:lv_varkey TYPE rstable-varkey.
concatenate functional_location sy-mandt into lv_varkey .
* Lock table
CALL FUNCTION 'ENQUEUE_E_TABLEE'
EXPORTING
mode_rstable = 'E'
tabname = 'IFLOS'
varkey = lv_varkey
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.* Unlock table
CALL FUNCTION 'DEQUEUE_E_TABLEE'
EXPORTING
mode_rstable = 'E'
tabname = 'IFLOS'
varkey = lv_varkey.Or,
As mentioned above create a lock object via transaction SE11.
Go to transaction se11:
--> Enter lock object name e.g EZ_IFLOS
--> Click on create
--> Enter description
--> Click on tables tab
--> Enter 'IFLOS' as table name
--> select lock mode
--. click on save and activate.
2 function modules will be created as DEQUEUE_EZ_IFLOS and ENQUEUE_EZ_IFLOS .
Regards.