Skip to Content
0
Nov 28, 2011 at 04:48 PM

BAPI to update Handling Unit field VEKP-VEGR1 for outbound delivery ?

3438 Views

Hi there,

I have a requirement to assign a value a Handling Unit field, for an Outbound delivery. (where the Handling Unit already exists)

The table/field is:

VEKP-VEGR1 Handling Unit Group 1 (Freely Definable)

This has been set up in config (SPRO) and a value exists in check table.

I tried using BAPI_HU_CHANGE_HEADER, but this gives an error if packing type (VPOBJ) is not 05,06 or 12.

For outbound delivery this is '01'.

I have also tried using HU_HEADER_UPDATE and BAPI_OUTB_DELIVERY_CHANGE.

This link appears to deal with a similar issue, but I could not get it to work for me:

Change header data of Handling Unit (VEKP)

Can anyone provide a suggestion or solution to update VEKP-VEGR1 ?

All replies appreciated.