CopyDefaults

Copy Defaults

Minor Business Rule

Object Name: B1702900

Parent DLL: CCRIN

Location: Client/Server

Language: C

B1702900 is a Business Function that works with default contract values.  A user 
would use this function to either retain the original values in a contract or 

default them again from another source.  

.

The Business Function has 3 modes:

1. Copy Header Defaults (Tax Information, Customer Currency, Document Type, Key 

Company, Header Business Unit)

2. Copy Detail Defaults (Tax Information, Discount Information)

3. Copy Header and Detail Defaults

.

Data Structure

D1702900 - Copy Defaults

This DSTR is used by B1702900 (Copy Defaults).

Parameter NameData ItemData TypeReq/OptI/O/Both
szProgramID_PIDPIDcharREQNONE

The Program ID of the Program that is calling this BSFN.  eg: R1730, R1735

szVersion_VERSVERScharOPTNONE

The Version of this Program ID.  If none is passed in, the default will be used.  
For UBEs, the default is ZJDE0001.  For applications, the default is XJDE0001.

mnCustomerNumber_AN8AN8MATH_NUMERICOPTNONE

The Customer Number for the contract.

mnSiteNumber_LANOLANOMATH_NUMERICOPTNONE

The Site Number for the contract.

szTaxArea_TXA1TXA1charOPTNONE

Tax Rate/Area for the contract.

szTaxExplCode_EXR1EXR1charOPTNONE

Tax Explanation Code for the contract.

szCustomerCurrency_CRCFCRCFcharOPTNONE

Customer Currency Code for the contract.

szCompanyKey_KCOOKCOOcharOPTNONE

Key Company of the contract.

szBusinessUnit_MCUMCUcharOPTNONE

Business Unit for the contract.

mnForeignDisc_CDSACDSAMATH_NUMERICOPTNONE

Foreign Discount Amount on the detail line of the contract.

mnDomesticDisc_DSCTDSCTMATH_NUMERICOPTNONE

Domestic Discount Amount for the detail line of the contract.

cDiscFactorType_DSFTDSFTcharOPTNONE

Factor Type for the discount on the detail line of the contract.  eg: D (Amount) 
or P (Percent)

mnDiscPercent_DSPCDSPCMATH_NUMERICOPTNONE

Discount Percent for the detail line on the contract.

szDocumentType_DCTODCTOcharOPTNONE

Document Type for the Contract.

cMode_EV01EV01charREQNONE

Valid values are:
1. Copy Header Defaults

2. Copy Detail Defaults

3. Copy Header and Detail Defaults

szErrorMessageID_DTAIDTAIcharOPTNONE

Error Data Item for the Business Function.

cErrorCode_ERRCERRCcharOPTNONE

Error Code for the Business Function

szP1720Version_VERSVERScharOPTNONE

P1720 Version that is being used with current application/UBE.  This value is 
found on the processing options of the current application/UBE.  If no value is 

entered, the default value of XJDE0001 will be used.

Related Functions

None

Related Tables

None