GetTableInformation

Get Table Information

Major Business Rule

Object Name: N48S0180

Parent DLL: CCRIN

Location: Client/Server

Language: NER

Functional Description

Purpose

This function is designed to locate table information using the key type, table key and a date for the following tables: Billing Rate/Markup Table 

(F48096), Tax Derivation Table (F48127), GL Offset & Retainage Table (F48128).  If records are found for the keys other named events will be called to find 

table records using other key information in a more narrowed search.


Setup Notes and Prerequisites


Special Logic




Technical Specification

//Variables//

evt_jdBeginDate_EFTB

evt_jdEndDate_EFTE

evt_szTempString_DL01

evt_mnCount_MATH01

evt_cKeyWasSet_FLAG

evt_szTableKey_TKEY

evt_cCurrencyMode_CRRM

evt_szTaxExplanation_EXR1

evt_szTaxRateArea_TXA1

evt_szGLOffset_GLC

evt_szPaymentTerms_TRAR

evt_mnDocumentNumber_DOCO

evt_szWATaxDescription_VR02

evt_szWQExplanationRemark_EXR


//Init counter to level 1 (work order) and record found flag to 0 (not found yet).

evt_mnCount_MATH01 = '1'

bf_cRecordFoundFlag_FLAG = '0'


//Search for a billing rate table, starting with specific information (work order number), continuing through

//most general information (system defaults), until one is found.

//Note, some search levels will only be executed for certain files.

While bf_cRecordFoundFlag_FLAG = '0'  AND  evt_mnCount_MATH01 <= '9'

evt_cKeyWasSet_FLAG = '0'
If evt_mnCount_MATH01 ='1'

If bf_szWDSubledger_SBL (Wko) <> blanks and bf_cWDSubledgerType_SBLT = 'W'
evt_szTableKey_TYKY = bf_szWDSubledger_SBL
evt_cKeyWasSet_FLAG = '1'

Endif-bf_szWDSubledger_SBL (Wko)
Else
If evt_mnCount_MATH01 ='2'
If bf_szWDWorkOrderClass_WR07 <> blanks
evt_szTableKey_TYKY = bf_szWDWorkOrderClass_WR07
evt_cKeyWasSet_FLAG = '1'

Endif-bf_szWDWorkOrderClass_WR07
Else
If evt_mnCount_MATH01 ='3' AND bf_szFileName_DL01 = 'F48096' or 'F48126'
If bf_mnWDContractNumber_DOCO <> blanks
evt_szTableKey_TYKY = [bf_mnWDContractNumber_DOCO]
evt_cKeyWasSet_FLAG = '1'

Endif-bf_mnWDContractNumber_DOCO
Else
If evt_mnCount_MATH01 ='4' AND bf_szFileName_DL01 = 'F48096' or 'F48126'
If bf_mnWDParentContNumber_PCTN <> blanks 
evt_szTableKey_TYKY = [bf_mnWDParentContNumber_PCTN]
evt_cKeyWasSet_FLAG = '1'

Endif-bf_mnWDParentContNumber_PCTN
Else
If evt_mnCount_MATH01 ='5'
If bf_mnWDCustomerNumber_AN80 <> blanks
evt_szTableKey_TYKY =[ bf_mnWDCustomerNumber_AN80]
evt_cKeyWasSet_FLAG = '1'

Endif-bf_mnWDCustomerNumber_AN80
Else
If evt_mnCount_MATH01 ='6'
If bf_szWDBusinessUnit_MCU <> blanks
evt_szTableKey_TYKY = bf_szWDBusinessUnit_MCU
evt_cKeyWasSet_FLAG = '1'

Endif--szWDBusinessUnit_MCU <>blanks
Else
If evt_mnCount_MATH01 ='7'
If bf_szWDJobClass_RP11 <> blanks 
evt_szTableKey_TYKY = bf_szWDJobClass_RP11
evt_cKeyWasSet_FLAG = '1'

