Ansicht
Dokumentation

SIMG_LTRM_USEXIT007 - Modify Inter-Zone Movement Duration During Creation of LROUT Table

SIMG_LTRM_USEXIT007 - Modify Inter-Zone Movement Duration During Creation of LROUT Table

RFUMSV00 - Advance Return for Tax on Sales/Purchases   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (Add-In) is used in the Task and Resource Management (LE-TRM) component.

This Add-In enables you to pre-calculate more precisely the duration of movements between nodes (in the inter-zonal space). This pre-calculation helps to improve performance of real-time route calculation.

Pre-calculation on the basis of the duration calculated by this Add-In is again needed where there are:

  • Changes of node coordinates
  • Changes of entry or exit attributes of nodes
  • Added nodes or obstacles
  • Deleted nodes or obstacles
  • Added resource types
  • Deleted resource types

To calculate the movement duration, the Add-In refers to the following data:

  • Site (IV_SITE of type LTRM_LOCAT)
  • Table IT_INTER of type LTRTT_IT_INTER with a list of routes.
This list of routes contains all combinations of paths from all possible source nodes to all possible destination nodes, direct paths and trips with legs via one or more intermediate nodes.
A record of the table IT_INTER contains the following:
  • Source node (LTRT_SRCND) and destination node (LTRT_DSTND)

  • Table LTRTT_IT_RNODE with a list of legs, defined by intermediate nodes, between the source and destination nodes

This table is empty if there is a direct path between the nodes.
The structure of the table contains field RNODE (LTBN_NODE).

The output parameter is table ET_LROUT with the structure of the database table LROUT containing the following fields:

  • LOCAT site number (LTRM_LOCAT)
  • SRCND source node identification (LTRT_SRCND)
  • DSTND destination node identification (LTRT_DSTND)
  • RSTYP resource type (LTRS_RSTYP)
  • DISTC calculated distance (LTRT_DISTC)
  • DURTN calculated duration (LTRT_DURTN)

Function module LTRT_PHYSND_CHECK calls this Add-In .The Add-In calculates both distance and duration. The function module gets the output table ET_LROUT.

The value of route distance DISTC is the sum of the lengths of all of its legs.

The length of a leg is calculated according to the metrics assigned to its site.

Each record of the table is duplicated for each resource type, with the exception of some routes for certain resource types listed in table LRTEX. The value of duration DURTN is calculated using the resource type velocity from table LRSTY, and the duration of its turns.

If the Add-In returns duration calculations, they are inserted into database table LROUT, instead of the rough calculated values returned by function module LTRT_PHYSICAL_DISTANCE_ADD.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

For more information, refer to the following:

  • LTRT_LROUT_BUILD_TABLE: Main function module for pre-calculation of distances and duration
  • LTRT_PHYSND_CHECK: Building all possible inter-routes with corresponding legs between source and destination
  • LTRT_PHYSICAL_DISTANCE_ADD: Rough inter-duration calculation
  • LNODE: Node coordinates and attributes (call of LTBN_NODES_DETAILS_GET)
  • LRTEX: Route exceptions (use of LTRS_LRTEX_READ)
  • LRSTY: Resource type characteristics (with help of LTRS_LRSTY_READ)
  • LZNDF: Zone characteristics, including metric code (use of LTBN_ZONE_INFO_GET)





Vendor Master (General Section)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 6289 Date: 20240523 Time: 194849     sap01-206 ( 67 ms )