Hello eWM Exports,
i try to read the EEW enhancements of an outbound delivery item in BADI: /scwm/if_ex_dlv_det_proctype~change_proctype.
At this time of the distribution of the outbound delivery from ERP to eWM the delivery is not persistent in the DB.
So i have to read the BO objects from the memory.
How can i access the customer own fields (from EEW) of an outbound delivery item.
I can not find any fitting structure/method to access it.
DATA: lo_item TYPE REF TO /scdl/cl_dl_item,
lo_bom TYPE REF TO /scdl/cl_bo_management,
lo_bo TYPE REF TO /scdl/if_bo,
lo_header TYPE REF TO /scdl/cl_dl_header,
lw_msg TYPE string.
CHECK iwa_item IS NOT INITIAL.
TRY.
lo_bom = /scdl/cl_bo_management=>get_instance( ).
lo_bo = lo_bom->get_bo_by_id( iv_docid = iwa_item-docid ).
CHECK lo_bo IS BOUND.
lo_header = lo_bo->get_header( ).
CHECK lo_header IS BOUND.
lo_item = lo_bo->get_item( EXPORTING iv_itemid = iwa_item-itemid ).
CHECK lo_item IS BOUND.
lo_item->?????????
CATCH /salt/cx_ewm.
MESSAGE i018(/wwit/wgi) WITH iwa_item-docno iwa_item-itemno INTO lw_msg.
io_log->add_message( ).
CATCH cx_static_check.
ENDTRY.
Thanks Christian