F4314BeginDoc

Voucher Match

Master Business Function

Object Name: XT4314ZN

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

DXT4314ZA - F4314 Begin Doc


Functional Description


F4314BeginDoc is part of the Voucher Match MBF that is contained in the source file xt4314zn.
This function has to be called before any other functions of the voucher match MBF are called.


Purpose


This function is used to obtain the different Job Numbers that will be used to write/ accesss records 

from the AP ( system 04) and GL (09),.


Setup Notes and Prerequisites


The Open Batch function needs to be run before this business function is run to create/open a batch 

in the batch header file.  The batch number then needs to be assigned in the data structure of this 

business function.


Special Logic



General Flow of processing


1.Validate that the ComputerID has been provided.  If not then set error and exit.
2.Call the AP BeginDoc.  If errors exist then set ER_ERROR and exit

3.Call the GL BeginDoc.  If errors exist then set ER_ERROR and exit


Technical Specification




^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAPJobNumberJOBSMATH_NUMERICNONENONE


Special Output Returned


Job Number returned. If this value is zero i.e. not returned then processing of this transaction 

should be terminated.


Significant Data Values


1 - MathNumeric assigned using next numbers inside the F0411FSBeginDoc function.



^

mnGLJobNumberJOBSMATH_NUMERICNONENONE


Special Output Returned


Job Number returned. If this value is zero i.e. not returned then processing of this transaction 

should be terminated.


Significant Data Values


1 - MathNumeric assigned using next numbers inside the 

    F0911FSBeginDoc function.


^

szComputerIDCTIDcharNONENONE

Special Input Expected
ComputerID has to be passed into this application. It has to be retrieved prior to calling this 

function using GetLocalComputerID





^

cHeaderActionCodeACTNcharNONENONE

Special Input Expected

Cannot be blank


Significant Data Values


'1' or 'A' calls function in add mode

'4' or 'D' calls function in delete mode



^

cProcessEditsEV01charNONENONE


Significant Data Values


'0' no validations performed

'1' all validations performed

'2' partial validation (future)


^

szAPPrOptVersionVERScharNONENONE


Contains the version name for the AP MBF(b0400047) that is passed into F0411FSBeginDoc


Significant Data Values


VERS - String, Version Name


if this is not passed in or left blank then this function will default a value of ZJDE0001 for the AP 

version name.


^

szGLPrOptVersionVERScharNONENONE


Contains the version name for the GL MBF(b0900049) that is passed into F0911FSBeginDoc


Significant Data Values


VERS - String, Version Name


if this is not passed in or left blank then this function will default a value of ZJDE0001 for the GL 

version name.


^

mnDocumentNumberDOCMATH_NUMERICNONENONE


The document number can be retrieved prior to calling this function and passed in. If it is not pased 

in then the document number is retrieved inside the F0411FSEndDoc function.

^

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 

szDocumentCompanyKCOcharNONENONE

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.

szBranchPlantMCUcharNONENONE

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.

szCompanyCOcharNONENONE


Retrieved from Branch Plant

^

mnSupplierNumberAN8MATH_NUMERICNONENONE


Significant Data Values


AN8 - MathNumeric value, has to be passed in


^

szInvoiceNumberVINVcharNONENONE


Significant Data Values


INV - MathNumeric value, mandatory if invoice number 

      duplication checking is turned on in the AP system 

      constants.



^

jdInvoiceDateDIVJJDEDATENONENONE

The date that either you or the system assigns to an invoice or voucher. This can be either the date of the supplier's invoice to you or the 
date of your invoice to the customer.

jdTaxServiceDateDSVJJDEDATENONENONE

A date that indicates when you purchased goods or services, or when you incurred a tax liability. 

jdGLDateDGLJDEDATENONENONE

A date that identifies the financial period to which the transaction is to be posted.  The company constants specify the date range for each 
financial period. You can have as many as 14 periods. Generally, period 14 is used for audit adjustments. The system validates this field for 
PBCO (posted before cutoff), PYEB (prior year ending balance), PACO (post after cutoff), and WACO (post way after cutoff) messages.

cPaymentInstrumentPYINcharNONENONE

A user defined code (00/PY) that determines the means by which a payment is issued to a supplier or received from the customer. 
Examples of payment instruments include check, electronic funds transfer, lockbox, and EDI.

szPaymentTermsPTCcharNONENONE

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

szTaxExplCodeEXR1charNONENONE

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.

szTaxRateAreaTXA1charNONENONE

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.

mnBatchNumberICUMATH_NUMERICNONENONE


Batch Number has to be retrieved prior to this function being called

^

szBatchTypeICUTcharNONENONE


Batch Type has to be retrieved and passed into this function.

^

jdBatchDateDICJJDEDATENONENONE


Batch Date is determined and passed into this function

^

szCompanyCurrencyCodeCRDCcharNONENONE

A code that identifies the domestic (base) currency of the company on a transaction. 

szTranscationCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

cCurrencyModeCRRMcharNONENONE


Significant Data Values


if Currency processing is on acceptable values are:


'D' Domestic Mode

'F' Foreign Mode


If Currency Processing is off acceptable values are:


' ' or 'D' - Dometsic.

^

mnExchangeRateCRRMATH_NUMERICNONENONE

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. 

cCurrencyProcessingFlagCRYRcharNONENONE


System Wide Currency Processing Flag.


Significant Data Values


'Y' Currency processing is ON - multipier

'Z' Currency processing is ON - Divisor

'N' Currency processing is OFF


^

cVoucherLoggingEV02charNONENONE


Significant Data Values


'1' indicates that this program is called to redistribute a logged voucher to an Order.


'0' or ' ' no redistribution

^

szVMPrOptVersionVERScharNONENONE


Contains the version name for the Voucher Match Application (p4314).


Significant Data Values


VERS - String, Version Name


if this is not passed in or left blank then this function will default a value of ZJDE0001 for the 

P4314 version name.



^

mnAddressNumberSentToSNTOMATH_NUMERICOPTNONE

The address number of the individual who is authorized to approve voucher logging transactions. This address number must exist in the 
Address Book Master table (F0101) for validation purposes.

mnGrossAmtEnteredAGMATH_NUMERICOPTINPUT

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.

mnDomGrossAmtAGMATH_NUMERICOPTOUTPUT

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.

mnForGrossAmtACRMATH_NUMERICOPTOUTPUT

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.

cOverrideGrossAmtFlagEV03charOPTINPUT

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

mnTriangulationRateFromCurrencTRR1MATH_NUMERICOPTNONE

The triangulation currency rate used to convert the From currency code to the Triangulation currency code.

mnTriangulationRateToCurrencyTRR2MATH_NUMERICOPTNONE

The triangulation currency rate that used to convert from the Triangulation currency code to the To currency code.

cCurrencyConversionMethodCRCMcharOPTNONE

A value that specifies which method to use when converting from one currency to another. Valid values are:  Y  Multiplier method. The 
system multiplies the foreign amount by the multiplier exchange rate to calculate the domestic amount. Z Divisor method. The system divides the 
foreign amount by the divisor exchange rate to calculate the domestic amount.

jdDateEffectiveRatesEFTJDEDATEOPTNONE

The date that identifies when a date is first valid. The effective date is used generically. It can be a lease effective date, a price or cost 
effective date, a currency effective date, a tax rate effective date, or whatever is appropriate.

cCurrencySpotRateNotAllowedCSRcharOPTNONE

An option that indicates whether a spot rate is applicable for a particular currency relationship. Spot rates are exchange rates entered at the 
time of transaction entry.

szLongAddressNumberALKYcharOPTNONE

A user-defined name or number that identifies an address book record.  You can use this number to locate and enter information about the 
address book record. If you enter a value other than the address book number (AN8), such as the long address or tax ID, you must precede 
it with the special character that is defined in the Address Book constants. When the system locates the record, it returns the address book 
number to the field. For example, if address book number 4100 (Total Solutions) has a long address TOTAL and an * distinguishes it from 
other entries (as defined in the Address Book constants), you could type *TOTAL into the field, and the system would return 4100.

Related Functions

B0000009 Get Next Journal Entry Line Number
B0000019 Calculate Tax Authority Tax Amts
B0000027 CurrencyConvForAndDom
B0000032 RetrieveCurrencyConvFlag
B0000033 Get Exchange Rate
B0000055 ValidateAAICompletely
B0000130 Retrieve Company From Business Unit
B0400047 Voucher Entry Master Business Function
B0900049 Journal Entry
B0900085 Retrieve Ptr To F0911 Record
B1100006 Decimal Trigger Get By Currency
B4000150 Get Branch Constants
B4000260 Line Type - Activity Rules
B4000350 Retrieve Distribution AAI
B4000520 Get Item UoM Conversion Factor
B4000530 Get Distribution Constants
B4000940 Calculate Qty on hand for Inventory Cost Level
B4001040 Get Item Master Description UOM
B4002000 Compute Unit Or Extended Amount
B4100040 Write Cardex Record
B4100210 Check Item Branch
B4300030 Edit Purchasing Tolerance Rules
B4300060 Get Purchasing Instructions
B4300110 Get Purchase Order Detail
B4300130 Get Purchase Order Header
B4300330 Update PO Next Status
B4300370 Get Purchase Order Receipt
B4301410 Maintain Purchasing Parms Cache
B4301420 Retrieve Outstanding Logs
B4302090 Compute/Write COGS Variance
N0400121 F0411 Redistribution
N7000190 XT4314ZN - Plug & Play - 43B
X4181 Average Cost Update
XF4105 Item Cost I/O
XT4311Z1 Purchase Order Entry
XX0901 Validate Account Number

Related Tables