Endif-bf_szWDJobClass_RP11
Else
If evt_mnCount_MATH01 ='8' AND bf_szFileName_DL01 <> 'F48128'
If bf_szWDCompany_CO <> blanks 
evt_szTableKey_TYKY = bf_szWDCompany_CO
evt_cKeyWasSet_FLAG = '1'

Endif-bf_szWDCompany_CO
Else
If evt_mnCount_MATH01='9' AND bf_szFileName_DL01 = 'F48096'
evt_szTableKey_TYKY = '*ALL'
evt_cKeyWasSet_FLAG = '1'

Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01
Endif-evt_mnCount_MATH01

//If a key was set in the above logic, continue searching using that key, otherwise increment counter

//and move on to next level.

If evt_cKeyWasSet_FLAG = '1'


//To convert math numeric to string to character
evt_szTempString_DL01 = [evt_mnCount_MATH01]

bf_cTypeOfKey_TYKY = [evt_szTempString_DL01]

        
//If the information being sought is from the Account Derivation File
If bf_szFileName_DL01 = 'F48126'


//If the information being sought is from the Account Derivation Table
If bf_szFileName_DL01 = 'F48126'

F48126.Select
Table Type = bf_cTableType_TBTY
Key Type = bf_cTypeOfKey_TYKY

Table Key = evt_szTableKey_TYKY

Table Effective Begin Date >= bf_jdWDTableDateBasis_TBDT

Table Effective End Date <= bf_jdWDTableDateBasis_TBDT

F48126.FetchNext
Table Effective Begin Date 'ae evt_jdBeginDate_EFTB
Table Effective End Date 'ae evt_jdEndDate_EFTE


//If a successful search was made using the partial key, countinue using more specific info.
// Passing back a record found flag stating whether the

//table was found, and the appropreiate markup info if it was found.

If File_IO_Status = SUCCESS

GetTableInformationMinor (N48S0190)
bf_szFileName_DL01 'ae File Name
bf_cTypeOfKey_TYKY 'ae Key Type

evt_szTableKey_TYKY 'ae Table Key

bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From

bf_szWDDocumentType_DCT'ae Document Type

evt_jdBeginDate_EFTB 'ae Begin Date

evt_jdEndDate_EFTE 'ae End Date

bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number

bf_szWDObjectAccount_OBJ 'ae Object Account

bf_szWDSubsidiary_SUB 'ae Subsidiary

bf_cRecordFoundFlag_FLAG 'ac Found Flag

bf_cTableType_TBTY 'e0 Table Type

bf_szWVResultBusinessUnit_MCUN 'df Resulting Business Unit

bf_szWVResultObject_OBJN 'df Resulting Object Account

bf_szWVResultSubsidiary_SUBN 'df Resulting Subsidiary bf_szWVResultSubledger_SBLN 

'df- Resulting Subledger

bf_szWVResultSubledgerType_SBLT 'df Resulting Subledger Type

If bf_cRecordFoundFlag_FLAG = '1'


Else

//If the information being sought is from the Billing Markup File
If bf_szFileName_DL01 = 'F48096'

F48096.Select
Gen Type = bf_cGenTypeService_GTYP
Curr Code = bf_szWDCurrencyCodeFrom_CRCD

Key Type = bf_cTypeOfKey_TYKY

Table Key = evt_szTableKey_TYKY

Table Effective Begin Date >= bf_jdWDTableDateBasis_TBDT

Table Effective End Date <= bf_jdWDTableDateBasis_TBDT

F48096.FetchNext
Table Effective Begin Date 'ae evt_jdBeginDate_EFTB
Table Effective End Date 'ae evt_jdEndDate_EFTE


//If a successful search was made using the partial key, countinue using more specific info.
If File_IO_Status = SUCCESS


//If the transaction is from payroll, pass appropriate info to rate table lookup for PR.
// Passing back a record found flag stating whether the

