ProdRouteOverlapCalc.run Method [AX 2012]

Runs a calculation and updates the operation with a new overlap value.

public void run()

Run On

Called

This method makes a calculation of a new overlap value and compares the value with the old value. If the new value is bigger, the old value will be replaced.

static void updateOperationWithMinimalOverlap(ProdRoute _prodRoute) 
{ 
    ProdRouteOverlapCalc prodRouteOverlapCalc; 
 
    ttsbegin; 
    if(!_prodRoute.RecId) 
        throw error("@SYS18447"); 
         
    // Shows the info message when an old overlap quantity is replaced by the new value. 
    // overlap quantity on the operation. 
    prodRouteOverlapCalc =  
        prodRouteOverlapCalc::newProdRoute(_prodRoute, false, true); 
  
    // Run calculation. 
    prodRouteOverlapCalc.run(); 
    ttscommit; 
}

Community Additions

ADD
Show: