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: 

Handling unit created with BAPI_HU_CREATE doesnt show up in Delivery

Former Member
0 Kudos

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

      • .

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

sarvesh_gudapati2
Contributor
0 Kudos

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