//table was found, and the appropreiate markup info if it was found.

If bf_szWDDocumentType_DCT = 'T2' OR 'T4' OR 'T5' (Payroll) 

F48096 Get Billing Markup Table - Payroll (N48S0171)
bf_szFileName_DL01 'ae File Name
bf_cGenTypeService_GTYP 'ae Generation Type Service

bf_cTypeOfKey_TYKY 'ae Key Type

evt_szTableKey_TYKY 'ae Table Key

bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From

bf_szWDDocumentType_DCT'ae Document Type

evt_jdBeginDate_EFTB 'ae Begin Date

evt_jdEndDate_EFTE 'ae End Date

bf_szWDJobType_JBCD 'ae Job Type

bf_szWDJobStep_JBST 'ae Job Step

bf_mnWDPayType_PDBA 'ae Pay Type

bf_mnWDEmployeeNumber_AN8 'ae Employee Number

bf_szWDHomeBU_HMCU 'ae Home BU

bf_szWDCostPool_RP12 'ae Cost Pool

bf_szWDRateGroup_ACLO 'ae Rate Group

bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number

bf_szWDEquipmentRateCode_ERC 'ae Equipment Rate Code

bf_szWDObjectAccount_OBJ 'ae Object Account

bf_szWDSubsidiary_SUB 'ae Subsidiary

bf_cWQCapFlag_CAP 'ac Cap Flag

bf_mnWQDistributionRate_BRT 'ac Rate Field

bf_mnWQPercentage_PERT 'ac Percentage

bf_mnWQAmountField_AA  'ac Amount Field

bf_szWQComponentCostRate_CCR  'ac Component Cost Rate

bf_szWQComponentRevenueRate_CRVR  'ac Component Revenue Rate

bf_cRecordFoundFlag_FLAG 'ac Found Flag

evt_szWQExplanationRemark_EXR 'ac Name Remark Explanation

Else

//If the transaction is from equip, pass appropriate info to rate table lookup for EQ.
// Passing back a record found flag stating whether the

//table was found, and the appropreiate markup info if it was found.

If bf_szWDDocumentType_DCT = 'TE' (Equipment)

F48096 Get Billing Markup Table - Equipment (N48S0172)
bf_szFileName_DL01 'ae File Name
bf_cGenTypeService_GTYP 'ae Generation Type Service

bf_cTypeOfKey_TYKY 'ae Key Type

evt_szTableKey_TYKY 'ae Table Key

bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From

bf_szWDDocumentType_DCT'ae Document Type

evt_jdBeginDate_EFTB 'ae Begin Date

evt_jdEndDate_EFTE 'ae End Date

bf_szWDJobType_JBCD 'ae Job Type

bf_szWDJobStep_JBST 'ae Job Step

bf_mnWDPayType_PDBA 'ae Pay Type

bf_mnWDEmployeeNumber_AN8 'ae Employee Number

bf_szWDHomeBU_HMCU 'ae Home BU

bf_szWDCostPool_RP12 'ae Cost Pool

bf_szWDRateGroup_ACLO 'ae Rate Group

bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number

bf_szWDEquipmentRateCode_ERC 'ae Equipment Rate Code

bf_szWDObjectAccount_OBJ 'ae Object Account

bf_szWDSubsidiary_SUB 'ae Subsidiary

bf_cWQCapFlag_CAP 'ac Cap Flag

bf_mnWQDistributionRate_BRT 'ac Rate Field

bf_mnWQPercentage_PERT 'ac Percentage

bf_mnWQAmountField_AA  'ac Amount Field

bf_szWQComponentCostRate_CCR  'ac Component Cost Rate

bf_szWQComponentRevenueRate_CRVR  'ac Component Revenue Rate

bf_cRecordFoundFlag_FLAG 'ac Found Flag

evt_szWQExplanationRemark_EXR 'ac Name Remark Explanation