F4301 Purchase Order Header
F4311T Purchase Order Detail Tag File
F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File
F4314Z Voucher Match Selection File
F4314ClearWorkFile

F4314ClearWorkFile

Voucher Match

Master Business Function

Object Name: XT4314ZN

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose


This function is called to clear out the hF4314ZCache. 


This function may be called after the successful execution of F4314EndDoc where we would need to 

clear out the records that have just been processed and updated/ written to the live files. 


This function may also be called prior to the execution of F4314EndDoc e.g. when the user decides 

that they do not want to complete the transaction and thus clear out the cache prior to cancelling out of 

the Voucher Match Application.


Setup Notes and Prerequisites


Special Logic




Technical Specification


1.1.1Processing 


1.- Validation of input parameters.

2.- If Line number is given , then search for all the records matching the input data from 

the line number to the end of the file. If line number is not given, then  search 

starting at  line number equal one.



Detail Flow of Processing


Initialize  ErrorFlag   to '0' 


if ComputerID  is BLANK then 

Set Error 0003

End Processing


if JobNumber   is equal  to  ZERO then delete all records matching on partial key 

ComputerID


else

if LineNumber  is equal  to  ZERO then delete the records by matching only on
ComputerID

JobNumber


else Delete all of the records matching  by using  KEY1 and the following parameters

ComputerID 

JobNumber  

LineNumber 





Data Structure

DXT4314ZH - F4314 Clear Work File

Functional Description

Purpose


This function is called to clear out the hF4314ZCache. 

This function may be called after the successful execution of F4314EndDoc where we would need to 

clear out the records that have just been processed and updated/ written to the live files. 


This function may also be called prior to the execution of F4314EndDoc e.g. when the user decides 

that they do not want to complete the transaction and thus clear out the cache prior to cancelling out of 

the Voucher Match Application.


Setup Notes and Prerequisites


Special Logic




Technical Specification


1.1.1Processing 

1.- Validation of input parameters.
2.- If Line number is given , then search for all the records matching the input data from 

the line number to the end of the file. If line number is not given, then  search 

starting at  line number equal one.



Detail Flow of Processing


Initialize  ErrorFlag   to '0' 


if ComputerID  is BLANK then 

Set Error 0003

End Processing


if JobNumber   is equal  to  ZERO then delete all records matching on partial key 

ComputerID


else

if LineNumber  is equal  to  ZERO then delete the records by matching only on
ComputerID

JobNumber


else Delete all of the records matching  by using  KEY1 and the following parameters

ComputerID 

JobNumber  

LineNumber 






^

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputerIDCTIDcharNONENONE


Cannot be blank

^

mnJobNumberJOBSMATH_NUMERICNONENONE


Cannot be zero

^

mnLineNumberXTLNMATH_NUMERICNONENONE

A line number designation within an item transaction.  This data field is only used to sequence the transaction for inquiry purposes.

cErrorFlagEV01charNONENONE


Significant Data Values


'1' - Errors exist.

'0' - No Errors.

^

Related Functions

B0000009 Get Next Journal Entry Line Number
B0000019 Calculate Tax Authority Tax Amts
B0000027 CurrencyConvForAndDom
B0000032 RetrieveCurrencyConvFlag
B0000033 Get Exchange Rate
B0000055 ValidateAAICompletely
B0000130 Retrieve Company From Business Unit
B0400047 Voucher Entry Master Business Function
B0900049 Journal Entry
B0900085 Retrieve Ptr To F0911 Record
B1100006 Decimal Trigger Get By Currency
B4000150 Get Branch Constants
B4000260 Line Type - Activity Rules
B4000350 Retrieve Distribution AAI
B4000520 Get Item UoM Conversion Factor
B4000530 Get Distribution Constants
B4000940 Calculate Qty on hand for Inventory Cost Level
B4001040 Get Item Master Description UOM
B4002000 Compute Unit Or Extended Amount
B4100040 Write Cardex Record
B4100210 Check Item Branch
B4300030 Edit Purchasing Tolerance Rules
B4300060 Get Purchasing Instructions
B4300110 Get Purchase Order Detail
B4300130 Get Purchase Order Header
B4300330 Update PO Next Status
B4300370 Get Purchase Order Receipt
B4301410 Maintain Purchasing Parms Cache
B4301420 Retrieve Outstanding Logs
B4302090 Compute/Write COGS Variance
N0400121 F0411 Redistribution
N7000190 XT4314ZN - Plug & Play - 43B
X4181 Average Cost Update
XF4105 Item Cost I/O
XT4311Z1 Purchase Order Entry
XX0901 Validate Account Number

Related Tables

F4301 Purchase Order Header
F4311T Purchase Order Detail Tag File
F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File
F4314Z Voucher Match Selection File
F4314EditDoc

F4314EditDoc

Voucher Match

Master Business Function

Object Name: XT4314ZN

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose


This function is called after F4314EditLine has executed successfuly i.e. records have been written 
to the hF4314ZCache, and, before calling F4314EndDoc.


This function will cycle through all the records in the hF4314Cache and create the necessary Journal 

entries that may arise due to the nature of the transaction.


Setup Notes and Prerequisites


Special Logic




Technical Specification



1.1Processing Overview


1.Validate incoming parameters 
2.Retrieve Processing Options

3.If Voucher Logging is on reverse the supspense account created at Voucher Logging Entry.

4.Loop through the workfile F4314Z

5.For each line Calculate Domestic Amounts

6. Call GL Edit Line for 

7.Received Not Vouchered

8.Reverse Taxes

9.Create Taxes

10.Variances

11.Quantity (not implemented  OW )

12.Amounts

13.Exchange

14.Retrieve the processing options for the AP Edit Doc

15.Call the AP EditDoc

16.Call the GL EditDoc


Data Structure

DXT4314ZC - F4314 Edit Doc

Functional Description

Purpose


This function is called after F4314EditLine has executed successfuly i.e. records have been written 
to the hF4314ZCache, and, before calling F4314EndDoc.


This function will cycle through all the records in the hF4314Cache and create the necessary Journal 

entries that may arise due to the nature of the transaction.


Setup Notes and Prerequisites


Special Logic




Technical Specification



1.1Processing Overview


1.Validate incoming parameters 

2.Retrieve Processing Options

3.If Voucher Logging is on reverse the supspense account created at Voucher Logging Entry.

4.Loop through the workfile F4314Z

5.For each line Calculate Domestic Amounts

6. Call GL Edit Line for 

7.Received Not Vouchered

8.Reverse Taxes

9.Create Taxes

10.Variances

11.Quantity (not implemented  OW )

12.Amounts

13.Exchange

14.Retrieve the processing options for the AP Edit Doc

15.Call the AP EditDoc

16.Call the GL EditDoc



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAPJobNumberJOBSMATH_NUMERICNONENONE


Retrieved by F4314BeginDoc

^

mnGLJobNumberJOBSMATH_NUMERICNONENONE


Retrieved by F4314BeginDoc

^

szComputerIDCTIDcharNONENONE


Value required, cannot be balnk.

^

cDocumentActionACTNcharNONENONE


Significant Data Values


'1' or 'A' - Add Mode.

'4' or 'D' - Delete Mode.

^

cCurrencyProcessingFlagCRYRcharNONENONE


Significant Data Values


'Y' - Currency processing ON - multiplier.

'Z' - Currency processing ON - Divisor.

'N' - Currency processing OFF.

^

szAPPrOptVersionVERScharNONENONE


Defaults to "ZJDE0001" if blank.

^

szGLPrOptVersionVERScharNONENONE


Defaults to "ZJDE0001" if blank.

^

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 

mnGrossDocumentAmountAGMATH_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.

mnDomAmountToDistributeAGMATH_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.

cCurrencyModeCRRMcharNONENONE


Significant Data Values


if Currency Processing is ON, acceptable values are:

'D' - Domestic Mode.

'F' - Foreign Mode.


If Currency Processing is OFF, acceptable values are:

' ' or 'D' - Doemstic Mode.



^

mnForAmountToDistributeACRMATH_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.

szVMePrOptVersionVERScharNONENONE


Defaults to "ZJDE0001" if blank.

^

szCompanyCurrencyCodeCRDCcharNONENONE

A code that identifies the domestic (base) currency of the company on a transaction. 

cVoucherLoggingEV02charNONENONE


Significant Data Values


'1' - Function is called to redistribute a logged voucher to an order.

'0' - No redistribution.

^

mnDocumentNumberDOCMATH_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.

szDocumentCompanyKCOcharNONENONE

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.

cVLReverseSuspAcctFlagEV03charOPTNONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

cAdvancedProcurementPricingCP11charOPTNONE

Use this field to specify whether to apply advanced pricing to the purchase price. Valid values are:    Y Apply advanced pricing to the 
purchase price.    N Apply standard price adjustments to the purchase price.

mnBatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

Related Functions

B0000009 Get Next Journal Entry Line Number
B0000019 Calculate Tax Authority Tax Amts
B0000027 CurrencyConvForAndDom
B0000032 RetrieveCurrencyConvFlag
B0000033 Get Exchange Rate
B0000055 ValidateAAICompletely
B0000130 Retrieve Company From Business Unit
B0400047 Voucher Entry Master Business Function
B0900049 Journal Entry
B0900085 Retrieve Ptr To F0911 Record
B1100006 Decimal Trigger Get By Currency
B4000150 Get Branch Constants
B4000260 Line Type - Activity Rules
B4000350 Retrieve Distribution AAI
B4000520 Get Item UoM Conversion Factor
B4000530 Get Distribution Constants
B4000940 Calculate Qty on hand for Inventory Cost Level
B4001040 Get Item Master Description UOM
B4002000 Compute Unit Or Extended Amount
B4100040 Write Cardex Record
B4100210 Check Item Branch
B4300030 Edit Purchasing Tolerance Rules
B4300060 Get Purchasing Instructions
B4300110 Get Purchase Order Detail
B4300130 Get Purchase Order Header
B4300330 Update PO Next Status
B4300370 Get Purchase Order Receipt
B4301410 Maintain Purchasing Parms Cache
B4301420 Retrieve Outstanding Logs
B4302090 Compute/Write COGS Variance
N0400121 F0411 Redistribution
N7000190 XT4314ZN - Plug & Play - 43B
X4181 Average Cost Update
XF4105 Item Cost I/O
XT4311Z1 Purchase Order Entry
XX0901 Validate Account Number

