Skip to Content
0
Former Member
Dec 17, 2007 at 10:34 PM

Want to update EXIDV2 (HU Identification 2 field) in a handling unit

1680 Views

I want to update the EXIDV2 field of an existing Handling Unit. Tried using

s_hu_header-hu_id = '0000005591'.

s_hu_header-hu_exid = '00000000001000006810'.

s_hu_header-ext_id_hu_2 = rs_e1edl37-exidv2.

CALL FUNCTION 'BAPI_HU_CHANGE_HEADER'

EXPORTING

hukey = rs_e1edl37-exidv

huchanged = s_hu_header

IMPORTING

HUHEADER = s_hu_header

tables

return = t_bapiret

After executing the above sy-subrc = 0 but the EXIDV2 doesnt get updated. Also triend using WS_DELIVERY_UPDATE but it creates a new handling unit instead of updating an existing one. Can someone please provide exact code this is an URGENT requirement.

Cant use BDC so please provide a function module based solution

Thanks for reading and in advance for help.