UpdateBatchTransactFile

Update Batch Transaction File

Major Business Rule

Object Name: B0000075

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

This function is used to update F0911Z1, F0411Z1, and F03B11Z1 batch transaction records as processed 
after they have been successfully run through the batch processing programs.  This function also has 

the ability to delete these records rather than just marking them as processed.  


Setup Notes and Prerequisites

This business function assumes that the key to the transaction that you want marked as processed or 

deleted has already been run through batch processing without errors.  This function does not check the 

processed (EDSP)  field  in the file for a '1' prior to deleting the record. 


Special Logic




Technical Specification

• Look at the file type to determine which file needs to be updated.
• Load the key to the file.
• If the delete flag is equal to '1' call the delete API to delete all transaction records matching 
the key. 

• If the delete flag is not equal to '1' then  loop through all records which match the key and change 
the processed flag (EDSP) to '1'.  




^

Data Structure

D0000075 - Update Batch Transaction File

Parameter NameData ItemData TypeReq/OptI/O/Both
szEdiUserIDEDUScharNONENONE

Special Input Expected
User id used in the key to the batch transaction  file.ab 


^

szEdiBatchNumberEDBTcharNONENONE

Special Input Expected
Batch number used in the key to the batch transaction  file.ab 


^

szEdiTransactNumberEDTNcharNONENONE

Special Input Expected
Transaction number used in the key to thebatch transaction  file.ab 


^

cFileTypeEV01charNONENONE

Special Input Expected
This flag is used to tell the business function which transaction file to update. 


Significant Data Values

'1' = F0911Z1

'2' = F0411Z1

'3' = F03B11Z1

^

cDeleteFlagEV02charNONENONE

Special Input Expected
This field tells the function whether to update or delete the records matching the key passed in the 

first three  parameters.ab 


Significant Data Values

' ' - Update records

'1' - Delete records

^

szEnvironmentLLcharNONENONE

Special Input Expected
This parameter tells the function in which environment the data (F0911Z1, F0411Z1 or F03B11Z1) 

resides that is to be updated or deleted.  If this parameter is left blank then the data which resides where 

this business function is running will be updated.

^

mnDocVoucherInvoiceEDOCMATH_NUMERICOPTNONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szDocumentTypeDCTcharOPTNONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

szCompanyKeyKCOcharOPTNONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

mnBatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

Related Functions

None

Related Tables

None