Related Tables

F4301 Purchase Order Header
F4311T Purchase Order Detail Tag File
F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File
F4314Z Voucher Match Selection File
F4314EditLine

F4314EditLine

Voucher Match

Master Business Function

Object Name: XT4314ZN

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

DXT4314ZB - F4314 Edit Line

Functional Description

Purpose


This function is called to process the different order lines that are selected to match. This 
function will take input from the grid and process it to get the correct amounts, taxes etc and update or 

write to the Voucher Match cache (hF4314Zcache).


Setup Notes and Prerequisites


F4314BeginDoc has to be run prior to calling this function so that the Job Number used to access 
records is the same one asigned by the AP F0411FSBeginDoc function (B0400047).


Special Logic




Technical Specification


1.1.1General Flow of Processing


1.Process Initialization & validate standard parameters
2.Edit PO / Receipt existance and retrieve required information

3.Edit tolerance rules

4.Call F0411EditLine to validate detailed input

5.Calculate taxes

6. Write to/update Voucher Match workfile record


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAPJobNumberJOBSMATH_NUMERICNONENONE


Retrieved in F4314BeginDoc.

^

mnGLJobNumberJOBSMATH_NUMERICNONENONE


Retrieved in F4314BeginDoc.

^

mnPOJobNumberJOBSMATH_NUMERICNONENONE


Required when changing a non stock order line that was created at voucher match.

^

szComputerIDCTIDcharNONENONE


Mandatory value,cannot be blank

^

mnWorkFileLineNumberLNIDMATH_NUMERICNONENONE


This line gets sassigned in add mode. 

Mandatory if attempting to change a record that has already been written to the cache (i.e. 

F4314EditLine has aready been called for that line)

^

cLineActionCodeACTNcharNONENONE


Significant Data Values


'1' or 'A' - Add record to cache

'4' or 'D' - Delete record from cache.


^

cEditInstructionFlagEV01charNONENONE


Significant Data Values


'0' - No Validation

'1' - All edits performed

'2' - Partial Edits performed (future).


^

cUpdateOrWriteToWorkFileEV01charNONENONE


Indicates whther to write a record to the cache or workfile

Significant Data Values


'0' - Do not write record to cache / workfile.

'1' - write to the cache

'2' - write to the workfile (future)




^

cRecordWrittenToVMFileEV01charNONENONE


Indicates whether a record was successfuly written to the cache/ workfile.

Significant Data Values


'0' - record not yet written to cache/ workfile - Add mode

'1' - record written to cache/ workfile - update mode.


^

szVMePrOptVersionVERScharNONENONE


If blank defaults to "ZJDE0001"

^

szAPPrOptVersionVERScharNONENONE


If blank defaults to "ZJDE0001"

^

szGLPrOptVersionVERScharNONENONE


If blank defaults to "ZJDE0001"

^

szPOPrOptVersionVERScharNONENONE


If blank defaults to "ZJDE0001"

^

cMatchTypeMATCcharNONENONE


Significant Data Values


'2' - Match To Order Line (2 way Match).

'3' - Match To Receipt Line (3 way Match).

^

cMatchProcessingMATCcharNONENONE


Significant Data Values


' ' - No action (Future)

'1' - Match quantity/ amount

'4' - Add new non stock order line

'7' - Match and close balance

'9' - Cancel Line


^

mnLastLineNumberXTLNMATH_NUMERICNONENONE


This element contains the last line number of the record that was writtem to the workfile/ cache. 

This gets incremented by 1 for a new line

^

mnOrderNumberDOCOMATH_NUMERICNONENONE

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.

szOrderTypeDCTOcharNONENONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szOrderCompanyKCOOcharNONENONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szOrderSuffixSFXOcharNONENONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

mnOrderLineNumberLNIDMATH_NUMERICNONENONE

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.

mnReceiptLineNumberNLINMATH_NUMERICNONENONE

A number representing the number of lines on either a purchase or sales order. or The number of receivers recorded during the receipts 
process.  This field will be used in Voucher Matching.

szItemNumberUITMcharNONENONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

szFlashMessageFLSHcharNONENONE

The Flash Message field is the 40-character description which comes from User Defined Codes (System code = '00', Record type = 'CM') 
and indicates the credit status of the customer.

szDescription1DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szDescription2DSC2charNONENONE

A second, 30-character description, remark, or explanation.

szAccountNumberANIcharNONENONE


Mandatory input if creating a new order line at match i.e. Match processing Flag of '4'.

^

szSubledgerSBLcharNONENONE

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.

cSubledgerTypeSBLTcharNONENONE

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  

szPayableGlOffsetGLCcharNONENONE

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.

szPaymentHandlingCodeCRCcharNONENONE

A code that the system uses to sequence the printing of payments. Available values are in user defined table 00/HC.

cPayStatusPSTcharNONENONE

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.

szPaymentTermsPTCcharNONENONE

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

mnRetainagePCRMATH_NUMERICNONENONE

The whole dollar amount or percentage of the payment to be retained. When entering a percentage, enter % following the percentage to be 
withheld as retention. For example:   o  Enter 10% for 10% retention.   o  Enter 15% for 15% retention.

mnQuantitySelectedToMatchUOPNMATH_NUMERICNONENONE

The original quantity for the order detail line, plus or minus any changes to that quantity, minus all quantities shipped, received, and 
vouchered to date.

szTaxExplCodeEXR1charNONENONE

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.

szTaxRateAreaTXA1charNONENONE

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.

jdDateDueDDJJDEDATENONENONE

In Accounts Receivable, the date that the net payment is due. In Accounts Payable, the date that the payment is due to receive a discount 
or, if no discount is offered, the net due date. The system calculates the due date based on the payment term entered, or you can enter it 
manually. If you enter a negative voucher or invoice (debit or credit memo), the system might use the G/L date as the due date regardless of the 
payment term entered. A processing option in the master business function (P0400047 for vouchers and P03B0011 for invoices) controls how 
the system calculates the due date for debit and credit memos.

jdGLDateDGLJDEDATENONENONE

A date that identifies the financial period to which the transaction is to be posted.  The company constants specify the date range for each 
financial period. You can have as many as 14 periods. Generally, period 14 is used for audit adjustments. The system validates this field for 
PBCO (posted before cutoff), PYEB (prior year ending balance), PACO (post after cutoff), and WACO (post way after cutoff) messages.

szRemarkRMKcharNONENONE

A generic field that you use for a remark, description, name, or address.

szReportingCode007AC07charNONENONE

One of 30 reporting codes that you can assign to an address in the Address Book system. Category Code 07 is used in the 1099 process to 
identify the box on the 1099 form in which a voucher or pay item should be reported. Examples include: 01 Rents 13 Nontaxable 
distributions 61  Interest income A7  Nonemployee compensation

szAssetIDASIDcharNONENONE

A 25-character alphanumeric number that you can use as an alternate asset identification number. You might use this number to track 
assets by the manufacturer's serial number. You are not required to use a serial number to identify an asset. Every serial number that you enter 
must be unique.

cCurrencyProcessingFlagCRYRcharNONENONE


Significant Data Values


'Y' - Currency Processing ON - multiplier

'Z' - Currency Processing ON - divisor

'N' - Currency Processing OFF.

^

szTransactionCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szCompanyCurrencyCodeCRDCcharNONENONE

A code that identifies the domestic (base) currency of the company on a transaction. 

mnExchangeRateCRRMATH_NUMERICNONENONE

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. 

cCurrencyModeCRRMcharNONENONE


Significant Data Values


if Currency Processing is ON the acceptable values are:

'D' - Domestic Mode

'F' - Foreign Mode


If Currency Processing is OFF acceptable values are;

' ' or 'D' - Domestic Mode.

^

szUserIDUSERcharNONENONE

The code that identifies a user profile.

szCallingApplicationNamePIDcharNONENONE


Significant Data Values


Application calling this function

^

mnDomAmountToDistributeAGMATH_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.

szInvoiceNnumberVINVcharNONENONE

The supplier's invoice number that is used for voucher entry. Voucher entry allows only one invoice per voucher number. If multiple invoice 
numbers exist on a voucher, you must set them up as multiple vouchers or combine the invoices and enter them as one voucher. Depending 
on how you have your accounts payable constants set, the system can do one of the following:   o  Accept a duplicate invoice number 
without warning or error   o  Generate a warning message in which the duplicate invoice number can still be accepted   o  Generate an error 
message Blank values are treated in the same manner as any other invoice number. Two blank invoice numbers are treated as duplicates. To test 
for duplicate invoice numbers that might have been entered in error, run the Suspected Duplicate Payments report (R04601). Note: The 
duplicate invoice number validation is not run for vouchers with document type NO. These vouchers are created by the Generate Reimbursements 
program (R03B610).

szGLBankAccountBANIcharNONENONE

Field that identifies the banck account number in the general ledger.  You can use one of the following formats of account numbers:    1   
Structured account (business unit.object.subsidiary)    2   25-digit unstructured number    3   8-digit short account ID number    4   Speed code The 
first character of the account indicates the format of the account number. You define the account format in the General Accounting Constants 
program (P000909).

