DeleteGLTransaction

Delete G/L Transaction From F0911

Major Business Rule

Object Name: B0900031

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function is used to delete all G/L transaction lines from the F0911 table for one 
summary line found in the Work with Journal Entries grid.


Setup Notes and Prerequisites

This function was primarily designed to be used with the Delete button on the Work with Journal 

Entries form of the Journal Entries application.  Currently this function is being called on the Delete 

Verify After event point in the grid.  This function also checks for the existence of other F0911 records 

which use the same batch number (ICU).  If there are no other F0911 records for the batch number used 

in the original delete, this function will call BatchReviseOnTransactionCommit so the now empty batch 

header will be deleted.  The correct batch number must be passed to this function.


Special Logic




Technical Specification

• Open batch and set batch status to "U" (in use)
• Open F0911 table
• Select records based on key
• While there are matching F0911 records... 
• Retrieve record from F0911 based on the key
• If the amount field in retrieved record is positive (debit)...
• Accumulate it to working Transaction amount
• Delete the retrieved record
• Close F0911 table
• Open F0911 table
• Select records based on new key built by function
• Fetch record matching key
• If valid fetch... (records exist with same batch number as previous delete)
• Call BatchReviseOnTransactionCommit
• Update Batch Amount 
• Set Batch Status
• Else... (batch header is empty)
• Call BatchReviseOnTransactionCommit
• Delete Batch Header record from F0011 table



^

Data Structure

D0900031 - Delete G/L Transaction from F0911

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocVoucherInvoiceDOCMATH_NUMERICNONENONE

Special Input Expected
Document number of the transaction to be deleted.




^

szDocumentTypeDCTcharNONENONE

Special Input Expected
Document type of the transaction to be deleted.



^

szDocumentCompanyKCOcharNONENONE

Special Input Expected
Document company of the transaction to be deleted.



^

szBatchTypeICUTcharNONENONE

Special Input Expected
Batch type of the transaction to be deleted.



^

mnBatchNumberICUMATH_NUMERICNONENONE

Special Input Expected
Batch number of the transaction to be deleted.



^

jdGLDateDGJJDEDATENONENONE

Special Input Expected
G/L Date of the transaction to be deleted.



^

cPaymentInstrumentPYINcharOPTNONE

A user defined code (00/PY) that determines the means by which a payment is issued to a supplier or received from the customer. 
Examples of payment instruments include check, electronic funds transfer, lockbox, and EDI.

szInteropVersionVERcharOPTNONE

Identifies a specific set of data selection and sequencing settings for the application. Versions may be named using any combination of 
alpha and numeric characters. Versions that begin with 'XJDE' or 'ZJDE' are set up by J.D. Edwards.

Related Functions

B0000004 Batch - Open On Initialization
B0000007 Batch - Revise On Transaction Commitment

Related Tables

F0011 Batch Control Records
F0018 Taxes
F0911 Account Ledger