ValidateVchRecsToDelete

Validate Voucher Records To Be Deleted

Minor Business Rule

Object Name: B0400031

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This function edits voucher records to be deleted.  It is called for each record processed.  The G/L 

Date field for posted records must contain the entered G/L Date to be used for the PE record.  To edit 

error when deleting vouchers with a Purchase Order Number, the relevant Processing Option must be 

sent.  Allowed values are:  ' ' = no edit, '1' = warning message, '2' = hard error.  If an error occurs, 

output parameter 'ErrorFlag' is set to '1'.


Setup Notes and Prerequisites


Special Logic


Technical Specification

^

Data Structure

D0400489 - Validate Voucher Records To Be Deleted

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocVoucherInvoiceeDOCMATH_NUMERICNONENONE

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.

szDocumentTypeDCTcharNONENONE

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 

szCompanyKeyKCOcharNONENONE

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.

szDocumentPayItemSFXcharNONENONE

A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has 
multiple pay items, the numbers are sequential.

mnPayItemExtensionNumberSFXEMATH_NUMERICNONENONE

A code to designate an adjusting entry to a pay item on a voucher or invoice. This field is required so that each record is unique.

cGLPostedCodePOSTcharNONENONE

A code the system uses to determine whether a transaction is available for the post process. Valid codes 
are: Blank Unposted. D Posted. P Posted or posting. Depending on the type of transaction, this code has different meanings. If the code is assigned to an Account Ledger 
record (F0911), it indicates a posted status. If the code is assigned to any other transaction, it indicates that the system attempted to post the 
record but failed, due to an error it encountered.    M Model. The transaciton is a model journal entry.     

cVoidFlagVODcharNONENONE

This code is used to determine whether an entry has been voided. A value of V will be entered into this field if the record has been 
voided. Note:   A/P processing may also fill this field with a value of U to mark prepayment records entered through the Manual Payment without 
Voucher Match program (P04106).

szCompanyCOcharNONENONE

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.

cCurrencyModeCRRMcharNONENONE

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.

mnAmountGrossAGMATH_NUMERICNONENONE

A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on 
the tax explanation code. The system does not decrease the gross amount when payments are applied. When you void a transaction, the 
system clears the gross amount field.

mnAmountOpenAAPMATH_NUMERICNONENONE

The amount of an invoice or voucher pay item that is unpaid.

mnAmountCurrencyACRMATH_NUMERICNONENONE

The foreign currency amount entered on the transaction. If the Multi-Currency Conversion option on the General Accounting constants is set 
to Y, the foreign amount is multiplied by the exchange rate to arrive at the domestic amount. If the Multi-Currency Conversion option is set to Z, 
the foreign amount is divided by the exchange rate.

mnAmountForeignOpenFAPMATH_NUMERICNONENONE

The unpaid foreign amount of a transaction.

szFrequencyRecurringRFcharNONENONE

A code to specify the time interval between transactions that the system creates. Valid recurring frequency values 
are: MO Monthly AN Annually WK Weekly QT Quarterly SA Semiannually BW Biweekly

mnRecurFrequencyOfPaymDRFMATH_NUMERICNONENONE

The number of recurring invoices or vouchers that you want the system to process. This number includes the original transaction that you 
enter. For example, if you enter 12, the system will process the transaction 11 additional times, reducing the value of the number of payments 
by 1 each time it creates a new transaction. When this field contains 1, the system does not create a new transaction, it clears the field.

cErrorFlagEV01charNONENONE

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

szPurchaseOrderPOcharNONENONE

A document that authorizes the delivery of specified merchandise or the rendering of certain services.

cPOProcessingOptionEV02charNONENONE

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

szDocumentTypeAdjustingDCTAcharNONENONE

A code in the Accounts Payable Ledger table (F0411) to designate a change in the gross amount of a voucher.  Valid value: PE.

cPayStatusCodePSTcharNONENONE

A user defined code (00/PS) that indicates the current payment status for a voucher or an invoice. Examples of codes include: A Approved 
for payment but not yet paid   H Held pending approval   P Paid   Note: Some of the payment status codes are hard coded; the system assigns 
the code.

Related Functions

None

Related Tables

F0414 Accounts Payable Matching Document Detail