Else

//If the transaction is not from payroll or equip,  pass appropriate info to rate
//table lookup for Other.  Passing back a record found flag stating whether the

//table was found, and the appropreiate markup info if it was found.

F48096 Get Billing Markup Table - Other (N48S0173)

bf_szFileName_DL01 'ae File Name
bf_cGenTypeService_GTYP 'ae Generation Type Service

bf_cTypeOfKey_TYKY 'ae Key Type

evt_szTableKey_TYKY 'ae Table Key

bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From

bf_szWDDocumentType_DCT'ae Document Type

evt_jdBeginDate_EFTE 'ae Begin Date

evt_jdEndDate_EFTB 'ae End Date

bf_szWDJobType_JBCD 'ae Job Type

bf_szWDJobStep_JBST 'ae Job Step

bf_mnWDPayType_PDBA 'ae Pay Type

bf_mnWDEmployeeNumber_AN8 'ae Employee Number

bf_szWDHomeBU_HMCU 'ae Home BU

bf_szWDCostPool_RP12 'ae Cost Pool

bf_szWDRateGroup_ACLO 'ae Rate Group

bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number

bf_szWDEquipmentRateCode_ERC 'ae Equipment Rate Code

bf_szWDObjectAccount_OBJ 'ae Object Account

bf_szWDSubsidiary_SUB 'ae Subsidiary

bf_cWQCapFlag_CAP 'ac Cap Flag

bf_mnWQDistributionRate_BRT 'ac Rate Field

bf_mnWQPercentage_PERT 'ac Percentage

bf_mnWQAmountField_AA  'ac Amount Field

bf_szWQComponentCostRate_CCR  'ac Component Cost Rate

bf_szWQComponentRevenueRate_CRVR  'ac Component Rev Rate

bf_cRecordFoundFlag_FLAG 'ac Found Flag

evt_szWQExplanationRemark_EXR 'ac Name Remark Explanation

Endif-bf_szWDDocumentType_DCT
Endif-bf_szWDDocumentType_DCT
Endif-File_IO_Status
If evt_szWQExplanationRemark_EXR <>  AND evt_szWQExplanationRemark_EXR <> 

If bf_cAdhocFlag_EV01 <> '1' OR bf_szNameRemarkExplanation =  OR bf_szNameRemarkExplanation = 
bf_szNameRemarkExplanation = evt_szWQExplanationRemark_EXR
Endif--bf_cAdhocFlag_EV01
Endif--Evt_szWQExplanationRemark_EXR
Else

//If the information being sought is from the Tax Derivation File
If bf_szFileName_DL01 = 'F48127'

F48127.Select
Key Type = bf_cTypeOfKey_TYKY
Table Key = evt_szTableKey_TYKY

Data Structure

D48S0180 - Get Table Information

Parameter NameData ItemData TypeReq/OptI/O/Both
szFileNameDL01charREQINPUT

A user defined name or remark.

cGenerationTypeServiceGTYPcharOPTINPUT

A code that determines the batch types and markup rules for invoice, revenue, and component amounts. The system assigns the batch 
type when the batch is created. Depending on how you define the billing constants, different markup rules can apply to different amounts. Valid 
values are: 1 Apply the markup rule to invoice, revenue, and component amounts. If the billing constants specify that invoice and revenue 
amounts are always the same, the markup rule applies to revenue, invoice, and component amounts. If the billing constants specify that the 
invoice and revenue amounts can be different, the markup rule still applies to revenue, invoice, and component amounts if no type 2 rule 
exists. 2 Apply the markup rule to revenue and component amounts. If the billing constants specify that the invoice and revenue amounts can be 
different, the markup rule applies to revenue and component amounts only. 3 Apply the markup rule to component amounts only. This rule is not 
dependent on billing constants settings.

szCurrencyCodeFromCRCDcharOPTINPUT

A code that identifies the currency of a transaction. 

