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 module like ENQUEUE and DEQUEUE for function location.

Former Member
0 Likes
23,755

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

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
11,104

Create lock object and these FM are automatically generated .

4 REPLIES 4
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
11,105

Create lock object and these FM are automatically generated .

Read only

0 Likes
11,103

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

Read only

0 Likes
11,103

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.

Read only

0 Likes
11,103

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.