mnDomAmtSelectedToMatchAAPMATH_NUMERICNONENONE

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

mnDomDiscountAvailableADSCMATH_NUMERICNONENONE

The amount of the invoice or voucher pay item that is eligible to be subtracted from the gross amount when the transaction is paid. The 
system calculates discount amounts based on the payment term entered on the transaction.  Note: If the system calculates the discount, verify 
that it applies to the pay item specified. Usually, freight, sales tax, and labor charges that are included in the gross amount do not qualify for 
discounts.

mnDomTaxAmountSTAMMATH_NUMERICNONENONE

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

mnDomGrossAmountAGMATH_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.

mnDomTaxableAmountATXAMATH_NUMERICNONENONE

The amount on which taxes are assessed.

mnForeignTaxableAmountCTAMMATH_NUMERICNONENONE

The tax amount in foreign currency.  This can be the sales, use, or VAT tax. 

mnForAmtSelectedToMatchFAPTMATH_NUMERICNONENONE

Amount - Foreign Amount Paid to Date The amount, expressed in foreign currency, that is paid to date on an invoice or voucher.

mnForeignTaxAmountCTAMMATH_NUMERICNONENONE

The tax amount in foreign currency.  This can be the sales, use, or VAT tax. 

mnForeignDiscountAvailableCDSMATH_NUMERICNONENONE

The foreign amount of the discount available as opposed to the amount of the discount actually taken.

jdDiscountDueDateDDNJJDEDATENONENONE

In the Accounts Receivable system, the date that the invoice must be paid to receive the discount. The system calculates the discount due 
date based on the payment term. If the payment term does not specify a discount, the system completes this field with the net due date. In the 
Accounts Payable system, the date that the voucher is due.

szSupplierRemarkVRMKcharNONENONE

A free-form field in which you can enter any pertinent information.

mnPayeeAddressNumberPYEMATH_NUMERICNONENONE

The address book number of the recipient of the payment.

szSupplierItemNumberCITMcharNONENONE

The cross-reference item number that the system assigns to an item number. A cross-reference number allows you to use a supplier's item 
number if it is different from your own item number when you are processing an order or printing.

mnSupplierNumberAN8MATH_NUMERICNONENONE

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

mnReceiptDocumentNumberDOCMATH_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.

szReceiptDocumentTypeDCTcharNONENONE

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 

szReceiptDocumentCompanyKCOcharNONENONE

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.

cPurchasingTaxableYNTXcharNONENONE


Significant Data Values


'Y' - Order Line is taxable.

'N' - Order line is NOT taxable

^

mnForGrossAmountACRMATH_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.

mnForAmountToDistributeACRMATH_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.

mnPSTTaxAmountSTAMMATH_NUMERICNONENONE

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

cVoucherLoggingEV02charNONENONE


Significant Data Values


'0' - No Redistribution.

'1' - Function called to redistribute logged voucher to Order.


^

mnRetainageAmountRETAMATH_NUMERICNONENONE

The total amount held back (referred to as holdback in some countries) on the contract amount. The amount retained cannot be less than 
zero or greater than the amount to voucher.

cRetainagePercentORAmtFlagEV03charNONENONE


Significant Data Values


'1' - Retainage Value Entered is a Percentage value of the Amount select To Match.


'0' - Retainage value entered is the amount to retain off the amount selected to match.

^

mnTaxOnRetainageRETTMATH_NUMERICNONENONE

The total amount of Deferred Tax on Retainage being retained.

mnTaxOnRetainageForeignREFTMATH_NUMERICNONENONE

cOutstandingLogsExistEV04charNONENONE


Significant Data Values


'1' - Outstanding Logs exist

'0' - No outstanding logs.

^

mnRetainagePercentPCRTMATH_NUMERICNONENONE

The rate of retainage (referred to as holdback in some countries) that applies to the contract. This rate is a percentage of each payment. It 
is expressed as a decimal fraction. For example, a retainage rate of 10% is expressed as 10. The retainage rate cannot be greater than 
99.9% (.999) or less than zero.

mnPrevRetainedAmtRETAMATH_NUMERICNONENONE

The total amount held back (referred to as holdback in some countries) on the contract amount. The amount retained cannot be less than 
zero or greater than the amount to voucher.

mnPrevRetainedAmtForeignREFAMATH_NUMERICNONENONE

The total foreign amount of Retainage being retained.

mnReleaseRetainageAmtRETAMATH_NUMERICNONENONE

The total amount held back (referred to as holdback in some countries) on the contract amount. The amount retained cannot be less than 
zero or greater than the amount to voucher.

cTaxAmtEnteredFlagBCT1charOPTNONE

An option that specifies whether the system performs Not-To-Exceed (NTE) processing for Contract Billing. Turn on this option to perform 
NTE processing.

szBusinessUnitOMCUcharOPTNONE

The business unit from an account number.  The account number business unit is usually found in the data item MCU, however, Distribution 
systems use the field MCU as the branch.

szObjectAccountOBJcharOPTNONE

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.

szSubsidiarySUBcharOPTNONE

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

mnForPSTTaxAmountCTAMMATH_NUMERICOPTNONE

The tax amount in foreign currency.  This can be the sales, use, or VAT tax. 

mnForRetainageAmountREFAMATH_NUMERICOPTNONE

The total foreign amount of Retainage being retained.

mnForReleaseRetainageAmtREFAMATH_NUMERICOPTNONE

The total foreign amount of Retainage being retained.

mnTriangulationRateFromCurrencTRR1MATH_NUMERICOPTNONE

The triangulation currency rate used to convert the From currency code to the Triangulation currency code.

mnTriangulationRateToCurrencyTRR2MATH_NUMERICOPTNONE

The triangulation currency rate that used to convert from the Triangulation currency code to the To currency code.

cCurrencyConversionMethodCRCMcharOPTNONE

A value that specifies which method to use when converting from one currency to another. Valid values are:  Y  Multiplier method. The 
system multiplies the foreign amount by the multiplier exchange rate to calculate the domestic amount. Z Divisor method. The system divides the 
foreign amount by the divisor exchange rate to calculate the domestic amount.

jdDateEffectiveRatesEFTJDEDATEOPTNONE

The date that identifies when a date is first valid. The effective date is used generically. It can be a lease effective date, a price or cost 
effective date, a currency effective date, a tax rate effective date, or whatever is appropriate.

mnPurchasingUnitPricePRRCMATH_NUMERICOPTNONE

The unit cost of one item, as purchased from the supplier, excluding freight,taxes, discounts, and other factors that might modify the actual 
unit cost you record when you receive the item.

mnForeignPurchasingCostFRRCMATH_NUMERICOPTNONE

The foreign unit cost for this item, as purchased directly from the supplier,excluding freight, taxes, discounts and other factors which might 
serve to modify the actual unit cost we record at the time of physical receipt of goods.

szManagerialAnalysisCode1ABR1charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType1ABT1charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szManagerialAnalysisCode2ABR2charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType2ABT2charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szManagerialAnalysisCode3ABR3charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType3ABT3charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szManagerialAnalysisCode4ABR4charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType4ABT4charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

mnPOProcessIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnPOTransactionIDTCIDMATH_NUMERICOPTNONE

cFlagFor1099TNNcharOPTNONE

A code that indicates whether to include the pay item in 1099 processing (A/P Ledger method only). Valid values are: Blank  Do not include in 
1099 processing. 1        Include in 1099 processing. If you use the G/L method of 1099 processing, do not flag vouchers with distribution entries 
to G/L accounts that use Automatic Accounting Instruction (AAI) ranges for PX; these vouchers will be included automatically in the G/L 
method of 1099 processing.

mnTransUniqueKeyUK01MATH_NUMERICOPTNONE

This field is a unique number used to identify a record in a file.

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. 

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.

szDocTypeDCTVcharOPTNONE

A user defined (system 00, type DV) document type for voucher entry. Any document type set up for voucher-only entry should begin with 
the letter P (payables). Reserved document types have been defined for vouchers, invoices,receipts, and time sheets. The reserved 
document types are:    P_   Accounts Payable Documents    R_   Accounts Receivable Documents    T_   Payroll Documents    I_   Inventory Documents  
  O_   Order Processing Documents  NOTE: For voucher entry, if you are using document type DV, you must also set up document type DT 
in user defined codes.

szDocumentCompanyKCOcharOPTNONE

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.

jdDateInvoiceDIJDEDATEOPTNONE

The date of the invoice. This can be either the date of the supplier's invoice to you or the date of your invoice to a customer.

mnCurrentPaymentForeignPYFOMATH_NUMERICOPTNONE

The Current Payment - Foreign, combined with the Type of Payment, determines how the line's amount to voucher.   The system will 
populate the amount to voucher in the appropriate field for the line, i.e., Foreign Amount to Voucher or Retainage to Release Foreign.   If the Type of 
Payment is blank, enter the incremental amount to voucher in the Current Payment.   If the Type of Payment is 1, enter the cumulative 
percentage to be vouchered, e.g., 10 for 10%. If the Type of Payment is 2, enter the cumulative amount to be vouchered.

mnCurrentPaymentDomesticPYDOMATH_NUMERICOPTNONE

The Current Payment, combined with the Type of Payment, determines how the line's amount to voucher.   The system will populate the 
amount to voucher in the appropriate field for the line, i.e., Amount to Voucher, Foreign Amount to Voucher, Retainage to Release, or Retainage 
to Release Foreign.   If the Type of Payment is blank, enter the incremental amount to voucher in the Current Payment.   If the Type of 
Payment is 1, enter the cumulative percentage to be vouchered, e.g., 10 for 10%. If the Type of Payment is 2, enter the cumulative amount to be 
vouchered.

