Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Handling unit created with BAPI_HU_CREATE doesnt show up in Delivery

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

      • .

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question