AccountsPayableVoucherPost

Accounts Payable Voucher Post

Major Business Rule

Object Name: B0400115

Parent DLL: CFIN

Location: Client/Server

Language: C

1.Functional Description
1.1Purpose

This function completes all pre-post edits by batch for voucher post processing. It is 
called from the G/L Post UBE (R09801) and creates the automatic journal entry in the F0911 

table. If taxes are on the original

document , it creates any necessary tax records in the F0911 and it writes a tax record to the 

tax table.

The prepost also writes to the F0911T file if the CMS flag is ON.

      Note : 

The version to be run to execute this BSFN is the XJDE0002 version, the selection on 

which is "Batch Status" Approved, Batch Type "V"


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 Voucher Pre-Post, the batch type is       always a "V"

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 F0411    table.

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

code.

f) For each record selected (this is in a while loop),    processing and editing is done 

to write the AE    records based on the set up method. i.e., AE records    will be written 

based on whether the posting offset    method is a "Y" or a "B" or "S". If everything is    o.k then 

the F0411 is updated wiht a "P" in its       posted code. Also , in this loop tax records are  

     written if tax info is present. CMS info is written    to the F0911T file is CMS flag 

is "ON".

      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

D0400115 - Accounts Payable Voucher Post


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szBatchTypeICUTcharREQINPUT

Batch type for the voucher to be posted
Note : Should be always a "V"


^

mnBatchNumberICUMATH_NUMERICREQINPUT

Batch Number for Voucher to be posted
^

cAutoOffModeOFFPcharOPTBOTH

Offset Method for Post Processing
Y = Document

B = Batch

S = Summary 

^

cErrorFlagFLAGcharOPTBOTH

Returns and Error flag where :
1 = errors

0 = No errors

^

cIntercompanysettlementsICOcharOPTINPUT

Intercompany Settlement flag - used by the G/L Post UBE R09801
^

jdDatebatchjulianDICJJDEDATEOPTINPUT

Batch date for the vouchers to be posted. Also used as a parameter in the 2nd level error messaging.
^

mnDocVoucherInvoiceeDOCMATH_NUMERICOPTINPUT

Invoice Document number. Also used as a parameter in the 2nd level error messaging.
^

szDocumentTypeDCTcharOPTINPUT

Invoice document type. Also used as a parameter in the 2nd level error messaging.
^

szCompanyKeyKCOcharOPTINPUT

Invoice document company. Also used as a parameter in the 2nd level error messaging.
^

szDocumentPayItemSFXcharOPTINPUT

Invoice pay item number. Used as a parameter in the 2nd level error messaging.
^

mnPayItemExtensionNumberSFXEMATH_NUMERICOPTINPUT

Pay Item extension number. Part of key to F0411.
^

cTaxFlagEV01charOPTINPUT

Tax flag, at present non functional.
^

cVertexActiveVVTXcharREQINPUT

This flag determines whether to use the Vertex Tax Compliance system for tax calculations.  Values are: Y  Use Vertex system to calculate 
taxes.  N Do not use Vertex system to calculate taxes.  Instead, use JDE tax calculations. 

mnJobNumberJOBSMATH_NUMERICOPTBOTH

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

szOffsetByDocumentDL01charOPTINPUT

A user defined name or remark.

szOffsetByBatchDL02charOPTINPUT


^

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.

cNoHubCompanyWrittenEV02charOPTOUTPUT

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

Related Functions

None

Related Tables

None