cTypeOfPaymentTPMTcharOPTNONE

Type of Payment determines how the line's amount to voucher is calculated when the user enters the Current Payment or Current Payment 
Foreign.   The system will populate the amount to voucher in the appropriate field for the line, i.e., Amount to Voucher, Foreign Amount to 
Voucher, Retainage to Release, or Retainage to Release Foreign.  Valid values for Type of Payment are: Blank  - Incremental Amount.  The 
Current Payment will be entered as an amount, and the system will populate this amount in the amount to voucher.  1  - Cumulative Percentage.  
The Current Payment will be entered as a percentage, e.g., 10 for 10 percent.   A cumulative amount will be calculated from the cumulative 
percentage multiplied by the order amount.  The amount to voucher will be calculated from the cumulative payment less the previous amount 
vouchered.   2 - Cumulative Amount.  The Current Payment will be entered as an amount.  The amount to voucher will be calculated from the 
cumulative amount less the previous amount vouchered.  

cOverExceedThreshold_EV01EV01charOPTNONE

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

mnOriginalQtyToVoucherUOPNMATH_NUMERICOPTNONE

The original quantity for the order detail line, plus or minus any changes to that quantity, minus all quantities shipped, received, and 
vouchered to date.

mnOriginalAmtToVoucherAAPMATH_NUMERICOPTNONE

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

mnOriginalForAmtToVoucherFAPTMATH_NUMERICOPTNONE

Amount - Foreign Amount Paid to Date The amount, expressed in foreign currency, that is paid to date on an invoice or voucher.

mnOriginalRetainedAmtRETAMATH_NUMERICOPTNONE

The total amount held back (referred to as holdback in some countries) on the contract amount. The amount retained cannot be less than 
zero or greater than the amount to voucher.

mnOriginalRetToReleaseRETAMATH_NUMERICOPTNONE

The total amount held back (referred to as holdback in some countries) on the contract amount. The amount retained cannot be less than 
zero or greater than the amount to voucher.

mnOriginalRetainedAmtForREFAMATH_NUMERICOPTNONE

The total foreign amount of Retainage being retained.

mnOriginalRetToReleaseForREFAMATH_NUMERICOPTNONE

The total foreign amount of Retainage being retained.

mnOriginalDefTaxOnRetainRETTMATH_NUMERICOPTNONE

The total amount of Deferred Tax on Retainage being retained.

mnOriginalForDefTaxOnRetainREFTMATH_NUMERICOPTNONE

mnOriginalPercentRetainedPCRTMATH_NUMERICOPTNONE

The rate of retainage (referred to as holdback in some countries) that applies to the contract. This rate is a percentage of each payment. It 
is expressed as a decimal fraction. For example, a retainage rate of 10% is expressed as 10. The retainage rate cannot be greater than 
99.9% (.999) or less than zero.

cPreviousOPMAPRcharOPTNONE

A code that is an internally used control field for the processing of vouchers in One World. Valid values are:    1   Match Quantity/Amount    4   
Create New Order Line    7   Match and Close Balance    9   Cancel Balance of Line 

mnPreviousQtyToVoucherUOPNMATH_NUMERICOPTNONE

The original quantity for the order detail line, plus or minus any changes to that quantity, minus all quantities shipped, received, and 
vouchered to date.

mnPreviousCurrentPaymentPYDOMATH_NUMERICOPTNONE

The Current Payment, combined with the Type of Payment, determines how the line's amount to voucher.   The system will populate the 
amount to voucher in the appropriate field for the line, i.e., Amount to Voucher, Foreign Amount to Voucher, Retainage to Release, or Retainage 
to Release Foreign.   If the Type of Payment is blank, enter the incremental amount to voucher in the Current Payment.   If the Type of 
Payment is 1, enter the cumulative percentage to be vouchered, e.g., 10 for 10%. If the Type of Payment is 2, enter the cumulative amount to be 
vouchered.

mnPreviousCurrentPaymentForPYFOMATH_NUMERICOPTNONE

The Current Payment - Foreign, combined with the Type of Payment, determines how the line's amount to voucher.   The system will 
populate the amount to voucher in the appropriate field for the line, i.e., Foreign Amount to Voucher or Retainage to Release Foreign.   If the Type of 
Payment is blank, enter the incremental amount to voucher in the Current Payment.   If the Type of Payment is 1, enter the cumulative 
percentage to be vouchered, e.g., 10 for 10%. If the Type of Payment is 2, enter the cumulative amount to be vouchered.

cManualHideQtyAmt_EV01EV01charOPTNONE

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

cMultipleAccountsMACTcharOPTNONE

This code indicates whether the expense on the detail line has been distributed to multiple accounts.

Related Functions

B0000009 Get Next Journal Entry Line Number
B0000019 Calculate Tax Authority Tax Amts
B0000027 CurrencyConvForAndDom
B0000032 RetrieveCurrencyConvFlag
B0000033 Get Exchange Rate
B0000055 ValidateAAICompletely
B0000130 Retrieve Company From Business Unit
B0400047 Voucher Entry Master Business Function
B0900049 Journal Entry
B0900085 Retrieve Ptr To F0911 Record
B1100006 Decimal Trigger Get By Currency
B4000150 Get Branch Constants
B4000260 Line Type - Activity Rules
B4000350 Retrieve Distribution AAI
B4000520 Get Item UoM Conversion Factor
B4000530 Get Distribution Constants
B4000940 Calculate Qty on hand for Inventory Cost Level
B4001040 Get Item Master Description UOM
B4002000 Compute Unit Or Extended Amount
B4100040 Write Cardex Record
B4100210 Check Item Branch
B4300030 Edit Purchasing Tolerance Rules
B4300060 Get Purchasing Instructions
B4300110 Get Purchase Order Detail
B4300130 Get Purchase Order Header
B4300330 Update PO Next Status
B4300370 Get Purchase Order Receipt
B4301410 Maintain Purchasing Parms Cache
B4301420 Retrieve Outstanding Logs
B4302090 Compute/Write COGS Variance
N0400121 F0411 Redistribution
N7000190 XT4314ZN - Plug & Play - 43B
X4181 Average Cost Update
XF4105 Item Cost I/O
XT4311Z1 Purchase Order Entry
XX0901 Validate Account Number

Related Tables

F4301 Purchase Order Header
F4311T Purchase Order Detail Tag File
F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File
F4314Z Voucher Match Selection File
F4314EndDoc

F4314EndDoc

Voucher Match

Master Business Function

Object Name: XT4314ZN

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose


This function is called to process the different caches that are used to update their respective live 

files.



Setup Notes and Prerequisites


F4314EditDoc has to be executed prior to calling this function.


Special Logic


Technical Specification


The F0411FSEndDoc (B0400047) is called to process the F0411 records.

The F0911FSEndDoc (B0900049) is called to process the F0911 records.

The F4311EndDoc (XT4311Z1) is called tp process the F4311 records if apllicable (i.e. we are adding a 

new line at teh time we are creating a voucher).


1.1.1General Flow of Processing


1.Initialization and Validation
2.Process Voucher

3.Process GL Entries

4.Process New Purchase Order Lines

5.Read Voucher Match Work File

• 

Three Way Match
- Update 'Type 1' record
- Write 'Type 2' record

• 
Two Way Match
- Update PO
- Write 'Type 2' record

- Update PO Status

• 
Update Supplier/Item Relationships
• Cost Update (08)
• Average Cost Update (02)


Data Structure

DXT4314ZD - F4314 End Doc

Functional Description

Purpose


This function is called to process the different caches that are used to update their respective live 
files.



Setup Notes and Prerequisites


F4314EditDoc has to be executed prior to calling this function.

Special Logic


Technical Specification


The F0411FSEndDoc (B0400047) is called to process the F0411 records.

The F0911FSEndDoc (B0900049) is called to process the F0911 records.

The F4311EndDoc (XT4311Z1) is called tp process the F4311 records if apllicable (i.e. we are adding a 

new line at teh time we are creating a voucher).


1.1.1General Flow of Processing


1.Initialization and Validation

2.Process Voucher

3.Process GL Entries

4.Process New Purchase Order Lines

5.Read Voucher Match Work File

• Three Way Match
- Update 'Type 1' record
- Write 'Type 2' record

• Two Way Match
- Update PO
- Write 'Type 2' record

- Update PO Status

• Update Supplier/Item Relationships
• Cost Update (08)
• Average Cost Update (02)



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAPJobNumberJOBSMATH_NUMERICNONENONE

Cannot be zero. value obtained after calling F4314BeginDoc
^

mnGLJobNumberJOBSMATH_NUMERICNONENONE

Cannot be zero. value obtained after calling F4314BeginDoc

^

mnPOJobNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDCTIDcharNONENONE

Cannot be blank.
^

cDocumentActionACTNcharNONENONE


Significant Data Values


'A' or '1' - Add Mode.

'D' or '4' - Delete Mode.

^

cCurrencyProcessingFlagCRYRcharNONENONE


Significant Data Values


'Y' - Currency Processing ON - multiplier.

'Z' - Currency Processing ON - Divisor.

'N' - Currency Processing OFF.

^

szVMePrOptVersionVERScharNONENONE


Defaults to "ZJDE0001" if left blank.

^

szAPPrOptVersionVERScharNONENONE


Defaults to "ZJDE0001" if left blank.

^

szGLPrOptVersionVERScharNONENONE


Defaults to "ZJDE0001" if left blank.

^

szPOPrOptVersionVERScharNONENONE


Defaults to "ZJDE0001" if left blank.

^

