EditAmountsForNottoExceed

Not to Exceed Amounts Edit

Major Business Rule

Object Name: B5200NTE

Parent DLL: CCRIN

Location: Client/Server

Language: C

Data Structure

D5200820 - Edit Amounts for NTE

Parameter NameData ItemData TypeReq/OptI/O/Both
cActionEV01charREQINPUT

Following are the allowed values for this parameters:

1 = Initialize Cache.

2 = Check for NTE.

3 = Reverse Amounts from NTE.

4 = Clear Cache (Deletes all records in Cache).

5 = Terminate All(Destroys Cache). 

mnCacheJobnumberAJOBSMATH_NUMERICREQBOTH

Job number is generated when Initialize Cache is called.  Create a report level and form level variable for this 
parameter and pass it to this function for any subsequent calls.  Beside Initialize Cache If this parameter is zero then nothing will 

happen and function will return an error. 

cEligibilityCodeELGCcharREQINPUT

Following values can be passed in:

0 = Both (Perform both revenue and Invoice NTE).

1 = Invoice (Perform Invoice NTE only).

2 = Revenue (Perform Revenue NTE only).


It is recommended that you use '1'  for invoice process and '2'  for revenue process.  Don't use '0' unless you have to 

edit both amounts at the same time which won't be necessary in most of the cases.  There is a lot of overhead involved 

with using '0' and therefore it may impact the performance.  

mnContractNumberDOCOMATH_NUMERICREQINPUT


szContractTypeDCTOcharREQINPUT

Use F5201 Doc type or you can hard code it to 'R2'. 

szContractCompanyKCOOcharREQINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szContractChangeNumCOCHcharREQINPUT

The change number of the contract. The change order number of the base contract is always initialized to 000. Each time you enter a 
change order for a contract, the system automatically increases the change order number by one. For example, the base contract is the change 
order number 000, the first change order is 001, the second is 002, and so on.

mnContractLineNumberLNIDMATH_NUMERICREQINPUT

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnRevenueAmountDomBTOLMATH_NUMERICREQINPUT

This will be the BTOL column from the F4812 table.

mnRevenueAmountForFTOLMATH_NUMERICREQINPUT

This will be the FTOL column from the F4812 table.

mnInvoicelAmountDomITOLMATH_NUMERICREQINPUT

This will be the ITOL column from the F4812 table.

mnInvoicelAmountForCITLMATH_NUMERICREQINPUT

This will be the CITL column from the F4812 table.

mnUnitsUMATH_NUMERICREQINPUT

This will be the U column from the F4812 table.

mnAplicationNumberAPPLMATH_NUMERICOPTINPUT


mnAdjustmentNumberADJNMATH_NUMERICOPTINPUT

A number used to control changes to closed applications. Closed applications represent invoices that have been sent. This number is 
always zero unless you reopen a previous application.

mnRevAmountExceededDomBTOLMATH_NUMERICOPTOUTPUT

Revenue Amount that exceeded the limit.    

mnRevAmountExceededForFTOLMATH_NUMERICOPTOUTPUT

Revenue Amount that exceeded the limit.

mnRevUnitExceededUMATH_NUMERICOPTOUTPUT

Revenue Exceeded unit.

cAmtExceedFlagEV01charOPTOUTPUT

Which Amount was exceeded:
0 = No Limit Exceeded.

2 = Both Limits Exceeded.

3 = Revenue Limit Exceeded.

4 = Invoice Limit Exceeded.

5 = Warning Invoice Limit Exceeded

cLevelExceedFlagEV01charOPTOUTPUT

Which value exceeded:
1 = Invoice Billing Line.

2 = Invoice Change Order.

3 = Invoice Contract.

4 = Revenue Billing Line.

5 = Revenue Change Order.

6 = Revenue Contract.

cErrorEV01charOPTOUTPUT

0 = No Error
1 = Error


Related Functions

None

Related Tables

F4822 Invoice Summary Work File
F5201 Contract Master
F5202 Contract Billing Line Detail
F5280 Contract Revenue Summary