By the help of the code snippet below , you can get handling units related with specified delivery.
LT_HUS -> Handling Unit Headers -> VEKP
LT_HUPOS-> Handling Unit Items -> VEPO
DATA : i_delivery TYPE likp-vbeln.
DATA : is_object TYPE hum_object.
DATA : lt_hus TYPE hum_hu_header_t WITH HEADER LINE,
lt_hupos TYPE hum_hu_item_t WITH HEADER LINE,
lt_serialno TYPE vsep_t_rserob.
is_object-object = '03'.
is_object-objkey = i_delivery.
CALL FUNCTION 'HU_GET_HUS'
EXPORTING
if_lock_hus = 'X'
if_with_text = ' '
is_objects = is_object
IMPORTING
et_header = lt_hus[]
et_items = lt_hupos[]
et_item_serialno = lt_serialno
EXCEPTIONS
hus_locked = 1
no_hu_found = 2
fatal_error = 3
OTHERS = 4.
No comments:
Post a Comment