Hi Priya,
It should work in this way!
call function 'ENQUEUE_E_TABLE'
exporting
mode_rstable = 'E'
tabname = p_table
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
if sy-subrc = 0.
* Modify the database table with these changes
modify (p_table) from table <dyn_tab_temp>.
refresh <dyn_tab_temp>.
* Unlock the table
call function 'DEQUEUE_E_TABLE'
exporting
mode_rstable = 'E'
tabname = p_table.
endif.