1.Functional Description
1.1Purpose
This business function will be used to return the Contract Duration to be used for Advanced Pricing based on the Duration input and the range it falls 
within.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.4Processing 
//
//Initialize Variables
//
VA VA StopFlag is equal to N
VA From Billing Duration is equal to 0
VA Thru Billing Duration is equal to 0
VA Advanced Pricing Duration is equal to 0
//
//Check for valid duration
//
SelectAll.F1726
FetchNext.F1726
 VA From Billing Duration (FBDUR) <- FromBillingDuration
 VA Thru Billing Duration (TBDUR) <- ThruBillingDuration
 VA Advanced Pricing Duration <- AdvPricingDuration
IF File I/O is equal to Success
 WHILE VA StopFlag not equal to Y
 Input Duration is less than or equal to VA Thru Billing Duration
 Pricing Duration is equal to VA Advanced Pricing Duration
 VA StopFlag is equal to Y
 ELSE
 FetchNext.F1726
 VA Thru Billing Duration (TBDUR) <- ThruBillingDuration
 VA Advanced Pricing Duration <- AdvPricingDuration
 END IF
 END WHILE
END IF
D1701260 - F1726 Get Contract Duration Range
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| mnInputDuration_CDUR | CDUR | MATH_NUMERIC | REQ | INPUT | 
This is the duration that will be used to loop through F1726 records to see which range it falls 
  | ||||
| szInputUOM_UOM | UOM | char | OPT | NONE | 
This parameter is not currently being used.  This will be a future enhancement.
  | ||||
| mnAdvPrBillingDuration_ABDUR | ABDUR | MATH_NUMERIC | OPT | OUTPUT | 
Billing Duration to be passed into Advanced Pricing.
  | ||||
| szAdvPrBillingDurationUOM_UOM | UOM | char | OPT | NONE | 
This parameter is not currently being used.  This will be a future enhancement.
  | ||||
| cSuppressErrorMessage_SUPPS | SUPPS | char | OPT | NONE | 
This parameter is not currently being used.  
  | ||||
| szErrorMessageID_DTAI | DTAI | char | OPT | NONE | 
This parameter is not currently being used.  
  | ||||
| None | 
| None |