05-11-2007 1:30 AM
I want to create handling unit from VL02N user exit itself. But the BAPI call is giving me error
"HU functions outside of the delivery only via unique number assignment"
This is my code in the delivery user exit. I have also tried by setting only the 1st 2 or 4 values out the ones given below but still same message
l_header-pack_mat = '800'.
l_header-hu_exid_type = 'E'.
l_header-ext_id_hu_2 = 'TEST'.
l_header-content = 'kkkk'.
l_header-TOTAL_WGHT = '99.999'.
l_header-TARE_WGHT = '99.999'.
l_header-UNIT_OF_WT = 'KG'.
l_header-TOTAL_VOL = '13.456'.
l_header-TARE_VOL = '13.456'.
l_header-VOLUMEUNIT = 'CCM'.
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 2:03 AM
also pass some value to HU_EXID.
l_header-HU_EXID = '1234'.
Regards,
ravi