F0411FSBeginDoc

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

Data Structure

D0400047A - F0411 Functional Server - Begin Document Module

Parameter NameData ItemData TypeReq/OptI/O/Both
cEditInstructionFlagEV01charOPTNONE

Future Use
^

szCompanyCOcharOPTNONE

Company - if left blank will get error.
^

szCompanykeyKCOcharOPTNONE

Key Company - if left blank will get error.
^

jdGLDateDGJJDEDATEOPTNONE

G/L Date
^

jdInvoiceDateDIVJJDEDATEOPTNONE

Invoice Date - if left blank will default from G/L date.
^

szPurchaseorderPOcharOPTNONE

Purchase order number.
^

szDocumentTypePurchasePDCTcharOPTNONE

Purchase Order document type.
^

szCompanyKeyPurchasePKCOcharOPTNONE

Purchas Order Key Company.
^

mnAddressnumberAN8MATH_NUMERICOPTNONE

Supplier number
^

szBusinessUnitMCUcharOPTNONE

Business Unit - if blank will default from address book, if still blank will get error.
^

szPaymentTermsPTCcharOPTNONE

Payment Terms Code - if left blank will be defaulted from address book.
^

szSupplierInvoiceNumberVINVcharOPTNONE

Supplier Invoice Number - if entered will validate for duplicates and send warning or error depending 
on A/P constant.

^

szNamealphaALPHcharOPTNONE

Alpha Name of Supplier - will be retruned from address book
^

szDocumenttypeDCTcharOPTNONE

Document type - if left blank will be defaulted from processing options but not until F0411FSEditDoc 
module is executed - this module will only store value in header stack file.

^

mnDocumentNumberDOCMATH_NUMERICOPTNONE

Document Number - if zero will be assigned using next numbers in F0411FSEndDoc module - this module 
will store an entered number in the header stack.

^

mnCurrencyRateCRRMATH_NUMERICOPTNONE

Currency Rate - if currency is on and left blank it will be defaulted from the address book.
^

szCurrencyCodeCRCDcharOPTNONE

Currency Code - if currency is on and left blank it will be defaulted from the address book.
^

szCompanyCurrencyCodeCRDCcharOPTNONE

Company currency code - if left blank will be retrieved from company.
^

cCurrencymodeCRRMcharOPTNONE

Currency mode - 'F', 'D', ' '.
^

szComputeridCTIDcharOPTNONE

Retrieved from GetAuditInfo(B9800100).
^

cErrorFlagEV01charOPTNONE

' ' = No errrors
'1' = Warning

'2' = Error

^

cPaymentinstrumentPYINcharOPTNONE

Payment Instrument - if left blank will be defaulted from address book.
^

mnAddressnumbersenttoSNTOMATH_NUMERICOPTNONE

Approver Address Number - if left blank will default from address book
^

mnBatchNumberICUMATH_NUMERICOPTNONE

Batch Number - this is the batch number assigned in FSOpenBatch module.
^

szBatchTypeICUTcharOPTNONE

Batch type.
^

jdBatchDateDICJJDEDATEOPTNONE

Batch Date - assigned in FSOpenBatch module
^

jdDateservicecurrencyDSVJJDEDATEOPTNONE

Service/Tax Date - if left blank will be defaulted base on processing option.
^

cGlpostedcodePOSTcharOPTNONE

G/L Post code.
^

mnJobNumberJOBSMATH_NUMERICOPTNONE

Pass Job Number created in Begin Doc, if previously called; elsepas zeroes and this function will 
assign one.

^

cDocumentActionACTNcharOPTNONE

A or 1 = Add
C or 2 = Change

D or 4 = Delete

^

cHeaderChgFlagEV01charOPTNONE

Header Change Flag - used for changes to determine if all pay items will need to be updated with a 
header change.

^

szPrevPurchaseOrderPOcharOPTNONE

Purchase Order Number.
^

mnLastPayItemSFXEMATH_NUMERICOPTNONE

Last Pay Item - used to assign next line number if aline is added and pay item is blank.
^

szLongAddressNumberALKYcharOPTNONE

Long Address Number  - will be used for error highlighting if error on address number.
^

szPrevSupInvVINVcharOPTNONE

Previous Supplier Invoice Number - used to determine if check for duplicate should be executed.
^

cBypassDefaultsEV01charOPTNONE

Flag used to bypass defaults.  If a '1', program defaults will not be performed.  Data Dictionary and required field defaults will still be executed. 
^

cNoSplitEV01charOPTNONE

Flag used to not allow split payments.  Used in Speed Voucher because only one pay item is allowed. 
^

cPrevCurrModeCRRMcharOPTNONE

Previous Currency Mode- used on a change action to edit for currency mode change.
^

cPrePayFlagEV01charOPTNONE

Future use - Flag for Prepayment vouchers .
^

szPrePayClassGLCcharOPTNONE

Future use - G/L Class code for Prepayment voucher 
^

szNameRemarkRMKcharOPTNONE

Remark
^

szDocTyApDefaultJeDTAPcharOPTNONE

Model Journal Entry A/P Document Type - retrieved from address book.
^

mnDocApDefaultJeDCAPMATH_NUMERICOPTNONE

Model Journal Entry A/P Document Number - Retrieved from address book.
^

szCompanyKeyAPModelKCOPcharOPTNONE

Model Journal Entry A/P Document Company - Retrieved from address book.
^

cExchRateDateFlagEV01charOPTNONE

Future flag
^

cVertexQuantumFlagEV01charOPTNONE

Future flag
^

szVoucherPOVersionJDEVERScharOPTNONE

Version of dummy application P0400047 used to retrieve processing options.  If no value is passed 
then it will default to ZJDE0001.

^

cPORedistributionFlagEV01charOPTNONE

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

cPayWhenPaidPYWPcharOPTNONE

This field is used to identify Pay When Paid transactions. Accounts Payable A 'W' will be used to identify Pay When Paid Voucher 
transactions.

mnPayWhenPaidGroupNumberPWPGMATH_NUMERICOPTNONE

This field is a number used to identify a record with a Pay When Paid group.

cBypassInvoiceNumberEditEV01charOPTNONE

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

cBypassInstallmentSplitFlagEV01charOPTNONE

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

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSClearStack

F0411FSClearStack

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

^

Data Structure

D0400047E - F0411 Functional Server - Clear Stack Module

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputeridCTIDcharREQINPUT

Retrieve from GetAuditInfo(B9800100)
^

mnJobNumberJOBSMATH_NUMERICREQINPUT

Pass Job Number created in BeginDocument.
^

cClearHeaderEV01charNONEINPUT

' ' = do not clear header
'1' = clear header

^

cClearDetailEV01charNONEINPUT

' ' = do not clear detail
'1' = clear detail

^

szDetailLineFromSFXcharNONEINPUT

Line number at which you wish to begin clearing the detail memory cache.  If you wish to delete a specific line then send that line number in this 
parameter and leave mnDetailLineThru = blank. 

^

szDetailLineThruSFXcharNONEINPUT

Line number at which you wish to stop clearing the detail memory cache.  If this parameter and mnDetailLineFrom are equal to blanko then all lines with 
the computerid and jobnumber passed  will be deleted

^

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSDeleteDoc

F0411FSDeleteDoc

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This functional server module is used to delete a voucher document.  All A/P Detail (F0411)  lines of the document                     are 

deleted along with the corresponding  G/L Ledger (F0911) lines.    


Setup Notes and Prerequisites

• 

A work field for error flag is needed if you want to do additional processing depending on the 
outcome of the delete validation.  If the error flag is a '1', the delete did not occur. 

• Must Suppress Delete on browse form.
'b7
Special Logic

If Voucher is posted the voucher will be voided. 


Tecnical Specifications

• 
Calls DeleteVoucherFromBrowse function in validate mode. 
• If error flag is blank, calls Delete Voucher From Browse in delete mode.  Delete Voucher From 
Browse deletes all A/P Detail and Account Ledger lines for that document. 

• If error flag is '1', function returns.  No delete occurs.    
'b7



Data Structure

D0400047G - F0411 Functional Server - Delete Doc Module

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocVoucherInvoiceDOCMATH_NUMERICOPTNONE

Document number of the record being added
^

szDocumentTypeDCTcharOPTNONE

Document type of the record being added
^

szCompanyKeyKCOcharOPTNONE

Key Company of the record being added
^

cOPPODelEV01charOPTNONE

Processing option - this designates whether to edit change in PO on delete or change of voucher and whether to send a warning or hard error 
' ' = no edit 

'1' = warning 

'2' = hard error 

^

jdGLDateDGJJDEDATEOPTNONE

G/L Date - if voucher is posted this will be used for the void g/l date 
^

cErrorFlagEV01charOPTNONE

Error flag -  '1' = errors in validation - did not delete  ab 

^

cUpdateBatchFlagEV01charOPTNONE

Update batch flag -  '1' = update batch hdr totals for  deleteab 

^

cValidateorDeleteFlagEV01charOPTNONE

Validate or Delete flag -
' ' = delete 

'1' = validate only 

^

szLedgerTypeLTcharOPTNONE

Ledger Type to void.
^

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSEditDoc

F0411FSEditDoc

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C







• 


• 



• 

• 
• 
• 
• 
• 






Data Structure

D0400047C - F0411 Functional Server - Edit Doc Module

Parameter NameData ItemData TypeReq/OptI/O/Both
cErrorFlagEV01charOPTNONE

' ' = No errors '1' = Warning  '2' = Error  ab 

^

szDocumenttypeDCTcharOPTNONE

Document type - if blank will default from processing option 
^

szComputeridCTIDcharOPTNONE

Retrieved from GetAuditInfo(B9800100)
^

mnJobNumberJOBSMATH_NUMERICOPTNONE

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

cDocumentActionACTNcharOPTNONE

A or 1 = Add
C or 2 = Change 

D or 4 = Delete 

^

mnTotalAmountgrossAGMATH_NUMERICOPTNONE

Total Gross Amount - used to determine if document is a debit memo
^

mnDomTotalGrossAGMATH_NUMERICOPTNONE

Total domestic gross amount.  Can be used to calculate domestic check amount for manual check. 
^

mnDomTotalDiscAvailADSCMATH_NUMERICOPTNONE

Total domestic discount available  amount.  Can be used to calculate domestic check amount for manual check.
^

mnForTotalGrossACRMATH_NUMERICOPTNONE

Total foreign gross amount.  Can be used to calculate domestic check amount for manual  check.ab 

^

mnForTotalDiscAvailCDSMATH_NUMERICOPTNONE

Total foreign discount available  amount.  Can be used to calculate domestic check amount for manual check.
^

mnPaymentNumberDOCMMATH_NUMERICOPTNONE

Manual Payment Number 
^

cConfigHubTransactionTypeEV01charOPTNONE

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

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSEditLine

F0411FSEditLine

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C


Data Structure

D0400047B - F0411  Functional Server - Edit Line Module

Parameter NameData ItemData TypeReq/OptI/O/Both
cProcessingModeEV01charOPTNONE

 Processing Mode 
 '1' = Write and/or Update records to the memory cache 

^

cErrorFlagEV01charOPTNONE

' ' = No errors
'1' = Warning 

'2' = Error 

^

szDocumentpayitemSFXcharOPTNONE

Pay item line number 
^

mnPayitemextensionnumberSFXEMATH_NUMERICOPTNONE

Pay Item Extension - if not 0 will get error  ab 

^

szGlbankaccountGLBAcharOPTNONE

Bank Account Short Id - if blank will be retrieved using long account number in parm 
^

szTaxareaTXA2charOPTNONE

Tax rate/area - if left blank will be defaulted from address book 
^

szTaxExplCodeEXR2charOPTNONE

Tax explanation - if left blank will be defaulted from address book 
^

szGlclassAPCcharOPTNONE

G/L class code - if left blank will be defaulted from address book  ab 

^

szTaxRateArea3TXA3charOPTNONE

Tax rate area 3 - withholding - if left blank will be defaulted from address book 
^

szTaxExplCode3EXR3charOPTNONE

Tax expl code 3 - withholding - if left blank will be defaulted from address book 
^

szReportCode007AC07charOPTNONE

Reporting Code 007 - if left blank will be defaulted from address book 
^

jdDueDateDDJJDEDATEOPTNONE

Due Date - if left blank will be calculated 
^

mnAmountgrossAGMATH_NUMERICOPTNONE

Gross Amount - if called from distribution program use net amount parm instead .  If taxes on and zero will be calculated 
^

mnAmtdiscountavailableADSCMATH_NUMERICOPTNONE

Discount Available - if zero will be calculated 
^

mnAmountdiscounttakenADSAMATH_NUMERICOPTNONE

Discount Taken - if zero will be calculated 
^

mnTaxAmountSTAMMATH_NUMERICOPTNONE

Discount Taken - if zero will be calculated 
^

mnAmounttaxableATXAMATH_NUMERICOPTNONE

Taxable Amount - if zero and taxes on will be calculated  ab 

^

mnNonTaxableAmountATXNMATH_NUMERICOPTNONE

Non Taxable Amount - will be calculated 
^

mnAmountopenAAPMATH_NUMERICOPTNONE

Open amount - if zero or a change in gross will be calculated , also needed for delete
^

mnAmounttoDistributeAGMATH_NUMERICOPTNONE

Gross Amount - if called from distribution program use net amount parm instead .  If taxes on and zero will be calculated 
^

szCheckroutingcodeCRCcharOPTNONE

Check routing code - if left blank will be defaulted from address book 
^

szAcctnoinputmodeANIcharOPTNONE

G/L bank account long number - will be used to retreive short account number . If left blank will default  .ab 

^

szBankAcctDescriptionDL01charOPTNONE

Bank Acct description - retreived with short account number 
^

szSubledgerSBLcharOPTNONE

Subledger
^

cSubledgertypeSBLTcharOPTNONE

Subledger type - required if sending subledger 
^

szSubledgerDescriptionDL01charOPTNONE

Subledger description - retreived if sent subledger 
^

mnPayeeaddressnumberPYEMATH_NUMERICOPTNONE

Payee address number - defaulted based on processing option 
^

szDocumenttypeadjustingDCTAcharOPTNONE

Document type adjusting - if not blank get error 
^

cPaystatuscodePSTcharOPTNONE

Pay status code - if blank defaulted from processing option or data dictionary 
^

szComputeridCTIDcharOPTNONE

Pay status code - if blank defaulted from processing option or data dictionary 
^

cEditInstructionFlagEV01charOPTNONE

'1' = Write and/or Update records to the memory cache 
^

cRecordWrittenStackEV01charOPTNONE

' ' = No errors
'1' = Warning 

'2' = Error 

^

mnAmountcurrencyACRMATH_NUMERICOPTNONE

Foreign Gross Amount - if called from distribution program use foreign net amount parm instead .  
^

mnForeigndiscountavailCDSMATH_NUMERICOPTNONE

Foreign discount available 
^

mnForeigndiscounttakenCDSAMATH_NUMERICOPTNONE

Foreign Discount Available - if zero will be calculated 
^

mnForeigntaxamountCTAMMATH_NUMERICOPTNONE

Foreign tax amount - if zero and taxes on will be calculated 
^

mnForeigntaxableamountCTXAMATH_NUMERICOPTNONE

Foreign taxable amount - if zero and taxes on will be calculated 
^

mnForeignnontaxableCTXNMATH_NUMERICOPTNONE

Foreign non taxable - will be calculated 
^

mnAmountforeignopenFAPMATH_NUMERICOPTNONE

Foreign open - if zero or change in gross will be calculated, also needed for delete  
^

mnForeignAmttodistCTADMATH_NUMERICOPTNONE

Foreign amount to distribute 
^

cGlpostedcodePOSTcharOPTNONE

G/L posted code  ab 

^

mnJobNumberJOBSMATH_NUMERICOPTNONE

Retrieved from Begin Doc.   ab 

^

cLineActionACTNcharOPTNONE

A or 1 = Add
C or 2 = Change 

D or 4 = Delete 

^

szProgramIdPIDcharOPTNONE

future
^

szVersionVERScharOPTNONE

future
^

mnNetAmountAGMATH_NUMERICOPTNONE

Net amount - used by distribution to send to taxes since they do not have a gross amount  
^

mnItemNumberShortITMMATH_NUMERICOPTNONE

Item Number - used by distribution to send to taxes to retrieve tax rate/area 
^

mnForeignNetAmountACRMATH_NUMERICOPTNONE

Foreign Net amount - used by distribution to send to taxes since they do not have a gross amount  ab 

^

jdDiscountDueDateDDNJJDEDATEOPTNONE

Discount due date 
^

cBalancedJournalEntriesBALJcharOPTNONE

Discount due date 
^

cAccountModeAMcharOPTNONE

Account Mode 
^

szObjectAccountOBJcharOPTNONE

Object account
^

szSubsidiarySUBcharOPTNONE

Subsidiary
^

szBankTransitShortidBAIDcharOPTNONE

Bank Transit short acct id
^

cVoidFlagVODcharOPTNONE

Void flag
^

mnLineNumberLNIDMATH_NUMERICOPTNONE

Line number
^

szOrderSuffixSFXOcharOPTNONE

Order suffix
^

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

Sequence number operations
^

szNameRemarkRMKcharOPTNONE

Remark
^

szFrequencyRecurringRFcharOPTNONE

Recurring frequency
^

mnRecurFrequencyOfPaymDRFMATH_NUMERICOPTNONE

Recurring freq # of payments
^

mnUnitsUMATH_NUMERICOPTNONE

Units
^

szUnitOfMeasureUMcharOPTNONE

Unit of measure
^

cArApMiscCode1RP1charOPTNONE

Misc code 1
^

cArApMiscCode2RP2charOPTNONE

Misc Code 2
^

cArApMiscCode3RP3charOPTNONE

Misc Code 3
^

cFlagfor1099TNNcharOPTNONE

1099 flag
^

cDomesticEntrywMultcurrencyDMCDcharOPTNONE

Domestic entry with multi currency
^

mnHistoricalCurrencyConverHCRRMATH_NUMERICOPTNONE

Historical currency rate
^

jdHistoricalDateHDGJJDEDATEOPTNONE

Historical date
^

szUserReserveCodeURC1charOPTNONE

User reserved code
^

jdUserReservedDateURDTJDEDATEOPTNONE

User reserved date
^

mnUserReservedAmountURATMATH_NUMERICOPTNONE

User reserved amount
^

mnUserReservedNumberURABMATH_NUMERICOPTNONE

User reserved number
^

szUserReservedReferenceURRFcharOPTNONE

User reserved reference
^

mnDiscountPercentageDCPMATH_NUMERICOPTNONE

Discount Percentage- used instead of payment terms to calculate dicount
^

mnQuantityQTYMATH_NUMERICOPTNONE

Quantity - used by distribution to send to taxes 
^

cTaxWriteDistFlagEV01charOPTNONE

Tax write dist flag - used by distribution to send to taxes 
^

mnUnroundedTaxAmtSTAMMATH_NUMERICOPTNONE

PST (Sales) TaxAmt- 
Distribution field returned from Tax Calculator

^

cSummaryDetailEV01charOPTNONE

Summary/Detail flag - used by distribution - returned from tax calculator 
^

szPurchaseOrderPOcharOPTNONE

Purchase order number - used by distribution - if blank will be defaulted to header purchase order number 
^

szPurchaseOrderDocTypePDCTcharOPTNONE

Purchase order doc type  - used by distribution - if blank will be defaulted to header purchase order number
^

szPurchaseOrderKeyCoPKCOcharOPTNONE

Purchase order key co  - used by distribution - if blank will be defaulted to header purchase order number
^

szPrevPurchaseOrderPOcharOPTNONE

Previous purchase order - used in changes and deletes for processing option edit  
^

mnUnroundedDiscAvailADSCMATH_NUMERICOPTNONE

Unrounded discount available amount - Distribution field returned from Tax Calculator
^

mnPSTTaxAmtSTAMMATH_NUMERICOPTNONE

The amount assessed and payable to tax authorities. It is the total of the VAT, use, and sales taxes (PST).

cBypassTaxEditsEV01charOPTNONE

Bypass Tax Edits - if a '1' the tax edits will  not be executed  in the Tax Calculator
^

cBypassTaxAAIEditEV01charOPTNONE

Bypass AAI edit - if a '1' the AAI edit will not be executed  in the Tax Calculator
^

cBypassTaxDefaultsEV01charOPTNONE

Bypass Tax Defaults - if a '1' the tax explanation and tax rate/area will not be defaulted from the Address Book or Business Unit tables.  This value caomes 
from a processing option on the Batch Processors.  ab 


^

cBypassDefaultsEV01charOPTNONE

Flag used to bypass defaults.  If a '1', program defaults will not be performed.  Data Dictionary and required field defaults will still be executed
^

szCompanyCOcharOPTNONE

Company for multi company voucher entry - if left blank, will use company in header 
^

szPaymentTermsCodePTCcharOPTNONE

Line level payment terms code - Distribution field 
^

szBusinessUnitMCUcharOPTNONE

Line level business unit - used with Multi Company Vouchers 
^

cRecalcTaxAmtsEV01charOPTNONE

Future use 
^

cRecalcDiscAmtsEV01charOPTNONE

Future use.
^

cRetainedAmountOrPercentFlagEV01charOPTNONE

Indicates whether an amount or a percent will be passed into the parameter 
mnRetainedAmountOrPercent(subcontracting field). Valid values: '0'  Percent  or '1'  Amount.


^

cDeferredTaxFlagEV01charOPTNONE

Indicates whether the Vat portion of the tax will be deferred for tax types of 'V' and 'C' only 
(subcontracting field).  Valid values:

'0'  Vat tax will not be deferred

'1'  Vat tax will be deferred.


^

mnRetainedAmountOrPercentAAMATH_NUMERICOPTNONE

CRetainedAmountOrPercentFlag determines what value will be placed in this parameter(subcontracting 
field). If a 20% percent retainage is applied, then a 20 should be placed in this parameter. The 

retained amount will be sent back.  If a retainage amount is applied, then place the amount in this 

parameter.  Note: If a taxable amount is inserted into the tax calculator, then the retainage needs to be 

taxable. If a gross amount is inserted into the tax calculator, then the retainage needs to be gross.


^

mnDeferredTaxAmountSTAMMATH_NUMERICOPTNONE

Tax amount that was deferred (subcontracting field).
^

szOriginalDocPayItemOSFXcharOPTNONE

The number that identifies a specific pay item associated with the document.

mnOriginalDocumentNoODOCMATH_NUMERICOPTNONE

A number that is used in conjunction with the values in the ODCT and OKCO fields to identify a transaction.

szOriginalDocumentTypeODCTcharOPTNONE

A user defined code (system 00, type DT) that identifies the origin and purpose of the original document.

szCompanyKeyOriginalOKCOcharOPTNONE

A number that is used in conjunction with the values in the ODOC and ODCT fields to identify a transaction.

szUnitNoUNITcharOPTNONE

The number that identifies the actual space within a building that is or can be leased, such as an apartment, office, retail space, parking 
space, and so on.

szCostCenter2MCU2charOPTNONE

An accounting entity, such as a profit center, department, warehouse location, job, project, workcenter, and so on, required for management 
reporting.

jdVoidDateVDGJJDEDATEOPTNONE

The date that specifies the financial period to which the voided transaction is to be posted. Financial periods are set up in the Company 
Constants table (F0010).

mnNonRecoverableTaxAmtNRTAMATH_NUMERICOPTNONE

The portion of the tax amount for which you cannot take a credit.

mnForeignNonRecoverableTaxFNRTMATH_NUMERICOPTNONE

The portion of the foreign tax amount for which you cannot take a credit. 

cPurchasingTaxableYNTAXPcharOPTNONE

A flag that indicates a voucher was created by the Procurement system (system 43)

cDeferredTaxStatusVATDTXScharOPTNONE

Reserved by J.D. Edwards.

cPurgeFlagPRGFcharOPTNONE

Reserved by J.D. Edwards.

cGenericFlag5GFL5charOPTNONE

Reserved by J.D. Edwards.

cGenericFlag6GFL6charOPTNONE

Reserved by J.D. Edwards.

mnGenericAmount1GAM1MATH_NUMERICOPTNONE

Reserved by J.D. Edwards.

mnGenericAmount2GAM2MATH_NUMERICOPTNONE

Reserved by J.D. Edwards.

szGenericString4GEN4charOPTNONE

Reserved by J.D. Edwards.

szGenericString5GEN5charOPTNONE

Reserved by J.D. Edwards.

cPayWhenPaidPYWPcharOPTNONE

This field is used to identify Pay When Paid transactions. Accounts Payable A 'W' will be used to identify Pay When Paid Voucher 
transactions.

mnPayWhenPaidGroupNumberPWPGMATH_NUMERICOPTNONE

This field is a number used to identify a record with a Pay When Paid group.

mnNetTransactionIDNETTCIDMATH_NUMERICOPTNONE

A number that identifies a netting transaction. The system assigns it using the Next Numbers program (P0002). A netting transaction could 
contain one or more netting documents.

mnNetDocumentNumberNETDOCMATH_NUMERICOPTNONE

A number that the system uses to cross reference netting source documents from which netting transfer and netting result documents are 
generated. The system assigns it using the Next Numbers program (P0002). Examples of  netting source documents are: Accounts Payable    o 
Voucher   o Debit Memo    Accounts Receivable    o Invoice    o Credit Memo  o Chargeback  o Unapplied Cash

mnNetLineIDNETRC5MATH_NUMERICOPTNONE

A number that identifies the pay item for a netting source document (voucher or invoice). The system assigns this number. If the voucher or 
invoice has multiple pay items, the numbers are sequential.

cNetStatusCodeNETSTcharOPTNONE

A user defined code (00/NS) that indicates the current netting status for a voucher or an invoice. Valid values are: 0 Ineligible for 
Netting 1 Approved for Netting

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSEndDoc

F0411FSEndDoc

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This functional server module reads from the header and detail memory caches and does database inserts, updates, and deletes for each 

document to the A/P Detail file (F0411). It reads from the header and detail memory caches and performs currency conversion if currency is on.  It updates 

the batch header totals for the document.

 

Setup Notes and Prerequisites


Prior to calling EndDoc you must first run BeginDoc which creates the header memory cache record and EditLine which creates detail 

memory cache records.  EditDoc should also have been run  to assign document type and do any document level editing.

 

Just before calling F0911Master Business Function modules you must call F0411GetNextDocNumber, if your document number is zero. 

You need a document number to send to the F0911 Master Business Function. 


After the F0911 Master Business Function  modules have been executed call this module.  The transactions will be added/updated to the A/P 

Detail File (F0411) if the remaining amount to distribute is equal to zero. 


This module should only be called if using processing mode = '1' (batch mode).  This module should be called from the OK button processing 

done event.


Adds, Updates, and Deletes must be suppressed if using a GUI screen with a grid.  


Work fields needed to be set up on your form are:

                     -Remaining Amount to Distribute - this is returned from the Journal Entry Functional Server 

                     -Document Amount  - total of all line gross amounts - used for updating batch header 

                     -Previous Document Amount - in update mode, total of all line gross amounts as written to grid - 

                      used for updating batch header 


Special Logic

• 

If in update mode and the gross amount is changed,  a PE record will be written for change in 
gross amount. 

• If  adding a document and a check number is sent in the parameter, a manual check will be 
created for the total payment amount.  Required fields for a manual check are: check number, check  

date, domestic payment amount, and foreign payment amount.  

• We also call the routine Batch Revise on Transaction Commitment from within this module to 
update the batch header file (F0011).

• Currency conversion will be executed, if currency is on, as the detail cache is read to be 
updated to the data base.  The currency mode in the header cache will be used to determine which 

side of the entry to calculate.

'b7.

Technical Specifications


• 
Retrieve header memory cache record.
• If  the document number in header memory cache is zero then assign document number from next 
numbers.

• Get audit information to write to all records being written/updated.  
• Check the remaining amount to distribute field to be sure it is zero.  If it is contimue, 
otherwise send error. 

• If a field in the header has changed then use the key to the F0411 found in the header file 
and read in all existing F0411 records and make the header changes as well as any detail changes 

if they exist.  After we have read in all F0411 records and performed updates then read all 

detail memory cache records with an 'A' in the action code and add these records to the F0411. 

• If  there were no changes made to the header fields then loop through the detail memory cache
• 
If currency is on , perform currency conversion 
• Add/update/delete the appropriate F0411 record based on the action code. 
• 
If in update mode and change in gross amount write PE record.  
• If  adding a document and a check number is sent in the parameter, a manual check will be 
created for the total payment amount.  

• Update the F0401 Vendor Year To Date Amount for each line. 
• Call Batch Revise on Transaction Commitment function and update the amounts.
• Clear the header and detail memory caches. 
'b7


Data Structure

D0400047D - F0411 Functional Server - End Doc Module

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocNumberAssignedDOCMATH_NUMERICOPTNONE

Document Number - this is assigned by calling F0411GetNextDocNumber before calling this module 
^

cErrorFlagEV01charOPTNONE

' ' = No errors, '1' = Warning 
'2' = Error 

^

mnDocumentAmountAGMATH_NUMERICOPTNONE

Document amount - used to update batch header 
^

mnPrevDocumentAmountAGMATH_NUMERICOPTNONE

