Application Development 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: 

Regarding BDC problem

Former Member
0 Kudos
130

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

3 REPLIES 3

Former Member
0 Kudos
63

hi,

Use A i think that should help.

santhosh

Former Member
0 Kudos
63

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

Former Member
0 Kudos
63

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