SAP Function /SAPTRX/XCP_LE_DELIV_IN_SHIP01 - Set Up control parameters 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 Tables 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_CONTROL_DATA /SAPTRX/CONTROL_DATA 331 Control data for application objects
E_LOGTABLE BAPIRET2 548 X Return parameter

Exception Text
CDATA_DETERMINATION_ERROR Error in control data determination
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 control parameter 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 parameters are created in this function module:
Transportation planning point ,,- Shipment header (VTTK)
Carrier ,,,,,,,,- Shipment header (VTTK)
Route ,,,,,,,,- Shipment header (VTTK)
Shipping type ,,,,,,- Shipment header (VTTK)
Shipping condition ,,,,,,- Shipment header (VTTK)
Delivery priority ,,,,,,- Delivery header (VTRLK)
Shipping point ,,,,,,- Delivery header (VTRLK)
Ship-to party ,,,,,,- Delivery header(VTRLK)
Sold-to party ,,,,,,- Delivery header(VTRLK)
Sold-to party e-mail ,,,,- Delivery header(VTRLK)
Delivery priority, shipping type, sold-to party e-mail and shippingcondition become control parameters in the SAP Event Manager.
Shipping point, transportation planning point, carrier, ship to party,sold to party and route become system parameters in the SAP EventManager.

Notes
At least all of the following fields should be filled in exportparameter E_CONTROL_DATA:
appsys (Logical system ID of an application system)
appobjtype (Application object type)
language (Language)
paramname (Parameter name should be defined in Tr-cd: /SAPTRX/ASC0TF)
value (Parameter value of length 200)