05-11-2007 3:06 AM
Hi
I m successfully creating a handling unit with the following code in a delivery user exit on Save. I can see the handling unit in the VEKP table. But if i open the delivery i cant see it. The VPOBJKEY has some weird value like 3342 instead of the delivery number. Please let me know the problem, possibly with code. Will give points. Thanks for reading.
l_header-pack_mat = '800'.
l_header-hu_exid_type = 'E'.
l_header-ext_id_hu_2 = 'TEST'.
l_header-content = 'JUNK'.
l_header-VOLUMEUNIT = 'CCM'.
l_header-hu_exid = '1234'.
CALL FUNCTION 'BAPI_HU_CREATE'
EXPORTING
headerproposal = l_header
IMPORTING
huheader = l_huhead
hukey = l_hukey
TABLES
ITEMSPROPOSAL = IT_PROP
ITEMSSERIALNO =
return = l_it_ret
huitem = it_item
.
05-11-2007 1:27 PM
Hi,
I am creating a HU with following params, they work fine for me,
maybe you could try them out.
l_header-pack_mat = '<INT'.
l_header-hu_exid = '$1'.
l_header-hu_exid_type = 'C'.
l_header-plant = your plant.
l_header-stge_loc = your storage location.
Regards,
Dirk.
05-11-2007 1:27 PM
Hi,
I am creating a HU with following params, they work fine for me,
maybe you could try them out.
l_header-pack_mat = '<INT'.
l_header-hu_exid = '$1'.
l_header-hu_exid_type = 'C'.
l_header-plant = your plant.
l_header-stge_loc = your storage location.
Regards,
Dirk.
05-11-2007 2:00 PM
Srikrishna,
Please check the data in VEPO as well for the delivery and ensure that you are populating HU number for the right field (EXIDV is correct HU number not VENUM as this refers to internal HU number).
Cheers,
Sarvesh