mnDocumentNumberDOCMATH_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 

mnBatchNumberICUMATH_NUMERICNONENONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

szBatchTypeICUTcharNONENONE

A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction. 
Valid values are set up in user defined code table 98/IT. You cannot assign new values. All batch types are hard coded.

jdBatchDateDICJJDEDATENONENONE

The date of the batch. If you leave this field blank, the system date is used.

cBatchStatusISTcharNONENONE

A user defined code (98/IC) that indicates the posting status of a batch. Valid values are: Blank    Unposted batches that are pending 
approval or have a status of approved. A        Approved for posting. The batch has no errors, and is in balance, but has not yet been posted. D       
Posted. The batch posted successfully. E        Error. The batch is in error. You must correct the batch before it can post. P        Posting. The system 
is in the process of posting the batch to the general ledger. The batch is unavailable until the posting process is complete. If errors occur 
during the post, the batch status changes to E (error). U        In use. The batch is temporarily unavailable because someone is working with it, or 
the batch appears to be in use because a power failure occurred while the batch was open.

mnGrossDocumentAmountAGMATH_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.

szUserIDUSERcharNONENONE

The code that identifies a user profile.

szCallingApplicationNamePGMcharNONENONE

The name of an executable program.

szDocumentCompanyKCOcharNONENONE

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.

szCompanyCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

cVoucherLoggingEV02charNONENONE


Significant Data Values


'1' - If Redistributing a logged voucher to an order.

'0' - No Redistribution.

^

cCostManagementFlagEV03charOPTNONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

Related Functions

B0000009 Get Next Journal Entry Line Number
B0000019 Calculate Tax Authority Tax Amts
B0000027 CurrencyConvForAndDom
B0000032 RetrieveCurrencyConvFlag
B0000033 Get Exchange Rate
B0000055 ValidateAAICompletely
B0000130 Retrieve Company From Business Unit
B0400047 Voucher Entry Master Business Function
B0900049 Journal Entry
B0900085 Retrieve Ptr To F0911 Record
B1100006 Decimal Trigger Get By Currency
B4000150 Get Branch Constants
B4000260 Line Type - Activity Rules
B4000350 Retrieve Distribution AAI
B4000520 Get Item UoM Conversion Factor
B4000530 Get Distribution Constants
B4000940 Calculate Qty on hand for Inventory Cost Level
B4001040 Get Item Master Description UOM
B4002000 Compute Unit Or Extended Amount
B4100040 Write Cardex Record
B4100210 Check Item Branch
B4300030 Edit Purchasing Tolerance Rules
B4300060 Get Purchasing Instructions
B4300110 Get Purchase Order Detail
B4300130 Get Purchase Order Header
B4300330 Update PO Next Status
B4300370 Get Purchase Order Receipt
B4301410 Maintain Purchasing Parms Cache
B4301420 Retrieve Outstanding Logs
B4302090 Compute/Write COGS Variance
N0400121 F0411 Redistribution
N7000190 XT4314ZN - Plug & Play - 43B
X4181 Average Cost Update
XF4105 Item Cost I/O
XT4311Z1 Purchase Order Entry
XX0901 Validate Account Number

Related Tables

F4301 Purchase Order Header
F4311T Purchase Order Detail Tag File
F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File
F4314Z Voucher Match Selection File
F4314OffloadCacheToGrid

F4314OffloadCacheToGrid

Voucher Match

Master Business Function

Object Name: XT4314ZN

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose


This function is called to retrieve all the fields from the cache for display purposes.


This is used to simulate the retrieval of values using a view based on a table. 


Once the user selects an order line to match ( 2/ 3 way match) F4314EditLine is called and record are 

written to the hF4314Cache. Then the user is taken to a headerless detail screen where the amounts, 

taxes, and other fieids can be changed prior to creating the voucher. Since a business view cannot be 

associated to a cache we have to retrieve the record from the cache using this function and insert the 

values into the grid of the headerless detail form for the user to view and change as neccessary.


Setup Notes and Prerequisites


F4314EditLine has to be called prior to calling this so that at least one record will be in the 
cache.


Special Logic




Technical Specification


Detail Flow of Processing


if MoreRecordsExist is NOT '1'


