2012 Nov 23 10:41 AM
Hello Everybody,
I have implemented in ABAP the next flow:
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!
2012 Nov 27 11:16 AM
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:
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!
2012 Nov 26 9:36 AM
2012 Nov 26 10:23 AM
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?
2012 Nov 27 6:58 AM
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.
2012 Nov 26 7:50 PM
Need more details, as Vinit suggested. Also - what do you mean by "post delivery"? PGI?
2012 Nov 27 7:15 AM
Not enough information for a full analysis, nevertheless
Could you give more information, at least the list of the tools used, for your "flow", its context ?
Regards,
Raymond
2012 Nov 27 11:16 AM
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!
2012 Nov 27 1:40 PM
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.
2012 Nov 27 2:49 PM
2012 Nov 27 2:58 PM
The If_synchron parameter is X and the No_commit is not passed to the function.
Is that correct?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |