Application Development and Automation 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: 
Read only

Error VL046

Former Member
0 Likes
6,803

Hello Everybody,

I have implemented in ABAP the next flow:

  1. Create Stock Transfer Order.
  2. Create outbound delivery for this STO.
  3. Post the outbound delivery.
  4. Create the inbound delivery.

The problem that I´m facing is that when I post the outbound delivery, the system is giving me the next error:

VL046: This delivery XXXXXXXXX is currently being processed by another user XXXXXX

How could I post the outbound delivery only when the delivery in unblocked and completely finished? Do anyone any tip for this?

Thank you very much!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,369

The flow is as next:

Create a purchase order with Bapi BAPI_PO_CREATE1.

Then, I create a outbound delivery with function GN_DELIVERY_CREATE.

At this time, I must PGI, but is in this moment whe I get the error of blocked by user. To do this I use the funcion BAPI_OUTB_DELIVERY_CONFIRM_DEC.

When I use the funcion DEQUEUE_EVVBLKE, I´m still getting the same error. I suppose that this function will wait until the delivery was unblocked, but is not working as I wish.

Thank you for all the replies. Any idea of how to solve this?

Thanks!

Hello Everybody,

I have implemented in ABAP the next flow:

  1. Create Stock Transfer Order.
  2. Create outbound delivery for this STO.
  3. Post the outbound delivery.
  4. Create the inbound delivery.

The problem that I´m facing is that when I post the outbound delivery, the system is giving me the next error:

VL046: This delivery XXXXXXXXX is currently being processed by another user XXXXXX

How could I post the outbound delivery only when the delivery in unblocked and completely finished? Do anyone any tip for this?

Thank you very much!

9 REPLIES 9
Read only

Former Member
0 Likes
4,369

Nobody faced this problem before?

Thanks!

Read only

0 Likes
4,369

Can you elaborate the what you are doing? Are you using BAPIs one after another to create all things you mentioned? if yes then which BAPIs?. Are you using BAPI transaction Commit after every BAPI?

Read only

0 Likes
4,369

add a breakpoint at the point of code where you are posting the delivery, now before you try to post it check SM12 entries, check if this is locked for longer duration or a shorter one, if it disappears after a refresh then probably it is because the delivery has message outputs with dispatch time 4, if so then change it to 1/3 appropriately and then try.

or

check for proper enqueu and dequeue functions in your code

Regards,

Umar Syed.

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
4,369

Need more details, as Vinit suggested. Also - what do you mean by "post delivery"? PGI?

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,369

Not enough information for a full analysis, nevertheless

  • If you are using BAPI, use the option WAIT of COMMIT WORK or BAPI_TRANSACTION_COMMIT at end of each step
  • Try to lock the delivery before executing next step (FM ENQUEUE_EVVBLKE)

Could you give more information, at least the list of the tools used, for your "flow", its context ?

Regards,

Raymond

Read only

Former Member
0 Likes
4,370

The flow is as next:

Create a purchase order with Bapi BAPI_PO_CREATE1.

Then, I create a outbound delivery with function GN_DELIVERY_CREATE.

At this time, I must PGI, but is in this moment whe I get the error of blocked by user. To do this I use the funcion BAPI_OUTB_DELIVERY_CONFIRM_DEC.

When I use the funcion DEQUEUE_EVVBLKE, I´m still getting the same error. I suppose that this function will wait until the delivery was unblocked, but is not working as I wish.

Thank you for all the replies. Any idea of how to solve this?

Thanks!

Read only

0 Likes
4,369

At last line in this FM PERFORM beleg_daten_init_afterwards. Seems locks are released here but not completely. May be not completely.

May be try BAPI_TRANSACTION_COMMIT Wait = X after delivery create FM to refresh the buffers as well.

Read only

0 Likes
4,369

What value did you give to GN_DELIVERY_CREATE parameters NO_COMMIT and IF_SYNCHRON ?

Regards,

Raymond

Read only

0 Likes
4,369

The If_synchron parameter is X and the No_commit is not passed to the function.

Is that correct?