SAP Function /SAPTRX/XEE_LE_DELIV_IN_SHIP01 - Set Up Expected Event for Deliveries in LTL Shipment

Parameter Reference Type Length Default Optional Text
I_ALL_APPL_TABLES TRXAS_TABCONTAINER 0 Container with references to all tables passed by the application
I_APPSYS /SAPTRX/APPLSYSTEM C 10 Logical System ID of an Application System
I_APP_OBJECTS TRXAS_APPOBJ_CTABS 0 Control WA and nametabs for all appl. object types
I_APP_OBJ_TYPES /SAPTRX/AOTYPES u 694 Application object types
I_APP_TYPE_CNTL_TABS TRXAS_APPTYPE_TABS 0 Control tables and nametabs for all appl. object types

Parameter Reference Length Optional Text
E_EXPEVENTDATA /SAPTRX/EXP_EVENTS 859 Expected events (milestones) of application object
E_INFODATA /SAPTRX/INFO_DATA 331 X Infodata for Event Handler characterization
E_LOGTABLE BAPIRET2 548 X Return parameter
E_MEASRMNTDATA /SAPTRX/MEASR_DATA 335 X Measurement data of application object

Exception Text
EXP_EVENT_DETERM_ERROR Expected events could not be determined
PARAMETER_ERROR Error in Parameters
STOP_PROCESSING Stop Processing
TABLE_DETERMINATION_ERROR A required datatable could not be found

Functionality
This function module is used for the expected event extractor in thevisibility scenario "Deliveries in LTL Shipment".
This function module is only available when using shipment item(SHIPMENT_ITEM_NEW) as a main object table in the relevant applicationobject type. This means that the shipment always has one or moredeliveries and stages(legs).
It selects the data out of deliveries and shipments. Most of the datathat could be relevant for Supply Chain Event Management is selected toallow universal use of the function.

Example
The following event data is created in this function module:
Picking Begin ,,- Delivery header (VTRLK)
Arrival Carrier ,,- Shipment header (VTTK)
Loading Begin ,,- Shipment header (VTTK)
Loading End ,,- Shipment header (VTTK)
Goods Issue ,,- Delivery header (VTRLK)
Plant Departure ,,- Shipment stage header (VTRLK)
Arrival Hub ,,,,- Shipment stage header (VTRLK)
Departure Hub ,,- Shipment stage header (VTRLK)
Arrival Customer ,,- Shipment stage header (VTRLK)

Notes
1. The field "Itemident" must be filled as follows, otherwise youcannot update the SAP R/3 shipment from the SAP Event manager:
Check in ,,,,- Shipment No + 'H' (Header)+ '0002'(Status)
Loading Start ,,,,- Shipment No + 'H' + '0003'
Loading End ,,,,- Shipment No + 'H' + '0004'
Plant Departure ,,,,- Shipment No + 'L' (Leg)+ Stage of transportsequence + 'O'(Origin)
Arrival Hub ,,,,- Shipment No + 'L' + Stage of transportsequence + 'D'(End)
Departure Hub ,,,,- Shipment No + 'L' + Stage of transportsequence + 'O'
Arrival Customer ,,,,- Shipment No + 'L' + Stage of transportsequence + 'D'
Completion of Shipment ,,- Shipment No + 'H' + '0005'
Shipment begin,,,,- Shipment No + 'H' + '0006'
Shipment end,,,,- Shipment No + 'H' + '0007'
2. At least all of the following fields should be filled in exportparameter E_EXPEVENTDATA:
appsys (Logical system ID of an application system)
appobjtype (Application object type)
language (Language)
milestone (Event name)
milestonenum (Counter)
evt_exp_datetime (Expected date/time)
itemident (To find which status of shipment date/time should beupdated)
evt_exp_tzone (Time zone),,