on 2005 Sep 25 3:02 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
69 | |
13 | |
11 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.