Skip to Content

Error in BAPI_OUTB_DELIVERY_CHANGE

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 01, 2008 at 04:08 PM

    More info:

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

    Why? Still working...

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2008 at 06:48 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded