Functional Description
Purpose
This function will complete all pre-post edits by batch for Receipt post processing. It is called from the GL Post UBE
(R09801) and will create the "AA" Ledger journal entry in the F0911 table for Receipt deposit, A/R "AE" entries, Unapplied
cash, Discounts taken, Adjustments, Chargebacks, Deductions, and for currency any Gains/Losses and "CA" Ledger
entries for the currency amounts.
Setup Notes and Prerequisites
Special Logic
Technical Specification
Parameters
Item DescriptionI/OReqNotes
ICUmnBatchNumberIYBatch number of receipts to be posted.
ICUTszBatchTypeIYBatch type of the receipts to be posted.
OFFRcAROffsetMethodIYOffset Method for post processing. Y = Document S =
Summary B = Batch
EV01cErrorFlagI/ONIf function finds error whileprocessing will return error
flag Where: 1 = errors 0 or blank = no errors
ICOcInterCompanySettlementsINIntercompany settlement flag CompanyConstants. Used by
the GL Post UBE(R09801)
DICJjdBatchDateI/ONBatch date of the receipts to be posted. Used as a
parameter in the 2nd level error messaging.
CKNUmnReceiptNumberONReceipt number. Used as a parameter in the 2nd level
error messaging.
KCOszCompanyKeyONReceipt document company. Used as a parameter in
the 2nd level error messaging.
DOCSzDocvoucherinvoiceONInvoice number. Used as parameter in the 2nd level
error messaging.
DCTszDocumentTypeO NInvoice document type. Used as a parameter in the 2nd
level error messaging.
SFXsxPayItemO NInvoice pay item number. Used as a parameter in the
2nd level error messaging.
AN8mnAddressnumberONCustomer Number. Used as a parameter in the 2nd
level error messaging.
EV01cUpdateTaxFileIYFlag to update Tax Table (F0018)Where: ' '- No
Update 1- VAT or Use Tax 2- All Tax amounts 3- All Tax Explanation Codes
EV02CAdjVATDiscountIYFlag to adjust taxes for discounts taken 1- Adjust only
VAT or Use Taxes 2- Adjust all Taxes
EV03cAdjVATAdjustmentsIYFlag to adjust taxes for Adjustments taken 1- Adjust only
VAT or Use Taxes 2- Adjust all Taxes
DL01szOffsetByDocumentIYSoft code text description"Offset By Document".
Passed in by R09801 Post UBE
DL02szOffsetByBatchIYSoft code text description"Offset By Batch". Passed
in by R09801 Post UBE
DL03szOffsetBySummaryIYSoft code text description"Offset By Summary".
Passed in by R09801 Post UBE
PIDszIntercompanyCacheNameIYCache name used by the intercompany function.
Passed in by R09801 Post UBE
DL06szDraftsReceivableIYSoft code text description"Drafts Receivable". Passed in by
R09801 Post UBE
DL07szBankDepositIYSoft code text description"Bank deposit". Passed in
by R09801 Post UBE
DOT1cMultiCurrencyIntercompanyJEIYAllow MultiCurrency intercompany settlements. Passed
in by R09801 Post UBE
CRYRcCurrencyConverYNARIYCurrency Conversion methodY/Z/N. Passed in by
R09801 Post UBE
Related Tables
Table Table Description
F0010Company MasterInput
F0012AAI Master TableInput
F0013Currency Code MasterInput
F03B13Receipts Header Input/Update
F03B14Receipt DetailInput/Update
F0025Ledger Type MasterInput
F0911General LedgerOutput
F09UI006Sales/Use/VAT Tax WorktableOutput
F09UI011Receipts PrePost Work FileInput/Output/Update
F03B11Accounts Receivable LedgerInput
F03B40A/R Deduction ManagementOutput
F03012Customer Master by Line of BusinessInput
Related Functions
Source NameFunction Name
B0000009Get Next JE Line Number
B0000023Intercompany Settlements
B0000055Validate AAI Completely
B0000083Parse Numeric to String
B0400009Get Account Company
B9800100Get Audit Information
B0900143Delete F0911 Records
B0100039Get Mailing Name
X0903Edit Dates
XX0901F0009 Get General Account Constants
B03B0132F03B40 Create Claim Information
B0000115Get AAI Range of Accounts
B0000033F0015 Get Exchange Rate
B0000019Calculate Tax Authority Amounts
N0400096Get F0022 Constants
B03B0170CMS Cahche
N4002370CMS - F4096 Build Flexible Account
B0900095CMS - Write F0911T Tag file
B0000128Get Company Currency Code
Processing
Receipts PrePost processes the F03B14 - Receipt Detail Table for request Batch Number and detail which has not
been posted.
On a Header Detail break on payment id (PYID) retrieve the F03B13 Receipt Header. If the receipt header has not
been posted setup and accumulate the receipt deposit for detail mode (one for each receipt) or summary mode (one for the
batch).
For each receipt detail (F03B14) check the type input code (TYIN) based on the TYIN process record as follows
"G" G/L entry - Setup General Ledger record (F0911) for amount (PAAP) and account (AID2) and write F0911 detail
record also check if Foreign amount setup and write "CA" ledger F0911 record.
"D" Draft Journal Entry - Setup General Ledger record (F0911) for amount (PAAP) and account (AID2) and document
type (DCT) for R1, R2, or R3 based on draft status (DDST) and write F0911 detail record also check if Foreign amount
setup and write "CA" ledger F0911 record.
Not a "G" or "D" and Discount Taken not *Zero - Setup General Ledger record (F0911) for amount (ADSA) and
account (AIDD) and write F0911 detail record also check if Foreign amount setup and write "CA" ledger F0911 record. If flags
are set to adjust taxes for discount taken, adjust and update tax files.
Not a "G" or "D" and Adjustment amount not *Zero - Setup General Ledger record (F0911) for amount (AAAJ) and
account (AIDW) and write F0911 detail record also check if Foreign amount setup and write "CA" ledger F0911 record. If
flags are set to adjust taxes for adjustment, adjust and update tax files.
Not a "G" or "D" and Chargeback amount not *Zero - Setup General Ledger record (F0911) for amount (ECBA) and
account (AIDC) and write F0911 detail record also check if Foreign amount setup and write "CA" ledger F0911 record.
Not a "G" or "D" and Deduction amount not *Zero - Setup General Ledger record (F0911) for amount (DDA) and
account (DAID) and write F0911 detail record also check if Foreign amount setup and write "CA" ledger F0911 record. Also
setup and write Deduction system record for F03B40.
Not a "G" or "D" and Gain/Loss amount not *Zero - Setup General Ledger record (F0911) for amount (AGL) and
retrieve AAI for RL or RG and write F0911 detail record.
Not a "G" or "D" accumulate payment amount (PAAP), discount taken (ADSA), adjustment amount (AAAJ),
chargeback amount (ECBA), deduction amount (DDA) and gain/loss amount (AGL) and setup and accumulate the A/R "AE" entry
based on offset method to F09UI011 table.
If currency restatement *ON and company is setup for currency restatement, setup and accumulate "XA" ledger entry.
Check offset method "S" - "AE" record for each detail record setup to process F09UI011 for A/R "AE" records and
write to F0911 table also check if foreign amount setup and write "CA" ledger F0911 record. If currency restatement *ON
process F09UI011 for "XA" ledger and write to F0911.
Update F03B14 Receipt Detail record has been processed for the PrePost.
Check if Offset method - Y and break on PYID process F09UI011 for A/R "AE" and write to F0911 table also check if
foreign amount setup and write "CA" ledger F0911 records. If currency restatement *ON process F09UI011 for "XA"
ledger and write to F0911.
Check if receipt deposit should be in detail mode setup and process F09UI011 for deposit records and write to F0911
table also check if foreign amount setup and write "CA" ledger F0911 records.
After all F03B14 detail records have been processed.
Check if Offset method - Y process F09UI011 for A/R "AE" and write to F0911 table also check if foreign amount
setup and write "CA" ledger F0911 records. If currency restatement *ON process F09UI011 for "XA" ledger and write to
F0911.
Check if receipt deposit should be in batch mode setup and process F09UI011 for deposit records and write to F0911
table also check if foreign amount setup and write "CA" ledger F0911 records.
Check if Offset method - B process F09UI011 for A/R "AE" and write to F0911 table also check if foreign amount
setup and write "CA" ledger F0911 records. If currency restatement *ON process F09UI011 for "XA" ledger and write to
F0911.
^
D03B0067 - A/R Receipt Post
Parameters
Item Description I/O Req Notes
ICU mnBatchNumber I Y Batch number of receipts to be
posted.
ICUT szBatchType I Y Batch type of the receipts to be posted.
OFFR cAROffsetMethod I Y Offset Method for post processing. Y = Document S = Summary B
= Batch
EV01 cErrorFlag I/O N If function finds error while processing will return error flag Where: 1 = errors 0 or blank = no
errors
ICO cInterCompanySettlements I N Intercompany settlement flag Company Constants. Used by the GL Post
UBE(R09801)
DICJ jdBatchDate I/O N Batch date of the receipts to be posted. Used as a parameter in the 2nd level error messaging.
CKNU mnReceiptNumber O N Receipt
number. Used as a parameter in the 2nd level error messaging.
KCO szCompanyKey O N Receipt document company. Used as a
parameter in the 2nd level error messaging.
DOC SzDocvoucherinvoice O N Invoice number. Used as parameter in the 2nd level error
messaging.
DCT szDocumentType O N Invoice document type. Used as a parameter in the 2nd level error messaging.
SFX sxPayItem O
N Invoice pay item number. Used as a parameter in the 2nd level error messaging.
AN8 mnAddressnumber O N Customer Number. Used
as a parameter in the 2nd level error messaging.
EV01 cUpdateTaxFile I Y Flag to update Tax Table (F0018) Where: ' '- No Update 1-
VAT or Use Tax 2- All Tax amounts 3- All Tax Explanation Codes
EV02 CAdjVATDiscount I Y Flag to adjust taxes for discounts taken 1-
Adjust only VAT or Use Taxes 2- Adjust all Taxes
EV03 cAdjVATAdjustments I Y Flag to adjust taxes for Adjustments taken 1- Adjust only
VAT or Use Taxes 2- Adjust all Taxes
DL01 szOffsetByDocument I Y Soft code text description "Offset By Document". Passed in by R09801
Post UBE
DL02 szOffsetByBatch I Y Soft code text description "Offset By Batch". Passed in by R09801 Post
UBE
DL03 szOffsetBySummary I Y Soft code text description "Offset By Summary". Passed in by R09801 Post UBE
PID szIntercompanyCacheName I Y Cache name
used by the intercompany function. Passed in by R09801 Post UBE
DL06 szDraftsReceivable I Y Soft code text description "Drafts
Receivable". Passed in by R09801 Post UBE
DL07 szBankDeposit I Y Soft code text description "Bank deposit". Passed in by R09801 Post UBE
DOT1 cMultiCurrencyIntercompanyJE I Y Allow MultiCurrency intercompany settlements. Passed in by R09801 Post
UBE
CRYR cCurrencyConverYNAR I Y Currency Conversion method Y/Z/N. Passed in by R09801 Post UBE
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnBatchnumber | ICU | MATH_NUMERIC | NONE | NONE |
Parameters Item Description I/O Req Notes ICU mnBatchNumber I Y Batch number of receipts to be posted. ^ | ||||
szBatchtype | ICUT | char | NONE | NONE |
Parameters Item Description I/O Req Notes ICUT szBatchType I Y Batch type of the receipts to be posted. ^ | ||||
cAROffSetMode | OFFR | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
OFFR cAROffsetMethod I Y Offset Method for post processing. Y = Document S =
| ||||
cErrorFlag | EV01 | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
EV01 cErrorFlag I/O N If function finds error while processing will return error flag Where:
| ||||
cIntercompanysettlements | ICO | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
ICO cInterCompanySettlements I N Intercompany settlement flag Company Constants.
| ||||
jdDatebatchjulian | DICJ | JDEDATE | NONE | NONE |
Parameters
Item Description I/O Req Notes
DICJ jdBatchDate I/O N Batch date of the receipts to be posted. Used as a parameter
| ||||
szReceiptNumber | CKNU | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
CKNU mnReceiptNumber O N Receipt number. Used as a parameter in the 2nd level
| ||||
szCompanykey | KCO | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
KCO szCompanyKey O N Receipt document company. Used as a parameter in the 2nd
| ||||
mnDocvoucherinvoicee | DOC | MATH_NUMERIC | NONE | NONE |
Parameters
Item Description I/O Req Notes
DOC SzDocvoucherinvoice O N Invoice number. Used as parameter in the 2nd level
| ||||
szDocumenttype | DCT | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
DCT szDocumentType O N Invoice document type. Used as a parameter in the 2nd
| ||||
szDocumentpayitem | SFX | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
SFX sxPayItem O N Invoice pay item number. Used as a parameter in the 2nd level
| ||||
mnAddressnumber | AN8 | MATH_NUMERIC | NONE | NONE |
Parameters
Item Description I/O Req Notes
AN8 mnAddressnumber O N Customer Number. Used as a parameter in the 2nd level
| ||||
cUpdateTaxFile | EV01 | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
EV01 cUpdateTaxFile I Y Flag to update Tax Table (F0018) Where: ' '- No Update 1-
| ||||
cAdjVATDiscount | EV02 | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
EV02 CAdjVATDiscount I Y Flag to adjust taxes for discounts taken 1- Adjust only VAT
| ||||
cAdjVatAdjustments | EV03 | char | NONE | NONE |
Parameters
Item Description I/O Req Notes
EV03 cAdjVATAdjustments I Y Flag to adjust taxes for Adjustments taken 1- Adjust only
| ||||
szOffsetByDocument | DL01 | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
DL01 szOffsetByDocument I Y Soft code text description "Offset By Document". Passed
| ||||
szOffsetByBatch | DL02 | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
DL02 szOffsetByBatch I Y Soft code text description "Offset By Batch". Passed in by
| ||||
szOffsetBySummary | DL03 | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
DL03 szOffsetBySummary I Y Soft code text description "Offset By Summary". Passed in
| ||||
szIntercompanyCacheName | PID | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
PID szIntercompanyCacheName I Y Cache name used by the intercompany function.
| ||||
szDraftsReceivable | DL06 | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
DL06 szDraftsReceivable I Y Soft code text description "Drafts Receivable". Passed in
| ||||
szBankDeposit | DL07 | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
DL07 szBankDeposit I Y Soft code text description "Bank deposit". Passed in by
| ||||
cMultiCurrencyIntercompanyJE | DOT1 | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
DOT1 cMultiCurrencyIntercompanyJE I Y Allow MultiCurrency intercompany settlements.
| ||||
cCurrencyConverYNAR | CRYR | char | OPT | NONE |
Parameters
Item Description I/O Req Notes
CRYR cCurrencyConverYNAR I Y Currency Conversion method Y/Z/N. Passed in by
|
B0000009 Get Next Journal Entry Line Number | ||||
B0000023 Intercompany Settlements + | ||||
B0000055 ValidateAAICompletely | ||||
B0000073 Delete F09UI006 Records | ||||
B0100039 Is Address Number in Address Book Master Table | ||||
B0400009 Get Account Company | ||||
B0900143 Delete F0911 Records | ||||
B9800100 Get Audit Information | ||||
X0903 Fiscal Date Edits + | ||||
XX0901 Validate Account Number |
F0012 Automatic Accounting Instructions Master | ||||
F03B13 Receipts Header | ||||
F03B14 Receipts Detail | ||||
F0911 Account Ledger | ||||
F09UI011 Receipt Prepost Work File |