Synchronization

Tracking events received from your carriers are synchronized back to SAP. To handle the data, you can implement the BAdI /AEB/MA_EXP_CONS_01.

The data structure provided in the BAdI is representing a shipment with packages and events.

📘

Tracking events can be found at different levels

The tracking events can be received for the whole shipment header and also for each handling unit. This depends on the carrier. So make sure you read the data from IM_CONSIGNMENT- EVENTS and also for IM_CONSIGNMENT-HANDLINGUNITS , HANDLINGUNITS-EVENTS.


Example coding of handling events in the BAdI:

 _im_consignment = im_consignment.
LOOP AT _im_consignment-events INTO _event.
      "Ignore planned events
      IF _event-actualdate IS INITIAL.
        CONTINUE.
      ENDIF.
     * Your logic to handle the event data.
    ENDLOOP.

The data is synchronized back to SAP in these tables:

SAP table nameDescription
/AEB/MA_E_CONSConsignment (header data)
/AEB/MA_E_HUHandling unit (packages on highest level)
/AEB/MA_E_TETracking events. Parent_ID is linked either to the ID of a consignment or to the ID of an handling unit.