szDocumentTypeDCTcharOPTINPUT

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

jdDateTableBasisTBDTJDEDATEOPTINPUT

This date is used as the basis for comparison to the effective dates of the various tables used by the Service Billing system.  This date is 
determined by the values set up in the Service Billing Constants at the time the Service Billing Work File (F4812) is generated.

szSubledgerSBLcharREQINPUT

A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an 
address book number. If you enter a subledger, you must also specify the subledger type.

cSubledgerTypeSBLTcharOPTINPUT

A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger 
editing. On the User Defined Codes form, the second line of the description controls how the system performs editing. This is either hard-coded 
or user defined. Valid values include: A Alphanumeric field, do not edit   N Numeric field, right justify and zero fill   C Alphanumeric field, right 
justify and blank fill  

szWorkOrderClassWR07charREQINPUT

A user defined code (00/W7) that indicates the service type for the work order.

mnContractNumberDOCOMATH_NUMERICOPTINPUT

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.

mnParentContNumberPCTNMATH_NUMERICOPTINPUT

The parent contract number to which this particular contract is attached.

mnCustomerNumberAN80MATH_NUMERICREQINPUT

Everest Parent Data Item.

szBusinessUnitMCUcharREQINPUT

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.

szJobClassRP11charREQINPUT

Category code 11 associated with the Business Unit Master file (F0006).  This is a user defined code (system 00, type 11) for use in flex 
account mapping and in printing selected information on reports.

szCompanyCOcharOPTINPUT

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szJobTypeJBCDcharOPTINPUT

A user defined code (07/G) that defines the jobs within your organization. You can associate pay and benefit information with a job type and 
apply that information to the employees who are linked to that job type.

szJobStepJBSTcharOPTINPUT

A user defined code (07/GS) that designates a specific level within a particular job type. The system uses this code in conjunction with job 
type to determine pay rates by job in the Pay Rates table.

mnPayTypePDBAMATH_NUMERICOPTINPUT

A code that defines the type of pay, deduction, benefit, or accrual. Pay types are numbered from 1 to 999. Deductions and benefits are 
numbered from 1000 to 9999.

mnEmployeeNumberAN8MATH_NUMERICOPTINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

szHomeBUHMCUcharOPTINPUT

The number of the business unit in which the employee generally resides.

szCostPoolRP12charOPTINPUT

Category code 12 associated with the Business Unit Master file (F0006).  This is a user defined code (00/12) for use in flex account mapping 
and in printing selected information on reports.

szRateGroupACL0charOPTINPUT

A user defined code (12/CO) that groups similar items for billing. If you are an Equipment Management client and you use Equipment 
Billing, you must use this category code for rate group purposes only.

mnEquipmentNumberNUMBMATH_NUMERICOPTINPUT

An 8-digit number that uniquely identifies an asset.

szEquipmentRateCodeERCcharOPTINPUT

A user defined code (00/RC) that indicates a billing rate, such as DY for daily, MO for monthly, and WK for weekly. You can set up multiple 
billing rates for a piece of equipment. If you leave this field blank, the system searches for a valid billing rate in the following sequence: 1.  
Account Ledger Master (F0901) This table contains the most detailed rate information. You can assign multiple rates for a job. For example, you 
can set up separate rates for different equipment working conditions. 2.  Job or Business Unit Master (F0006) This table contains less detailed 
rate information than the Account Ledger Master. You can only set up a single rate for a job based on this table. 3.  Rental Rules (F1302) This 
table contains the least detailed rate code information. The system searches this table according to the criteria you establish when setting up 
the table.

szObjectAccountOBJcharOPTINPUT

The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into 
subcategories. For example, you can divide the Cost Code for labor into regular time, premium time, and burden. Note: If you use a flexible chart of 
accounts and the object account is set to 6 digits, J.D. Edwards recommends that you use all 6 digits. For example, entering 000456 is not 
the same as entering 456 because if you enter 456 the system enters three blank spaces to fill a 6-digit object.

