F1721CancelContract

F1721 Suspend/Cancel Contract

Minor Business Rule

Object Name: N1702040

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Functional Description

Purpose

This function will read through all contract detail lines for a given contract and cancel all lines that are not already canceled and not flagged as deleted. 

 After the contract detail lines are canceled, the contract header will be canceled.  The credit and cancel amounts will also be calculated and updated in 

each contract detail line.


Data Structure

D1702040A - F1721 Cancel Contract

Parameter NameData ItemData TypeReq/OptI/O/Both
mnContractNo_DOCODOCOMATH_NUMERICREQINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szContractChangeNo_COCHCOCHcharREQINPUT

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.

szCancellationReason_CNRCCNRCcharREQINPUT

A user defined code for defining reasons a contract was cancelled.

jdCancelDate_CNDJCNDJJDEDATEREQINPUT

The date that the order should be canceled if the goods have not been sent to the customer or the goods have not been received from the 
supplier. This is a memo-only field and does not cause the system to perform any type of automatic processing. If a line on a sales order in 
canceled in Sales Order Entry, this field will  be updated with the date the line has been canceled.                         

cSubledgerDefault_SUBDFSUBDFcharREQINPUT

A value that defines the default value for the Subledger field. For Service Contracts, valid values are:    Blank No default    1        Contract 
number    2        Customer number    3        Site number    4        Short item number  For Service Orders, valid values are:    Blank No default    1        
Service order number    2        Customer number    3        Site number    4        Short item number    5        Contract number 

mnCancelNoticePeriod_CNOTCNOTMATH_NUMERICREQINPUT

The cancellation period associated with a contract.

szProgramId_PIDPIDcharREQINPUT

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cFactorValueType_FVTYFVTYcharREQINPUT

A code that indicates whether the factor value is a multiplier (%) or an additional/deductible cash amount ($) when applied to an order's 
price.

cSuppressErrors_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

cErrorCode_ERRCERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szErrorMsgID_DTAIDTAIcharOPTNONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

jdHdrStartDate_CSDTCSDTJDEDATEREQINPUT

The date you actually start work on the contract.

jdHdrEndDate_CDTECDTEJDEDATEREQINPUT

The date you actually completed work on the contract.

mnHdrCancelFeeDom_CFEECFEEMATH_NUMERICREQINPUT

The fee billed to a customer when cancelling a contract.

mnHdrCancelFeeFor_CFEFCFEFMATH_NUMERICREQINPUT

The fee billed to a customer when cancelling a contract.

mnHdrTotalDom_TOTDTOTDMATH_NUMERICREQINPUT

Total dollars is a factor used to calculate average days to pay. The amount is equal to the sum of cash received against valid accounts 
receivable invoices. The Total Dollars amount is updated at the same time that the Weighted Days total is updated.

mnHdrTotalFor_FOAGFOAGMATH_NUMERICREQINPUT

When an adjustment is made to an invoice, the gross amount of the pay item before the adjustment.  The foreign original gross amount is 
stored in the F03B112.

cPrepayentProcessing_EV01EV01charREQINPUT

An option that specifies the type of processing for an event.

szHdrPrepaymentCode_SPHDSPHDcharREQINPUT

A code that indicates special processing requirements for certain user defined code values. The value that you enter in this field is unique 
for each user defined code type. The system uses the special handling code in many ways. For example, special handling codes defined for 
Language Preference specify whether the language is double-byte or does not have uppercase characters. Programming is required to 
activate this field.

mnPrePayJobNo_JOBSJOBSMATH_NUMERICREQINPUT

The job number (work station ID) which executed the particular job.

cMode_EV01EV01charREQINPUT

An option that specifies the type of processing for an event.

mnDomesticCancelAmount_CANDMCANDMMATH_NUMERICOPTOUTPUT

The monetary amount that has been cancelled. The monetary amount is expressed in the currency that is set up for the company initiating 
the transaction.

mnLineNumber_LNIDLNIDMATH_NUMERICOPTINPUT

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.

szContractBU_MCUMCUcharOPTINPUT

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

Related Functions

None

Related Tables

None
F1721SuspendContract

F1721SuspendContract

F1721 Suspend/Cancel Contract

Minor Business Rule

Object Name: N1702040

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Functional Description

Purpose

This function will read through all contract detail lines for a given contract and will suspend the lines or reactivate them, depending on the action to be 

taken.


Data Structure

D1702040 - F1721 Suspend Contract

Parameter NameData ItemData TypeReq/OptI/O/Both
mnContractNo_DOCODOCOMATH_NUMERICREQINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szContractChgNo_COCHCOCHcharREQINPUT

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.

jdSuspendDate_SSDJSSDJJDEDATEREQINPUT

The date when a recurring order is no longer to be processed.

szProgramId_PIDPIDcharREQINPUT

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cSuppressErrors_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

cErrorCode_ERRCERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szErrorMsgID_DTAIDTAIcharOPTNONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cSuspendCode_BSUSPBSUSPcharREQINPUT

A code that identifes whether a contract detail line is suspended. Valid values are: Blank The contract detail line is not suspended and will 
continue to be billed. Any value other than blank The contract detail line will not be billed. Transactions will continue to be entitled against this 
contract detail line.

Related Functions

None

Related Tables

None