Functional Description
Purpose
This function is used to do header level initialization, defaulting, and editing for the Account
Netting Process. This includes data dictionary defaults, edits, and UDC editing. A record will be
written to the account netting header cache regardless of any errors that might occur. This function is part
of the Account Netting Master Business Function (N03B0176) which is used to net an account. The MBF
is capable of A/R to A/P netting or A/P to A/R netting. The function relies on both the Invoice Entry
and Voucher Entry Master Business Functions to create netted invoices and vouchers, respectively. In
addition, F03B13/14 and F0413/14 records are created to close the corresponding original documents.
Currently, only A/R to A/P netting is fully functional.
Setup Notes and Prerequisites
None.
Special Logic
None.
Technical Specification
Parameters
Item DescriptionI/OReq?Notes
JOBSmnJobNumberI/OYZero the first time NettingBeginDoc is called;
mnJobNumber assigned by NettingBeginDoc, if previously called
ACTNcDocumentActionIY'A' or '1' for add, 'C' or '2' for change, and 'D' or
'4' for delete
EV01cProcessEditsIN'0' for no edits, '1' (default) for full edits
EV01cErrorFlagON'0' if successful, '1' for warnings, '2' for errors
SYszSourceSystemCodeIY'03B' if netting from A/R to A/P, '04' if netting from
A/P to A/R
VERSszInvoiceEntryVersionIYRequired if szSourceSystemCode is '04'
VERSszVoucherEntryVersionIYRequired if szSourceSystemCode is '03B'
VERSszJournalEntryVersionIY
VERSszReceiptEntryVersionIYRequired if szSourceSystemCode is '03B'
VERSszPaymentEntryVersionIYRequired if szSourceSystemCode is '04'
DOCmnDocumentNumberINIf zero, a next number will be assigned in
NettingEndDoc
KCOszDocumentCompanyINIf blank, will default to company
COszCompanyIY
AN8mnAddressNumberIY
PYRmnPayorNumberIYRequired if szSourceSystemCode is '03B'
DGJjdGLDateIY
DIVJjdDocumentDateI/ONIf blank, will default to G/L date
DSVJjdTaxServiceDateI/ONIf blank, will default according to Invoice Entry or
Voucher Entry processing option
BCRCszBaseCurrencyIY
CRRMcCurrencyModeIY
CRCDszTransactionCurrencyIY
CRRmnExchangeRateI/ONIf zero, will be retrieved from the exchange rate
table
CRR1mnTriangulationRate1I/ONIf zero, will be retrieved from the exchange rate
table
CRR2mnTriangulationRate2I/ONIf zero, will be retrieved from the exchange rate
table
CRCMcConversionMethodI/ONIf blank, will be retrieved from the exchange rate
table
EFTjdTransactionDateI/ONIf blank, will be retrieved from the exchange rate
table
MCUszBusinessUnitI/ONIf blank, will default from address book
GLCszGLOffsetI/ONIf blank, will default from customer/supplier master
TXA1szTaxRateAreaI/ONIf blank, will default from customer/supplier master
EXR1szTaxExplanationCodeI/ONIf blank, will default from customer/supplier master
PTCszPaymentTermsI/ONIf blank, will default from customer/supplier master
RYINcPaymentInstrumentI/ONIf blank, will default from customer/supplier master
RMKszRemarkIN
ALPHszAlphaNameON
Related Tables
None.
Related Functions
B03B0177Maintain Account Netting Header Cache
B03B0178Maintain Account Netting Detail Cache
BDDVALData Dictionary Validation
X0903Retrieve Company Currency Code
B0000033GFiscal Date Edits +
B0000128et Exchange Rate
B0100002A/B - Get Parent Address
X0010Next Numbers
Processing
Perform Initializations,
Initialize the header cache.
Initialize the detail cache.
Process Required Edits,
Edit Document Action Code.
Edit Source System Code.
Process Optional Edits,
Edit Company.
Edit Address Number.
Edit Payor Number.
Edit G/L Date.
Edit Currency Processing,
If Currency Processing is ON,
Zero out currency processing fields.
Else,
Edit Base Currency.
Edit Transaction Currency.
Edit Currency Mode.
Endif.
Process Defaults,
Default Processing Option Versions.
Default Document Company.
Default Document Date.
Default Exchange Rate.
Default Parent Number.
Default G/L Offset.
Default Tax/Rate Area.
Default Tax Explanation Code.
Default Payment Terms.
Default Payment Instrument.
Maintain Header Cache,
If Job Number = '0',
Get Next Job Number.
Add Header Cache Entry.
Else,
Update Cache Entry.
Endif.
D03B0176A - Account Netting Begin Document
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobNumber | JOBS | MATH_NUMERIC | REQ | BOTH |
The job number (work station ID) which executed the particular job. | ||||
cDocumentAction | ACTN | char | REQ | INPUT |
A code that specifies the action that is performed. Valid values are: A Add C Change | ||||
cProcessEdits | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
cErrorFlag | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. | ||||
szSourceSystemCode | SY | char | REQ | INPUT |
A user defined code (98/SY) that identifies a system. Valid values include:
01
Address Book
03B
Accounts Receivable
04
Accounts
| ||||
szInvoiceEntryVersion | VERS | char | REQ | INPUT |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
szVoucherEntryVersion | VERS | char | REQ | INPUT |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
szJournalEntryVersion | VERS | char | REQ | INPUT |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
szReceiptEntryVersion | VERS | char | REQ | INPUT |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
szPaymentEntryVersion | VERS | char | REQ | INPUT |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
mnDocumentNumber | DOC | MATH_NUMERIC | OPT | INPUT |
A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document
| ||||
szDocumentCompany | KCO | char | OPT | INPUT |
A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher,
| ||||
szCompany | CO | char | REQ | INPUT |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
mnAddressNumber | AN8 | MATH_NUMERIC | REQ | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
mnPayorNumber | PYR | MATH_NUMERIC | REQ | INPUT |
The address book number of the person or company that sends the payment. | ||||
jdGLDate | DGJ | JDEDATE | REQ | 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
| ||||
jdDocumentDate | DIVJ | JDEDATE | OPT | BOTH |
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
| ||||
jdTaxServiceDate | DSVJ | JDEDATE | OPT | BOTH |
A date that indicates when you purchased goods or services, or when you incurred a tax liability. | ||||
szBaseCurrency | BCRC | char | REQ | 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
| ||||
cCurrencyMode | CRRM | char | REQ | INPUT |
An option that specifies whether the system displays amounts in the domestic or foreign currency.
On
The system displays amounts in the
| ||||
szTransactionCurrency | CRCD | char | REQ | INPUT |
A code that identifies the currency of a transaction. | ||||
mnExchangeRate | CRR | MATH_NUMERIC | OPT | BOTH |
A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.
The number in this field
| ||||
mnTriangulationRate1 | CRR1 | MATH_NUMERIC | OPT | BOTH |
The exchange rate from the foreign currency of the invoice to the triangulation currency (leg 1). This rate applies when you use triangulation
| ||||
mnTriangulationRate2 | CRR2 | MATH_NUMERIC | OPT | BOTH |
The exchange rate from the triangulation currency to the domestic currency (leg 2). This rate applies when you use triangulation to calculate
| ||||
cConversionMethod | CRCM | char | OPT | BOTH |
A value that specifies which method to use when converting from one currency to another. Valid values are:
Y
Multiplier method. The
| ||||
jdTransactionDate | EFT | JDEDATE | OPT | BOTH |
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
| ||||
szBusinessUnit | MCU | char | OPT | BOTH |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szGLOffset | GLC | char | OPT | BOTH |
A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates
| ||||
szTaxRateArea | TXA1 | char | OPT | BOTH |
A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter
| ||||
szTaxExplanationCode | EXR1 | char | OPT | BOTH |
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
| ||||
szPaymentTerms | PTC | char | OPT | BOTH |
A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date.
| ||||
cPaymentInstrument | RYIN | char | OPT | BOTH |
The user defined code (00/PY) that specifies how payments are made by the customer. For example:
C
Check
D
Draft
T
Electronic funds
| ||||
szRemark | RMK | char | OPT | INPUT |
A generic field that you use for a remark, description, name, or address. | ||||
szAlphaName | ALPH | char | OPT | OUTPUT |
The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter
|
None |
None |