Functional Description
Purpose
This function is used to add a cache entry for the account netting detail and it is part of the
Maintain Account Netting Detail Cache function (B03B0178). The Account Netting MBFN (N03B0176), which
maintains and updates cache records for the account netting process, primarily uses this function. However,
this function is a standalone function and it can be called from other applications to directly
access the cache.
Setup Notes and Prerequisites
A valid job number is required in order to call this function. A valid document key is also required,
consisting of document number, document type, document company, and document pay item.
Special Logic
None.
Technical Specification
Parameters
Item DescriptionI/OReq?Notes
JOBSmnJobNumberIY
DOCmnSourceDocumentNumberIY
DCTszSourceDocumentTypeIY
KCOszSourceDocumentCompanyIY
SFXszSourceDocumentPayItemIY
ACTNcLineActionIN
DGJjdSourceGLDateIN
DIVJjdSourceDocumentDateIN
DSVJjdSourceTaxServiceDateIN
AGmnGrossAmountIN
AAPmnOpenAmountIN
ADSCmnDiscountAvailableIN
ADSAmnDiscountTakenIN
PAAPmnAppliedAmountIN
BCRCszSourceBaseCurrencyIN
CRRMcSourceCurrencyModeIN
CRCDszSourceTransactionCurreIN
CRRmnSourceExchangeRateIN
ACRmnForeignGrossAmountIN
FAPmnForeignOpenAmountIN
CDSmnForeignDiscountAvailabIN
CDSAmnForeignDiscountTakenIN
PFAPmnForeignAppliedAmountIN
VR01szSourceReferenceNumberIN
AN8mnSourceAddressNumberIN
MCUszSourceBusinessUnitIN
RMKszSourceRemarkIN
Related Tables
None.
Related Functions
None.
Processing
Validate required fields.
If validation fails,
Set error.
Else,
Set the account netting detail cache key structure.
Initialize the account netting detail cache.
If initialization failed,
Set error.
Else,
Load the cache fields to the cache data structure.
Add the record to the account netting detail cache.
If add failed,
Set error.
Endif.
Destroy the account netting detail cache.
Endif.
Endif.
Perform function clean-up.
D03B0178A - Account Netting Detail Add Cache Entry
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobNumber | JOBS | MATH_NUMERIC | REQ | INPUT |
The job number (work station ID) which executed the particular job. | ||||
mnSourceDocumentNumber | DOC | MATH_NUMERIC | REQ | INPUT |
A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document
| ||||
szSourceDocumentType | DCT | char | REQ | INPUT |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szSourceDocumentCompany | KCO | char | REQ | INPUT |
A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher,
| ||||
szSourceDocumentPayItem | SFX | char | REQ | INPUT |
A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has
| ||||
cLineAction | ACTN | char | OPT | INPUT |
A code that specifies the action that is performed. Valid values are: A Add C Change | ||||
jdSourceGLDate | DGJ | JDEDATE | OPT | INPUT |
A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you
| ||||
jdSourceDocumentDate | DIVJ | JDEDATE | OPT | INPUT |
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
| ||||
jdSourceTaxServiceDate | DSVJ | JDEDATE | OPT | INPUT |
A date that indicates when you purchased goods or services, or when you incurred a tax liability. | ||||
mnGrossAmount | AG | MATH_NUMERIC | OPT | INPUT |
A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on
| ||||
mnOpenAmount | AAP | MATH_NUMERIC | OPT | INPUT |
The amount of an invoice or voucher pay item that is unpaid. | ||||
mnDiscountAvailable | ADSC | MATH_NUMERIC | OPT | INPUT |
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
| ||||
mnDiscountTaken | ADSA | MATH_NUMERIC | OPT | INPUT |
The amount by which an invoice or voucher is reduced if paid by a specific date. The discount taken does not have to be the same as the
| ||||
mnAppliedAmount | PAAP | MATH_NUMERIC | OPT | INPUT |
In the Accounts Payable system, the amount of the payment.
In the Accounts Receivable system, the amount of the receipt. This amount
| ||||
szSourceBaseCurrency | BCRC | char | OPT | INPUT |
A code that represents the currency of the company for a transaction. For a foreign currency transaction, this is the currency code of the
| ||||
cSourceCurrencyMode | CRRM | char | OPT | INPUT |
An option that specifies whether the system displays amounts in the domestic or foreign currency.
On
The system displays amounts in the
| ||||
szSourceTransactionCurrency | CRCD | char | OPT | INPUT |
A code that identifies the currency of a transaction. | ||||
mnSourceExchangeRate | CRR | MATH_NUMERIC | OPT | INPUT |
A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.
The number in this field
| ||||
mnForeignGrossAmount | ACR | MATH_NUMERIC | OPT | INPUT |
The foreign currency amount entered on the transaction. If the Multi-Currency Conversion option on the General Accounting constants is set
| ||||
mnForeignOpenAmount | FAP | MATH_NUMERIC | OPT | INPUT |
The unpaid foreign amount of a transaction. | ||||
mnForeignDiscountAvailable | CDS | MATH_NUMERIC | OPT | INPUT |
The foreign amount of the discount available as opposed to the amount of the discount actually taken. | ||||
mnForeignDiscountTaken | CDSA | MATH_NUMERIC | OPT | INPUT |
The amount of the discount, expressed in the foreign currency of the transaction, that was taken or granted during the application of a
| ||||
mnForeignAppliedAmount | PFAP | MATH_NUMERIC | OPT | INPUT |
The foreign amount to be paid on an A/P Payment run. | ||||
szSourceReferenceNumber | VR01 | char | OPT | INPUT |
An alphanumeric value used as a cross-reference or secondary reference number. Typically, this is the customer number, supplier
| ||||
mnSourceAddressNumber | AN8 | MATH_NUMERIC | OPT | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
szSourceBusinessUnit | MCU | char | OPT | INPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szSourceRemark | RMK | char | OPT | INPUT |
A generic field that you use for a remark, description, name, or address. | ||||
jdSourceExchangeRateDate | ERDJ | JDEDATE | OPT | NONE |
The date that the system uses to retrieve the exchange rate from the Currency Exchange Rates table (F0015). | ||||
szPaymentTermsCode | PTC | char | OPT | NONE |
A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date.
|
None |
None |