Skip to Content
0
May 14, 2009 at 09:50 AM

Locking and unlocking in 2 programs

29 Views

Hi all,

I am trying to lock a table using the following in program A. This program A will call program B. I want to unlock in program B. But I noticed that it is not possible. Why is that so? Any way to let it release in program B?

CALL FUNCTION 'ENQUEUE_E_TABLEE'

EXPORTING

MODE_RSTABLE = 'E'

TABNAME = 'ZMM_DEPRP'

VARKEY = GV_KEY

_SCOPE = '1'

EXCEPTIONS

FOREIGN_LOCK = 1

SYSTEM_FAILURE = 2

OTHERS = 3

.

call function 'DEQUEUE_E_TABLEE'

exporting

mode_rstable = 'E'

tabname = 'ZMM_DEPRP'

varkey = gv_key

.