cancel
Showing results for 
Search instead for 
Did you mean: 

Lock Data: Enqueue and Dequeue

Former Member
0 Kudos
124

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi zhenglin gu,

Thanks for replying.

Yup, i tried your solution but it didnt work out also.

Then I check for the Allow RFC (Remote Function Call). Meaning to say, I can access the function module from the VB.Net. I thought it's going to work but it didnt. I change from cumulative to not cumulative. After that, I also check in the SM12 (Lock Entries). There is no lock entries.

Anyone could help me?

Thank you.

Regards.

Former Member
0 Kudos

Hi

Anybody ever try Enqueue and Dequeue from .NET??

Thank you.

Regards.