Skip to Content
author's profile photo Former Member
Former Member

Lock Data: Enqueue and Dequeue

Im trying to lock data from vb.net but it didnt work out.

I pass the variable to my function module and inside the function contains below codes.

eg:

CALL FUNCTION 'ENQUEUE_EZCOL06'

EXPORTING

MODE_ZCOL06 = 'E'

MANDT = SY-MANDT

ZBUKRS = code1

ZGJAHR = code2

ZRPTNO = code3

_SCOPE = '2'

_WAIT = 'X'

EXCEPTIONS

FOREIGN_LOCK = 1

SYSTEM_FAILURE = 2

OTHERS = 3.

I open multiple screen (VB.net) but still it didnt lock the data. I dont know where it gone wrong. But when I try in SAP itself it works. I open multiple session and it detects and it locks the data.

Please help.

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 25, 2005 at 04:14 AM

    hi, you can check the property of the lock object (using se11) ,which associated with your lock FM 'ENQUEUE_EZCOL06'.

    Try to change your lock mode to 'Exclusive but not cumulative lock', maybe it will solve your problem.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.