Prev Document amount - used to update batch header on a change - if an add send 0
^

cCurrencyFlagCRYRcharOPTNONE

CurrencyFlag - retreive from system values 
^

cPrevBatchStatusEV01charOPTNONE

Prev Batch Status - used to update batch header - send status returned from FSOpenBatch module 
^

cChangeBatchStatusEV01charOPTNONE

Change batch status flag -
'0' = chang as required 

'1' - do not change  

^

cDocumentInBalanceFlagEV01charOPTNONE

Document in balance flag - 
'0' - document in balance 

'1' - document not in balance 

^

cSuppressBatchControlEV01charOPTNONE

Suppress Batch Control flag
'0' - do not suppress 

'1' - suppress batch control  

^

cFormIsExitedOnAddEV01charOPTNONE

Form is exited on add flag  '0' - form not exited  '1' - form is exited  ab 

^

cOverrideModeEV01charOPTNONE

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

szComputeridCTIDcharOPTNONE

Retreived from GetAuditInfo(B9800100)
^

cGlpostedcodePOSTcharOPTNONE

G/L posted code  ab 

^

szProgramidPIDcharOPTNONE

Program id - used in date/ time stamp - ie EP0411Z1
^

mnJobNumberJOBSMATH_NUMERICOPTNONE

Retrieved from Begin Doc.  
^

mnRemainingAmttoDistAAMATH_NUMERICOPTNONE

Remaining amt to dist - returned from JE functional server   ab 

^

szUserNameUSERcharOPTNONE

User id - retrieved fom GetAuditInfo 
^

mnPaymentNumberDOCMMATH_NUMERICOPTNONE

Payment number to be used for manual check - if this is 0 no manual check will be created.   
^

jdPaymentDateDMTJJDEDATEOPTNONE

Payment date to be used for manual check 
^

mnDomPaymentAmtPAAPMATH_NUMERICOPTNONE

Domestic payment amount - this is the total payment amount for the manual check  - (gross less discount available) 
^

mnForPaymentAmtPFAPMATH_NUMERICOPTNONE

Foreign payment amount - this is the total payment amount for the manual check -( gross less discount available) 
^

cPrePayStatusCodePSTcharOPTNONE

Future use - Prepayment pay status code 
^

mnPrePayNoDaysDTPAMATH_NUMERICOPTNONE

Future use - Prepayment number of days to increment due date 
^

szPrePayremarkRMKcharOPTNONE

Future use - Prepayment remark 
^

cDomesticEntryWMultCurrencyDMCDcharOPTNONE

An entry in this field indicates a domestic voucher or invoice was entered with a multi-currency distribution.

mnPaymentIDPYIDMATH_NUMERICOPTNONE

A number that the system assigns from Next Numbers to identify and track payment records.

cReconciledROrBlankRCNDcharOPTNONE

A code that indicates whether a transaction in the Account Ledger table (F0911) is reconciled. The codes are defined in User Defined Code 
table under system 09 and code RC. A blank character is defined to be the un-reconciled character.  To set up a valid reconciled code 
make sure the following is done in the User Defined Code table:    1.   The special handling code in fold area of the UDC screen must contain a 
01.    2.   The reconciled code must be only one character long and can be a numeric or alpha character.

szReference3AccountReconciR3charOPTNONE

Number that provides an audit trail for specific transactions.  Used primarily in the G/L Account Reconciliation program (P09131).

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSGetNextDocNo

F0411FSGetNextDocNo

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

 
1.Functional Description


Purpose

The purpose of this business function is to allow the user to run the EndDoc module in asynchronous mode.  Because the EndDoc 

module passes back the document number assigned when it is zero we were unable to run EndDoc in async mode and still display the previous 

document number.


Technical Specifications 


The next number will be based on the system code '04' and index '1'.  If Next Numbers constant is set to assign by document number, 

company, it will be used to assign the document number.  As we go out to next numbers we also validate that the key to the document is not already being 

used.


^

Data Structure

D0400047I - F0411 Get Next Doc Number

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputeridCTIDcharOPTNONE

Retreived from GetAuditInfo(B9800100) 
^

mnJobnumberJOBSMATH_NUMERICOPTNONE

Pass Job Number created in BeginDocument 
^

mnDocNumberDOCMATH_NUMERICOPTNONE

This parm will hold the document number assigned by next numbers if passed in as zero.
^

cErrorFlagEV01charOPTNONE

' ' = No Errors
'1' = Warning

'2' = Error

^

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSSummarizeDoc

F0411FSSummarizeDoc

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

1. Functional Description 

This module of the Voucher Master Business Function summarizes multiple pay items into one pay item within a document.  Pay Items are 

summarized based on: 


     Company

     Pay Status 

     Tax Rate/Area 

     Tax Explanation 

     G/L class code 

     G/L Bank Account 

     Payment Terms Code 

     Due Date 

     Discount Due Date 

     Check Handling Code 

     Item Number 


Setup Notes and Prerequisites


• This module must be called prior to call F0411 End Document.

Special Logic

