Transform

The TFORM_MAP_ROUTING_VERSION program calculates the new routing IDs and version values, using the configuration specified in SZ_ROUTING_VERSION_MAP. If the SOURCE parameter is specified, source filtering is applied to all comparisons.

These steps describe the processing logic for creating new routings and the version values:

  1. Identifies the routings to be processed:
    SELECT routing_id       
    FROM   SC_ROUTING 
    WHERE   routing_location_id = <routing_location_id>  
        AND source              = <current_source>
        AND <item filter>, if exists
        AND <location filter>, if exists
    ORDER BY routing_id ASC
    
    Note: All calculations are executed only on the routings that are in scope (that is, selected by the query).
  2. Calculates new routing_id and version values, using these rules:
  3. Calculates the new routings. See, the Calculating new routings for more details.
  4. Updates original routings. See the Updating original routings for more details.
  5. Updates production orders. See the Updating production orders for more details.