What a mistake! Exception CX_SY_DYN_CALL_ILLEGAL_TYPE [SAP]
Friday, April 30th, 2010SAP ECC 6.0 - SAP_BASIS 700
I wrote a new method GET_HANDLING_UNIT for ZCL_PCC_SD_DELIVERY class. Basically it gets the handling unit numbers for the delivery. I have used HU_GET_HUS function module inside the method; after investigation how handling units tracking data is selected in function module XSI_E1EDL49, it seemed the best and the proper way to select handling units is to use HU_GET_HUS function module.
Giving different parameters the function module HU_GET_HUS can get handling unit header and items data for you.