szSubsidiarySUBcharOPTINPUT

A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account.

cCapFlagCAPcharOPTOUTPUT

This flag indicates whether the associated amount is the override rate or the cap of the rate. Values are:    blank Override Rate.    1       Cap of 
the Rate.  If the cost rate is less than the cap rate, the cost rate will be used; if the cost rate is greater than the cap rate, the Cap Rate will be 
used.

mnDistributionRateBRTMATH_NUMERICOPTOUTPUT

A rate that the system uses to mark up the revenue amount reflected in the billing of professional services such as draftsmen, engineers, or 
consultants. This rate does not affect the employee's paycheck. You can use the markup rate as an override rate or as a maximum rate. The 
calculation of the rate override for the total revenue markup is as follows: (Rate Override * Unit) * (1 + Markup Percent) + Markup 
Amount When you specify a maximum or cap rate, the system compares the rate override with the rate from the cost transaction. The system then uses 
the lower rate as the override rate. You set up the override or maximum unit rate using the Billing Rate / Markup Table program (P48096). Within 
the Service Billing and Contract Billing systems, you can mark up the revenue amount at a different rate from the invoice amount. The 
Independent Revenue/Invoice Amounts option in the Billing System Constants table (F48091) controls this function. Use generation type 1 to 
specify a table for invoice, revenue, and component markup rates and use generation type 2 to specify a table for revenue and component 
markup rates. Use generation type 1 to specify the invoice, revenue, and component markup rates only when the Independent Revenue/Invoice 
Amounts are set to not equal in the Billing Constants.

mnPercentagePERTMATH_NUMERICOPTOUTPUT

The percentage that you use to mark up the revenue amount reflected in the billing of professional services workers, such as draftsmen, 
engineers, or consultants fees. This percentage rate does not affect the employee's paycheck. This percentage rate is set up in the Billing 
Rate/Markup Table program (P48096) using generation type 1 to specify a table for revenue/invoice markup percentage rates. Enter 
percentages as whole numbers. For example, 50.275% would be entered as 50.275.

mnAmountFieldAAMATH_NUMERICOPTOUTPUT

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

szComponentCostRateCCRcharOPTOUTPUT

A code that identifies a component cost rate table to use for this entry in the Billing Rate / Mark up Table (F48096). The component table 
identifies the components and their calculation rules. These component amounts are applied as overhead to the original cost. You set up 
component tables on the Component Table Revisions form.

szComponentRevenueRateCRVRcharOPTOUTPUT

A code that identifies a component invoice or revenue table to use for this entry in the Billing Rate / Mark up Table (F48096). The 
component table identifies the components and their calculation rules. These component amounts are recognized as invoice or revenue in addition to 
any invoice or revenue markups. The generation type of the Billing Rate / Mark up Table, in conjunction with the Independent 
Revenue/Invoice Amounts option in the Billing Constants program (P48091), determines whether this is a component table for invoice amounts,or revenue 
amounts, or both. You set up component tables on the Component Table Revisions form.

szPaymentTermsARTRARcharOPTBOTH

A code that indicates the default payment terms for a customer. Payment terms determine the due date, discount amount, and discount due 
date that the system assigns when you create an invoice. Use a blank code for the payment terms that you use most frequently.  Examples 
of payment terms include: Blank Net 15   1 1/10 net 30   2 2/10 net 30   D Due upon receipt   N Net 30   P Prox 25th  

szGlOffsetRetentionRGLCcharOPTBOTH

A code that designates the offset accounts for retainage, for example RETN or 1225. You set up the code as an automatic accounting 
instruction. Note:  Do not use code 9999. This is reserved for the post program and indicates that offsets should not be created.

mnPercntRetainagePRETMATH_NUMERICOPTBOTH

