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    tables. For 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.
 
^
D0400115 - Accounts Payable Voucher Post
^
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| szBatchType | ICUT | char | REQ | INPUT | 
Batch type for the voucher to be posted
  | ||||
| mnBatchNumber | ICU | MATH_NUMERIC | REQ | INPUT | 
Batch Number for Voucher to be posted
  | ||||
| cAutoOffMode | OFFP | char | OPT | BOTH | 
Offset Method for Post Processing
  | ||||
| cErrorFlag | FLAG | char | OPT | BOTH | 
Returns and Error flag where :
  | ||||
| cIntercompanysettlements | ICO | char | OPT | INPUT | 
Intercompany Settlement flag - used by the G/L Post UBE R09801
  | ||||
| jdDatebatchjulian | DICJ | JDEDATE | OPT | INPUT | 
Batch date for the vouchers to be posted. Also used as a parameter in the 2nd level error messaging.
  | ||||
| mnDocVoucherInvoicee | DOC | MATH_NUMERIC | OPT | INPUT | 
Invoice Document number. Also used as a parameter in the 2nd level error messaging.
  | ||||
| szDocumentType | DCT | char | OPT | INPUT | 
Invoice document type. Also used as a parameter in the 2nd level error messaging.
  | ||||
| szCompanyKey | KCO | char | OPT | INPUT | 
Invoice document company. Also used as a parameter in the 2nd level error messaging.
  | ||||
| szDocumentPayItem | SFX | char | OPT | INPUT | 
Invoice pay item number. Used as a parameter in the 2nd level error messaging.
  | ||||
| mnPayItemExtensionNumber | SFXE | MATH_NUMERIC | OPT | INPUT | 
Pay Item extension number. Part of key to F0411.
  | ||||
| cTaxFlag | EV01 | char | OPT | INPUT | 
Tax flag, at present non functional.
  | ||||
| cVertexActive | VVTX | char | REQ | INPUT | 
This flag determines whether to use the Vertex Tax Compliance system for tax calculations.  Values are:
Y 
Use Vertex system to calculate 
  | ||||
| mnJobNumber | JOBS | MATH_NUMERIC | OPT | BOTH | 
The job number (work station ID) which executed the particular job.  | ||||
| szOffsetByDocument | DL01 | char | OPT | INPUT | 
A user defined name or remark.  | ||||
| szOffsetByBatch | DL02 | char | OPT | INPUT | 
  | ||||
| szOffsetBySummary | DL03 | char | OPT | INPUT | 
Additional text that further describes or clarifies an element.  | ||||
| szIntercompanyCacheName | PID | char | OPT | BOTH | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
  | ||||
| cMultiCurrencyIntercompanyJE | DOT1 | char | OPT | INPUT | 
An option that specifies whether to allow intercompany transactions between companies with different base currencies. If you turn on this 
  | ||||
| cCurrencyConverYNAR | CRYR | char | OPT | INPUT | 
A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use:
Codes are:
   N Do not 
  | ||||
| cNoHubCompanyWritten | EV02 | char | OPT | OUTPUT | 
An option that specifies the type of processing for an event.  | ||||
| None | 
| None |