/* This is the first record fetched

INT_hF4314Zcursor = NULL

Open the Cache cursor and assign it to hF4314Zcursor


Fetch first record pointed to by the cursor using the key

PNCTID

PNJOBS

ELSE

/*A fetch had already been performed, therefore retrieve next record

INT_hF4314ZCursor = idhF4314ZCursor
Fetch the record pointed to by cursor.

/* If in either case above a record has been fetched then copy all the values to the parameter data structure to be passed out to the calling 

application/ function.


szUnknownItemNumber
<-F4314Z.PNUITM
szUnitOfMeasure
<-F4314Z.PNUOM
szDescription1
<-F4314Z.PNDSC1
szDescription2
<-F4314Z.PNDSC2
szExpenseAccount
<-F4314Z.PNANI
szSubledger
<-F4314Z.PNSBL
szOrderType
<-F4314Z.PNDCTO
szOrderCompany
<-F4314Z.PNKCOO
szDocumentType
<-F4314Z.PNDCT
szDocumentCompany
<-F4314Z.PNKCO
szTaxExplanationCode
<-F4314Z.PNEXR1
szTaxRateArea
<-F4314Z.PNTXA1
szSupplierItemNumber
<-F4314Z.PNCITM
szAssetID
<-F4314Z.PNASID
szPaymentTermsCode
<-F4314Z.PNPTC
szHoldCode
<-F4314Z.PNCRC
szSupplierRemark
<-F4314Z.PNVRMK
szBankAccountNumber
<-F4314Z.PNBANI
szGLClass
<-F4314Z.PNGLC
szCheckRemark
<-F4314Z.PNRMK
szReportCode007
<-F4314Z.PNAC07
szFlashMessageText
<-F4314Z.PNFLSH

mnSupplier
<-F4314Z.PNAN8
mnQuantityOpen
<-F4314Z.PNUPTD
mnAmountOpen
<-F4314Z.PNAPTD
mnAmountForeignOpen
<-F4314Z.PNFAPT
mnOrderNumber
<-F4314Z.PNDOCO
mnLineNumber
<-F4314Z.PNLNID
mnReceiptLineNumber
<-F4314Z.PNNLIN
mnDocumentNumber
<-F4314Z.PNDOC
mnPayeeAddressNumber
<-F4314Z.PNPYE
mnTax
<-F4314Z.PNSTA1
mnAmountTaxable
<-F4314Z.PNATXA
mnAmtDiscountAvailable
<-F4314Z.PNADSC
mnForeignTaxAmount
<-F4314Z.PNCTAM
mnForeignTaxableAmount
<-F4314Z.PNCTXA
mnForeignDiscountAvail
<-F4314Z.PNCDS
mnDomAmountGross
<-F4314Z.PNAG
mnDomAmountToDistribute
<-F4314Z.PNATAD
mnForGrossAmount
<-F4314Z.PNACR
mnForAmountToDistribute
<-F4314Z.PNCTAD
mnTransactionLineNumber
<-F4314Z.PNXTLN
mnAmtTax2
<-F4314Z.PNSTAM

cMatchProcessing
<-F4314Z.PNMAPR
cSubledgerType
<-F4314Z.PNSBLT
cTaxableYN
<-F4314Z.PNTX
cPayStatusCode
<-F4314Z.PNPST
cFlagFor1099
<-F4314Z.PNTNN
cMatchType
<-F4314Z.PNMATC
cActionCode
<-F4314Z.PNACTN

jdDateDue
<-F4314Z.PNDDJ
jdDateDiscountDue
<-F4314Z.PNDDNJ

cMoreRecordsExist
<-'1'

idhF4314ZCursor 
<-INT_ hF4314ZCursor

/*if a record was not found in the cache

cMoreRecordsExist<-'0'
idhF4314ZCursor
<-NULL
Close the cursor to the Cache.


^

Data Structure

DXT4314ZI - F4314 Offload Cache to Grid

Functional Description

Purpose


This function is called to retrieve all the fields from the cache for display purposes.


This is used to simulate the retrieval of values using a view based on a table. 


Once the user selects an order line to match ( 2/ 3 way match) F4314EditLine is called and record are 

written to the hF4314Cache. Then the user is taken to a headerless detail screen where the amounts, 

taxes, and other fieids can be changed prior to creating the voucher. Since a business view cannot be 

associated to a cache we have to retrieve the record from the cache using this function and insert the 

values into the grid of the headerless detail form for the user to view and change as neccessary.


Setup Notes and Prerequisites


F4314EditLine has to be called prior to calling this so that at least one record will be in the 
cache.


Special Logic




Technical Specification


Detail Flow of Processing


if MoreRecordsExist is NOT '1'


/* This is the first record fetched

INT_hF4314Zcursor = NULL

Open the Cache cursor and assign it to hF4314Zcursor


Fetch first record pointed to by the cursor using the key

PNCTID

PNJOBS

ELSE

/*A fetch had already been performed, therefore retrieve next record

INT_hF4314ZCursor = idhF4314ZCursor
Fetch the record pointed to by cursor.

/* If in either case above a record has been fetched then copy all the values to the parameter data structure to be passed out to the calling 

application/ function.


szUnknownItemNumber
<-F4314Z.PNUITM
szUnitOfMeasure
<-F4314Z.PNUOM
szDescription1
<-F4314Z.PNDSC1
szDescription2
<-F4314Z.PNDSC2
szExpenseAccount
<-F4314Z.PNANI
szSubledger
<-F4314Z.PNSBL
szOrderType
<-F4314Z.PNDCTO
szOrderCompany
<-F4314Z.PNKCOO
szDocumentType
<-F4314Z.PNDCT
szDocumentCompany
<-F4314Z.PNKCO
szTaxExplanationCode
<-F4314Z.PNEXR1
szTaxRateArea
<-F4314Z.PNTXA1
szSupplierItemNumber
<-F4314Z.PNCITM
szAssetID
<-F4314Z.PNASID
szPaymentTermsCode
<-F4314Z.PNPTC
szHoldCode
<-F4314Z.PNCRC
szSupplierRemark
<-F4314Z.PNVRMK
szBankAccountNumber
<-F4314Z.PNBANI
szGLClass
<-F4314Z.PNGLC
szCheckRemark
<-F4314Z.PNRMK
szReportCode007
<-F4314Z.PNAC07
szFlashMessageText
<-F4314Z.PNFLSH

mnSupplier
<-F4314Z.PNAN8
mnQuantityOpen
<-F4314Z.PNUPTD
mnAmountOpen
<-F4314Z.PNAPTD
mnAmountForeignOpen
<-F4314Z.PNFAPT
mnOrderNumber
<-F4314Z.PNDOCO
mnLineNumber
<-F4314Z.PNLNID
mnReceiptLineNumber
<-F4314Z.PNNLIN
mnDocumentNumber
<-F4314Z.PNDOC
mnPayeeAddressNumber
<-F4314Z.PNPYE
mnTax
<-F4314Z.PNSTA1
mnAmountTaxable
<-F4314Z.PNATXA
mnAmtDiscountAvailable
<-F4314Z.PNADSC
mnForeignTaxAmount
<-F4314Z.PNCTAM
mnForeignTaxableAmount
<-F4314Z.PNCTXA
mnForeignDiscountAvail
<-F4314Z.PNCDS
mnDomAmountGross
<-F4314Z.PNAG
mnDomAmountToDistribute
<-F4314Z.PNATAD
mnForGrossAmount
<-F4314Z.PNACR
mnForAmountToDistribute
<-F4314Z.PNCTAD
mnTransactionLineNumber
<-F4314Z.PNXTLN
mnAmtTax2
<-F4314Z.PNSTAM

cMatchProcessing
<-F4314Z.PNMAPR
cSubledgerType
<-F4314Z.PNSBLT
cTaxableYN
<-F4314Z.PNTX
cPayStatusCode
<-F4314Z.PNPST
cFlagFor1099
<-F4314Z.PNTNN
cMatchType
<-F4314Z.PNMATC
cActionCode
<-F4314Z.PNACTN

jdDateDue
<-F4314Z.PNDDJ
jdDateDiscountDue
<-F4314Z.PNDDNJ

cMoreRecordsExist
<-'1'

idhF4314ZCursor 
<-INT_ hF4314ZCursor

/*if a record was not found in the cache

cMoreRecordsExist<-'0'
idhF4314ZCursor
<-NULL
Close the cursor to the Cache.



^

Parameter NameData ItemData TypeReq/OptI/O/Both
cMatchProcessingMAPRcharNONENONE


Significant Data Values


'1' - Match Quantity/ Amount for Order Line.

'4' - Create new non stock order line.

'7' - Match and close balance of Order Line.

'9' - Cancel Order Line.

^

szUnknownItemNumberUITMcharNONENONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

mnSupplierAN8MATH_NUMERICNONENONE

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

mnQuantityOpenUPTDMATH_NUMERICNONENONE

The units paid to date on an invoice or voucher.

szUnitOfMeasureUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

mnAmountOpenAPTDMATH_NUMERICNONENONE

The amount paid to date on an invoice or voucher.

mnAmountForeignOpenFAPTMATH_NUMERICNONENONE

Amount - Foreign Amount Paid to Date The amount, expressed in foreign currency, that is paid to date on an invoice or voucher.

jdDateDueDDJJDEDATENONENONE

In Accounts Receivable, the date that the net payment is due. In Accounts Payable, the date that the payment is due to receive a discount 
or, if no discount is offered, the net due date. The system calculates the due date based on the payment term entered, or you can enter it 
manually. If you enter a negative voucher or invoice (debit or credit memo), the system might use the G/L date as the due date regardless of the 
payment term entered. A processing option in the master business function (P0400047 for vouchers and P03B0011 for invoices) controls how 
the system calculates the due date for debit and credit memos.

szDescription1DSC1charNONENONE

Brief information about an item; a remark or an explanation.

szDescription2DSC2charNONENONE

A second, 30-character description, remark, or explanation.

szExpenseAccountANIcharNONENONE

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

szSubledgerSBLcharNONENONE

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.

cSubledgerTypeSBLTcharNONENONE

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  

mnOrderNumberDOCOMATH_NUMERICNONENONE

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.

szOrderTypeDCTOcharNONENONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szOrderCompanyKCOOcharNONENONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnLineNumberLNIDMATH_NUMERICNONENONE

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.

mnReceiptLineNumberNLINMATH_NUMERICNONENONE

A number representing the number of lines on either a purchase or sales order. or The number of receivers recorded during the receipts 
process.  This field will be used in Voucher Matching.

mnDocumentNumberDOCMATH_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 

szDocumentCompanyKCOcharNONENONE

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.

cTaxableYNTXcharNONENONE


Significant Data Values


'Y' - Order Line is taxable.

'N' - Order Line is not taxable

^

szTaxExplanationCodeEXR1charNONENONE

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.

szTaxRateAreaTXA1charNONENONE

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.

szSupplierItemNumberCITMcharNONENONE

The cross-reference item number that the system assigns to an item number. A cross-reference number allows you to use a supplier's item 
number if it is different from your own item number when you are processing an order or printing.

szAssetIDASIDcharNONENONE

A 25-character alphanumeric number that you can use as an alternate asset identification number. You might use this number to track 
assets by the manufacturer's serial number. You are not required to use a serial number to identify an asset. Every serial number that you enter 
must be unique.

szPaymentTermsCodePTCcharNONENONE

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

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.

szHoldCodeCRCcharNONENONE

A code that the system uses to sequence the printing of payments. Available values are in user defined table 00/HC.

mnPayeeAddressNumberPYEMATH_NUMERICNONENONE

The address book number of the recipient of the payment.

szSupplierRemarkVRMKcharNONENONE

A free-form field in which you can enter any pertinent information.

mnTaxSTA1MATH_NUMERICNONENONE

Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the first of five 
possible taxing authorities who may comprise the tax area.

mnAmountTaxableATXAMATH_NUMERICNONENONE

The amount on which taxes are assessed.

mnAmtDiscountAvailableADSCMATH_NUMERICNONENONE

The amount of the invoice or voucher pay item that is eligible to be subtracted from the gross amount when the transaction is paid. The 
system calculates discount amounts based on the payment term entered on the transaction.  Note: If the system calculates the discount, verify 
that it applies to the pay item specified. Usually, freight, sales tax, and labor charges that are included in the gross amount do not qualify for 
discounts.

mnForPSTTaxAmountCTAMMATH_NUMERICNONENONE

The tax amount in foreign currency.  This can be the sales, use, or VAT tax. 

mnForeignTaxableAmountCTXAMATH_NUMERICNONENONE

That portion of the sale that is subject to tax in foreign currency.

mnForeignDiscountAvailCDSMATH_NUMERICNONENONE

The foreign amount of the discount available as opposed to the amount of the discount actually taken.

jdDateDiscountDueDDNJJDEDATENONENONE

In the Accounts Receivable system, the date that the invoice must be paid to receive the discount. The system calculates the discount due 
date based on the payment term. If the payment term does not specify a discount, the system completes this field with the net due date. In the 
Accounts Payable system, the date that the voucher is due.

szBankAccountNumberBANIcharNONENONE

Field that identifies the banck account number in the general ledger.  You can use one of the following formats of account numbers:    1   
Structured account (business unit.object.subsidiary)    2   25-digit unstructured number    3   8-digit short account ID number    4   Speed code The 
first character of the account indicates the format of the account number. You define the account format in the General Accounting Constants 
program (P000909).

szGLClassAPCcharNONENONE

A code that determines the liability account in Accounts Payable that will be the offset when you post vouchers. This code might be 
alphanumeric, or it might match the object account of the account number in the general ledger. Use offset codes such as TRAD or OTHR as the 
exception to the trade account. If you leave this field blank during voucher entry, the system uses the default value from the supplier master 
record. Examples include: Blank  Trade Accounts Payable  TRAD or 4110   Trade Accounts Payable  OTHR or 4120  Other Accounts Payable 

szCheckRemarkRMKcharNONENONE

A generic field that you use for a remark, description, name, or address.

szReportCode007AC07charNONENONE

One of 30 reporting codes that you can assign to an address in the Address Book system. Category Code 07 is used in the 1099 process to 
identify the box on the 1099 form in which a voucher or pay item should be reported. Examples include: 01 Rents 13 Nontaxable 
distributions 61  Interest income A7  Nonemployee compensation

cFlagFor1099TNNcharNONENONE

A code that indicates whether to include the pay item in 1099 processing (A/P Ledger method only). Valid values are: Blank  Do not include in 
1099 processing. 1        Include in 1099 processing. If you use the G/L method of 1099 processing, do not flag vouchers with distribution entries 
to G/L accounts that use Automatic Accounting Instruction (AAI) ranges for PX; these vouchers will be included automatically in the G/L 
method of 1099 processing.

szFlashMessageTextFLSHcharNONENONE

The Flash Message field is the 40-character description which comes from User Defined Codes (System code = '00', Record type = 'CM') 
and indicates the credit status of the customer.

cMatchTypeMATCcharNONENONE


Significant Data Values


'2' - Match Order Line without receiving (2-way match).

'3' - Match Receipt Line (3 - way match).

^

mnDomAmountGrossAGMATH_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.

mnDomAmountToDistributeATADMATH_NUMERICNONENONE

The amount of the transaction that must be posted to the general ledger for the transaction to balance. Depending on the tax information 
provided, the value of this field might be different from the gross or taxable amount of the transaction.  For example, if you enter a voucher for the 
taxable amount of 1000 CAD using tax explanation C (sales plus VAT), and the tax rate area is set up for 7% VAT and 3% Sales, the system 
calculates the amount to distribute as 1, 030 CAD (1000 + 30).

mnForGrossAmountACRMATH_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.

mnForAmountToDistributeCTADMATH_NUMERICNONENONE

For a journal entry with VAT, this represents the amount to be expensed in foreign currency.

mnTransactionLineNumberXTLNMATH_NUMERICNONENONE

A line number designation within an item transaction.  This data field is only used to sequence the transaction for inquiry purposes.

cActionCodeACTNcharNONENONE


Significant Data Values


'A' or '1' - Add Mode.

'D' or '4' - Delete Mode.

^

mnPSTTaxAmountSTAMMATH_NUMERICNONENONE

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

mnJobnumberJOBSMATH_NUMERICNONENONE


Cannot be zero

^

szComputerIDCTIDcharNONENONE


Cannot be blank

^

cMoreRecordsExistEV01charNONENONE


Significant Data Values


'1' - more records exist in the cache, this value is passed 

      back into the application and passed into this function 

      again so that an attemp should be made to fetch the next 

      record.


'0' - The final record from the cache has been fetched and       there are no more records in the 

cache.


^

idhF4314ZCursorGENLNGIDNONENONE


Significant Data Values


NULL -  No records exist in the cache.


not NULL - a valid pointer/ address indicates that there are 

           more records in the cache. This value is passed 

           back and forth between the application and this 

           function. This cursor value is the one that keeps 

           track of the address of the next record to be 

           fetched.

^

mnOrderAmountAEXPMATH_NUMERICNONENONE

The number of units multiplied by the unit price.

szOrderSuffixSFXOcharNONENONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

mnOrderQuantityUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

szContractJobNumberOMCUcharNONENONE

The business unit from an account number.  The account number business unit is usually found in the data item MCU, however, Distribution 
systems use the field MCU as the branch.

szContractCostTypeOBJcharNONENONE

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.

szContractCostCodeSUBcharNONENONE

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

mnOrderAmountForeignFEAMATH_NUMERICNONENONE

The product of the foreign price times the number of units.

mnPreviousAmountRetainedRETAMATH_NUMERICNONENONE

The total amount held back (referred to as holdback in some countries) on the contract amount. The amount retained cannot be less than 
zero or greater than the amount to voucher.

mnDeferredTaxOnRetainageRETTMATH_NUMERICNONENONE

The total amount of Deferred Tax on Retainage being retained.

mnPreviousAmountRetainedForREFAMATH_NUMERICNONENONE

The total foreign amount of Retainage being retained.

mnDeferredTaxOnRetainageForREFTMATH_NUMERICNONENONE

mnPrevUnitsVoucheredUMATH_NUMERICNONENONE

The quantity of something that is identified by a unit of measure. For example, it can be the number of barrels, boxes, cubic yards, gallons, 
hours, and so on.

mnPrevAmountVoucheredAAMATH_NUMERICNONENONE

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. 

mnPrevAmountVoucheredForFAAMATH_NUMERICNONENONE

The actual amount.  Debits are always entered as plus (+) and credits are entered as minus (-).  You may enter decimals, dollar signs, and 
commas.  The amount field will be examined and any non-significant symbols will be removed.  Minus signs must be entered as a trailing 
figure. For example, the amount, 5,000.01,- would be interpreted as a credit for 5000.01.

mnAmtRetainedRETAMATH_NUMERICOPTNONE

The total amount held back (referred to as holdback in some countries) on the contract amount. The amount retained cannot be less than 
zero or greater than the amount to voucher.

mnForAmtRetainedREFAMATH_NUMERICOPTNONE

The total foreign amount of Retainage being retained.

cTaxAmtEnteredFlagBCT1charOPTNONE


Significant Data Values


'1' - Tax amount was entered/ overridden by the user. 

      Therefore do not let the AP MBF calculate it for us.

'0' - Tax amount will be calculated by the AP MBF.

^

mnForeignTaxAmountSTA2MATH_NUMERICOPTNONE

Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the second of five 
possible taxing authorities who may comprise the tax area.

cLandedCostCodeLANDcharOPTNONE

Indicates how a PO receiver record relates to landed cost. The following is a list of possible values:    blank The record is not related to 
landed cost.    1       The record has associated landed cost records.    2       The record is a landed cost record that is to be vouchered.    3       The 
record is a landed cost record that is not to be vouchered.

szManagerialAnalysisCode1ABR1charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType1ABT1charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szManagerialAnalysisCode2ABR2charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType2ABT2charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szManagerialAnalysisCode3ABR3charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType3ABT3charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szManagerialAnalysisCode4ABR4charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cManagerialAnalysisType4ABT4charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

mnRetainageToReleaseRTNPMATH_NUMERICOPTNONE

Retainage Amount through the last application or adjustment for a specific contract.

mnForRetainageToReleaseFTNPMATH_NUMERICOPTNONE

Retainage Amount through the last application or adjustment for a specific contract.

mnRetainagePercentPCRTMATH_NUMERICOPTNONE

The rate of retainage (referred to as holdback in some countries) that applies to the contract. This rate is a percentage of each payment. It 
is expressed as a decimal fraction. For example, a retainage rate of 10% is expressed as 10. The retainage rate cannot be greater than 
99.9% (.999) or less than zero.

mnFreightUniqueKeyUK01MATH_NUMERICOPTNONE

This field is a unique number used to identify a record in a file.

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. 

Related Functions

B0000009 Get Next Journal Entry Line Number
B0000019 Calculate Tax Authority Tax Amts
B0000027 CurrencyConvForAndDom
B0000032 RetrieveCurrencyConvFlag
B0000033 Get Exchange Rate
B0000055 ValidateAAICompletely
B0000130 Retrieve Company From Business Unit
B0400047 Voucher Entry Master Business Function
B0900049 Journal Entry
B0900085 Retrieve Ptr To F0911 Record
B1100006 Decimal Trigger Get By Currency
B4000150 Get Branch Constants
B4000260 Line Type - Activity Rules
B4000350 Retrieve Distribution AAI
B4000520 Get Item UoM Conversion Factor
B4000530 Get Distribution Constants
B4000940 Calculate Qty on hand for Inventory Cost Level
B4001040 Get Item Master Description UOM
B4002000 Compute Unit Or Extended Amount
B4100040 Write Cardex Record
B4100210 Check Item Branch
B4300030 Edit Purchasing Tolerance Rules
B4300060 Get Purchasing Instructions
B4300110 Get Purchase Order Detail
B4300130 Get Purchase Order Header
B4300330 Update PO Next Status
B4300370 Get Purchase Order Receipt
B4301410 Maintain Purchasing Parms Cache
B4301420 Retrieve Outstanding Logs
B4302090 Compute/Write COGS Variance
N0400121 F0411 Redistribution
N7000190 XT4314ZN - Plug & Play - 43B
X4181 Average Cost Update
XF4105 Item Cost I/O
XT4311Z1 Purchase Order Entry
XX0901 Validate Account Number

Related Tables

F4301 Purchase Order Header
F4311T Purchase Order Detail Tag File
F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File
F4314Z Voucher Match Selection File
:Times New Roman;font-size:10pt">
szOrderType
<-F4314Z.PNDCTO
szOrderCompany
<-F4314Z.PNKCOO
szDocumentType
<-F4314Z.PNDCT
szDocumentCompany
<-F4314Z.PNKCO
szTaxExplanationCode
<-F4314Z.PNEXR1
szTaxRateArea
<-F4314Z.PNTXA1
szSupplierItemNumber
<-F4314Z.PNCITM
szAssetID
<-F4314Z.PNASID
szPaymentTermsCode
<-F4314Z.PNPTC
szHoldCode
<-F4314Z.PNCRC
szSupplierRemark
<-F4314Z.PNVRMK
szBankAccountNumber
<-F4314Z.PNBANI
szGLClass
<-F4314Z.PNGLC
szCheckRemark
<-F4314Z.PNRMK
szReportCode007
<-F4314Z.PNAC07
szFlashMessageText
<-F4314Z.PNFLSH

mnSupplier
<-F4314Z.PNAN8
mnQuantityOpen
<-F4314Z.PNUPTD
mnAmountOpen
<-F4314Z.PNAPTD
mnAmountForeignOpen
<-F4314Z.PNFAPT
mnOrderNumber
<-F4314Z.PNDOCO
mnLineNumber
<-F4314Z.PNLNID
mnReceiptLineNumber
<-F4314Z.PNNLIN
mnDocumentNumber
<-F4314Z.PNDOC
mnPayeeAddressNumber
<-F4314Z.PNPYE
mnTax
<-F4314Z.PNSTA1
mnAmountTaxable
<-F4314Z.PNATXA
mnAmtDiscountAvailable
<-F4314Z.PNADSC
mnForeignTaxAmount
<-F4314Z.PNCTAM
mnForeignTaxableAmount
<-F4314Z.PNCTXA
mnForeignDiscountAvail
<-F4314Z.PNCDS
mnDomAmountGross
<-F4314Z.PNAG
mnDomAmountToDistribute
<-F4314Z.PNATAD
mnForGrossAmount
<-F4314Z.PNACR
mnForAmountToDistribute
<-F4314Z.P