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: 

Error in BAPI_OUTB_DELIVERY_CHANGE

andrs_sarcevic
Contributor
0 Kudos

Hello experts.

I'm having the hardest headache using FM API_OUTB_DELIVERY_CHANGE. My goal is to achieve a Batch Split for an item.

It seems that the BAPI executes correctly, with no records in T_RETURN, but the update in the Outbound Delivery is not issued.

I'm getting this message in SBWP:

Update was terminated

System ID.... ***

Client....... ***

User..... ******

Transaction.. SE38

Update key... 48B96248...

Generated.... 01.09.2008, 12:15:40

Completed.... 01.09.2008, 12:15:41

Error info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC

And of course, this DUMP: SAPSQL_ARRAY_INSERT_DUPREC, when the system tries perform an INSERT in VBUK with the same delivery number I'm updating. The duplicate key is obvious, but why?

I've read the following post without getting any result.

Still working. Thanks a lot for your time!

Regards,

Andrés Sarcevic.

2 REPLIES 2

andrs_sarcevic
Contributor
0 Kudos

More info:

When the system invokes FM 'RV_DELIVERIES_SAVE' IN UPDATE TASK, the XVBUK table has one empty record!

Why? Still working...

Regards,

andrs_sarcevic
Contributor
0 Kudos

Solved!

The Sales Unit and Base Unit had to be added at level items.

BAPI_OUTB_DELIVERY_CHANGE for batch-split.

WS_DELIVERY_UPDATE for picking, packing and posting an Outbound Delivery.

Thanx for reading.

Regards,

Andrés Sarcevic.