• Only records matching the job number will be summarized.
• When we summarize, several records could possibly be merged together with other records.  This could 
cause  holes to be created in the line numbers.  We have written this module to renumber the lines 

which will eliminate these holes.  We will also pass back the last line number used to the calling 

program.



^

Data Structure

D0400047H - F0411 Summarize Document

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputeridCTIDcharOPTNONE

Retrieved from Begin Doc.
^

mnJobnumberJOBSMATH_NUMERICOPTNONE

Pass Job Number created in BeginDocument of the cache you want summarized 
^

szLastPayItemSFXcharOPTNONE

Will return the last line number used in the summarized records.
^

cSummarizedFlagSMMFcharOPTNONE

A flag that indicates the voucher pay item was created by summarizing purchase order items.

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSUpdateMCISFlag

F0411FSUpdateMCISFlag

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

Data Structure

D0400047J - Update DMCD and CRR fields in F0411

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyKeyKCOcharOPTNONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

mnDocVoucherInvoiceEDOCMATH_NUMERICOPTNONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szDocumentTypeDCTcharOPTNONE

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 

mnCurrencyConverRateOvCRRMATH_NUMERICOPTNONE

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

cDomesticEntryWMultCurrencyDMCDcharOPTNONE

An entry in this field indicates a domestic voucher or invoice was entered with a multi-currency distribution.

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
F0411FSValidateDocNo

F0411FSValidateDocNo

Voucher Entry Master Business Function

Master Business Function

Object Name: B0400047

Parent DLL: CFIN

Location: Client/Server

Language: C

1.Functional Description

Purpose
This functional server module is used to validate that the key to a document being added  is not already used for an existing document in 
the A/P Detail  file (F0411).   


Setup Notes and Prerequisites

• This function will pass back a '1' in the cRecordExistsFlag parameter if a record is found in 
the F0411 with the existing key. 


Special Logic
• This function will check to see if a blank  has been passed in the PayItem  parameter.  If a 
blank  has been passed then a key using only doc number, doc type, and  key company will  be 

used.   


Technical Specifications


• Use the parameters passed to load the keys to the F0411 to do the existance check.
• If the DocumentPayItem parameter is blank  then used only three of the keys, otherwise use all 
5 keys

• Do a Fetch on the F0411
• If a record is found then return a '1' in the cRecordExistsFlag 

^

Data Structure

D0400047F - F0411 Functional Server - Validate Doc Number module

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentNumberDOCMATH_NUMERICOPTNONE

Document number of the record being added
^

szDocumentTypeDCTcharOPTNONE

Document type of the record being added
^

szKeyCompanyKCOcharOPTNONE

Key Company of the record being added
^

szDocumentPayItemSFXcharOPTNONE

Line Number of the record being added.  If this parameter is blank a smaller key will be used for the existance check
^

mnPayItemExtensionSFXEMATH_NUMERICOPTNONE

Pay item extension .  If pay item is blank this will not be used to fetch record.
^

cRecordExistsFlagEV01charOPTNONE

' ' = record does not exist
'1' = record exists 

^

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger
IDNETRC5MATH_NUMERICOPTNONE

A number that identifies the pay item for a netting source document (voucher or invoice). The system assigns this number. If the voucher or 
invoice has multiple pay items, the numbers are sequential.

cNetStatusCodeNETSTcharOPTNONE

A user defined code (00/NS) that indicates the current netting status for a voucher or an invoice. Valid values are: 0 Ineligible for 
Netting 1 Approved for Netting

Related Functions

B0000007 Batch - Revise On Transaction Commitment
B0000026 Edit Exchange Rate Tolerance
B0000028 CurrencyConvSftRound
B0000033 Get Exchange Rate
B0000036 Eff Date for Curr Rate LT Curr Period
B0000055 ValidateAAICompletely
B0000128 Retrieve Company Currency Code
B0000163 Calculate Advanced Payment Terms Due Date
B0000170 BalanceConvertedPayItems
B0000283 Calculate Discount Amount No Tax
B0100022 A/B Vendor Currency Amounts
B0400001 Default Currency Fields
B0400002 Default Tax Rate Area
B0400014 Write Manual Check Records
B0400017 Default Pay Status
B0400031 Validate Voucher Records To Be Deleted
B0400035 Delete Voucher From Browse Screen
B0400036 Edit Voucher G/L Offset Account
B0400037 Default Due Dates
B0400038 PE Creation - Void
B0400097 DefaultVoucherFromAddressBook
B0400162 Edit Duplicate Check # / Bank Account
B0400243 Edit Hold Payment Code
B0400285 Edit Voucher Gross Amount
B0400289 Edit Duplicate Supplier Invoice Number
B0400291 PE Creation - Change In Gross Amount
B9800100 Get Audit Information
N0400104 Write Payee Control Record
N7000330 B0400047 - Plug & Play - 04
X00TAX Calculate and Edit Tax Amounts
X0903 Fiscal Date Edits +
X0909 Validate Subledger
XX0901 Validate Account Number

Related Tables

F0411 Accounts Payable Ledger