The retainage rate for the contract. The rate is a percentage that is expressed as a whole number. For example, you enter a retainage rate 
of 10.5 percent as 10.5.

cRetainageControlFlagRCTLcharOPTOUTPUT

An option that determines whether the retainage amount is stored in the Accounts Receivable or General Accounting system and whether 
tax is calculated on the whole amount, including the retainage, or on each amount as it is billed. Valid values are: Blank The retainage is 
stored in the Accounts Receivable system and the tax is computed from the total taxable amount. 1 The retainage is stored in the Accounts 
Receivable system and the tax on the retainage amount is calculated and then subtracted from the total tax amount. This tax on retainage is 
deferred until the retainage is released. 2 The retainage is stored in the General Accounting system and the tax is computed from the total taxable 
amount. 3 The retainage is stored in the General Accounting system and the tax on the retainage amount is calculated and then subtracted from 
the total tax amount. This tax on retainage is deferred until the retainage is released.

cCurrencyModeCRRMcharOPTBOTH

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

cRecordFoundFlagFLAGcharOPTOUTPUT

Contains an indicator for the operation.

cTypeOfKeyFLAGcharOPTOUTPUT

Contains an indicator for the operation.

szNameRemarkExplanationEXRcharOPTBOTH

A name or remark that describes the purpose for using an account or conveys any other information that the user wants about the 
transaction.

szGLOffsetGLCcharOPTBOTH

A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates 
the value that you enter to the AAI item RC (for Accounts Receivable) or PC (for Accounts Payable) to locate the trade account. For 
example, if you enter TRAD, the system searches for the AAI item RCTRAD (for receivables) or PCTRAD (for payables).  You can assign up to four 
alphanumeric characters to represent the G/L offset or you can assign the three-character currency code (if you enter transactions in a 
multicurrency environment). You must, however, set up the corresponding AAI item for the system to use; otherwise, the system ignores the G/L 
offset and uses the account that is set up for PC or RC for the company specified.  If you set up a default value in the G/L Offset field of the 
customer or supplier record, the system uses the value during transaction entry unless you override it.  Note: Do not use code 9999. It is reserved for 
the post program and indicates that offsets should not be created.

szTaxArea1TXA1charOPTBOTH

A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter 
against the Tax Areas table (F4008). The system uses the tax rate area in conjunction with the tax explanation code and tax rules to calculate tax 
and G/L distribution amounts when you create an invoice or voucher.

cTaxableOrGrossTOGcharOPTBOTH

This field indicates to the system whether the marked up billing amount is a taxable amount or gross amount.  The system then will have 
different ways to calculate the tax amount.  The following allowed values will determine the calculation:    1 The marked up billing is taxable 
amount; the system will calculate the tax amount and the gross amount.    2 The marked up billing is gross amount; the system will calculate the tax 
amount and the taxable amount.    3 The marked up billing is for both the gross and the taxable, and the system will calculate the tax amount.

szTaxExplanationCode1EXR1charOPTBOTH

A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The 
system uses the tax explanation code in conjunction with the tax rate area and tax rules to determine how the tax is calculated. Each 
transaction pay item can be defined with a different tax explanation code.

szCurrencyCodeTableCRCDcharOPTOUTPUT

A code that identifies the currency of a transaction. 

szCurrencyCodeOriginCRCFcharOPTINPUT

The currency code of the insured amount.

cTaxableYNTXcharOPTBOTH

A code that indicates whether the item is subject to sales tax when you purchase it. The system calculates tax on the item only if the supplier 
is also taxable.

cAdhocFlag_EV01EV01charOPTINPUT

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

szVertexTransactionTypeVVTYcharOPTOUTPUT

Vertex Sales and Use Tax transaction type.

szVertexProductCategoryVVTCcharOPTOUTPUT

User defined code used in the Vertex Tax Decision Maker for products or services that are non-taxable or are at a non-stanard rate.

Related Functions

None

Related Tables

None