AccountsPayablePaymentPrePost

Accounts Payable Payment Pre Post

Major Business Rule

Object Name: B0000062

Parent DLL: CFIN

Location: Client/Server

Language: C

1.Functional Description
1.1Purpose

This function completes all pre-post edits by batch for Manual Payment post processing. It is 
called from the G/L Post UBE (R09801) and creates the offsetting 

entries in the F0911, cash entry and discount entries.

      Note : 

The version to be run to execute this BSFN is the ZJDE0004,ZJDE0005 version, the selection 

on which is "Batch Status" Approved, Batch Type "M" for Manual with Match and "W" for Manual 

without match


1.2Setup Notes and Prerequisites

Since this business function is never attached by the user directly, there are no Setup 
Notes or Prerequisites.


2.Technical Specifications

2.1Processing:

a) Deletes any partial records that match the entered    batch number and type in the 
F0911,F09UI005,F09UI006    tablesFor Payment  Pre-Post, the batch type is       either a "W" 

or an "M" 

b) Loads the data structure for the business function   "WriteHUBCompany"(which is 

executed during the      F09UI005 flush routine when the F0911 "AE'records       are written.

c) Opens the relevant tables.

d) Loads the key to the Batch number on the F0413       table.

e) Selects all F0413 records with the matching batch       number and type and a blank 

posted code. If the    offset method for posting is a "B" (Batch method)          then using the 

apymentid from the selected F0413 all          F0414 records mathcing the PYID are read

f) For each record selected (this is in a while loop)

   - If record is a gain/loss record perform the      intercompany Gain/Loss function. 

Read next F0414      record.

         - Write F0911 AE entries

         - Write Discount available record

         - Write discount lost record

         - update F0414 to posted status

         - Write Cash record

         - update F0413 to posted

      g) If Pre-Post completes successfully with no errors       then the UBE R09801 will 

continue to do more editing    however if the Pre-Post found errors/Out of balance    conditions 

etc, it will send back an error flag to    the R09801 who will then issue the error report    

R09801E.




^

Data Structure

D0000062 - Accounts Payable Payments Pre Post

Parameter NameData ItemData TypeReq/OptI/O/Both
szBatchTypeICUTcharREQINPUT

Batch type of Manual Payment to be posted. It could be a "W" or an "M" based on whether its a manual 
payment with voucher match or without.

^

mnBatchNumberICUMATH_NUMERICREQINPUT

Batch Number of Payment to be posted
^

cErrorFlagFLAGcharOPTBOTH

Flag that returns an error if the prepost detects any.
0 = No errors

Non Zero = errors

^

cAutoOffModeOFFPcharOPTBOTH

This is the method of posting i.e
B - Batch Method

Y - offset Method

S - Summary Method.


^

cIntercompanysettlementsICOcharOPTINPUT

Intercompany settlement flag used by the UBE R09801
^

jdDatebatchjulianDICJJDEDATEOPTINPUT

Batch date for vouchers to be posted. Also used for 2nd level error messaging
^

szGlBankAccountGLBAcharOPTINPUT

Bank Account from the F0413 record i.e the G/L Bank account
^

mnPayeeAddressNumberPYEMATH_NUMERICOPTINPUT

The address number receiving the payment
^

mnDocMatchingCheckorDOCMMATH_NUMERICOPTINPUT

Number of the matching document. In this case the payment/Check number
^

cTaxFlagEV01charOPTINPUT

Used to indicate whether information need be updated to the tax file or not. At present not 
functional.

^

cAdjustVATFlagEV01charOPTINPUT

Flag to indicate what tax was used on the payment.
^

szOffsetByDocumentDL01charOPTINPUT

A user defined name or remark.

szOffsetByBatchDL02charOPTINPUT

Additional text that further describes or clarifies a field in the system.

szOffSetBySummaryDL03charOPTINPUT

Additional text that further describes or clarifies an element.

szIntercompanyCacheNamePIDcharOPTBOTH

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cMultiCurrencyIntercompanyJEDOT1charOPTINPUT

An option that specifies whether to allow intercompany transactions between companies with different base currencies. If you turn on this 
option, you must create intercompany settlements in either the detail or configured hub mode. Valid settings are: On Allow intercompany 
transactions between companies with different base currencies. The post program creates adjusting entries for the intercompany accounts in the 
foreign currency of the transaction. Off Do not allow intercompany transactions between companies with different base currencies.

cCurrencyConverYNARCRYRcharOPTINPUT

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

Related Functions

B0000009 Get Next Journal Entry Line Number
B0000023 Intercompany Settlements +
B0000055 ValidateAAICompletely
B0000068 Delete F09UI005 Records
B0000115 AAI Range Of Accounts +
B0100039 Is Address Number in Address Book Master Table
B0400009 Get Account Company
B0900143 Delete F0911 Records
B9800100 Get Audit Information
X0005 Get User Defined Codes
X0903 Fiscal Date Edits +
XX0901 Validate Account Number

Related Tables

B0000009 Get Next Journal Entry Line Number
B0000023 Intercompany Settlements +
F0010 Company Constants
F0012 Automatic Accounting Instructions Master
F0413 Accounts Payable - Matching Document
F0414 Accounts Payable Matching Document Detail
F0911 Account Ledger
F09UI005 Tax Offsets User Index