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

lock object

manubhutani
Active Contributor
0 Likes
359

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.

1 ACCEPTED SOLUTION
Read only

former_member182354
Contributor
0 Likes
331

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

2 REPLIES 2
Read only

former_member182354
Contributor
0 Likes
332

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

Read only

0 Likes
331

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