2006 Dec 01 1:26 PM
Hi ,
Could you please help me regarding BDC problem.
I am creating outbound delivery document using BDC(VLMOVE - tcode), then after getting delivery number, i have to change this delivery document by VL02N.
Some times i am getting error message like 'Delivery document is locked by user(my name)' at the BDC of changing the delivery document.
But in the debugging mode, its not displaying any error message.
Is there anything like update options i have to change for BDC of VLMOVE.
Rite now i am using update mode LOCAL.
Advanced thanks for you all.
Regards
Rajesh
2006 Dec 01 1:28 PM
2006 Dec 03 6:10 AM
hi,
in this case use any commit statement to release that t-code.
for instance BAPI_COMMIT can be helpful.
generally if u dont save it sometimes they will be under processing.
Rgds,
durgaprasad
2006 Dec 03 11:35 AM
Hi Rajesh,
The reason for that is your BDC program is trying to change delivery document by VL02N even before the lock entries created by your BDC program is released.
These are possible options you can try,
1) Use COMMIT WORK AND WAIT.
2) Introduce some delay say WAIT UP TO 2 SECONDS.
This would be better option
3) use this ENQUEUE_READ to read the lock entries. If your document is still locked after creation part is completed, then wait till it is released.
Regards
Kathirvel