‎2008 May 19 8:43 AM
HI
i have created a lock object on table pa0006
so that if any1 trys to create a record for a particular employee in this table, then he shud not be allowed
but its not working.
Please help
dont provide with the links.
‎2008 May 19 8:47 AM
Hi,
After creating a Lock object two function modules will be genarated ...Enqueue_xxx AND Dequeue_xxx.
Use these two function modules in the program you want to create and then try it.
Raghav
‎2008 May 19 8:47 AM
Hi,
After creating a Lock object two function modules will be genarated ...Enqueue_xxx AND Dequeue_xxx.
Use these two function modules in the program you want to create and then try it.
Raghav
‎2008 May 19 8:56 AM
Hi
i am using these Fm's
CALL FUNCTION 'ENQUEUE_EZLOCK1'
EXPORTING
MODE_PA0006 = 'E'
MANDT = SY-MANDT
PERNR = 00001008
SUBTY =
OBJPS =
SPRPS =
ENDDA =
BEGDA =
SEQNR =
X_PERNR = ' '
X_SUBTY = ' '
X_OBJPS = ' '
X_SPRPS = ' '
X_ENDDA = ' '
X_BEGDA = ' '
X_SEQNR = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
but in debug mode after executing this FM(before leaving program)
i am maintqaining data for this emplo no 00001008 through transaction pa30
and it is allowing but it shud not as it shud have been locked