ValidateDeleteJEDocument

Validate - Delete JE Document

Minor Business Rule

Object Name: B0900037

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function is used to determine if posted records exist in a journal entry prior to being 

deleted. 


Setup Notes and Prerequisites


Special Logic

This business function sets no error message.  We set on an error flag and then the calling 

application is responsible for setting on the appropriate error.     



Technical Specification

This business function uses a key which contains posted code, batch type, batch number, ledger type, 

g/l date, document number, key company and document type.  An existence check is done over the F0911 

using this key with a 'P' in the posted code.  If a record is found we set the error flag to '1'.    



Data Structure

D0900037 - Validate - Delete JE Document

Parameter NameData ItemData TypeReq/OptI/O/Both
szBatchTypeICUTcharNONENONE

Special Input Expected
The batch type of the journal entry being deleted.

^

mnBatchNumberICUMATH_NUMERICNONENONE

Special Input Expected
The batch number of the journal entry being deleted.

^

szLedgerTypeLTcharNONENONE

Special Input Expected
The ledger type of the journal entry being deleted.

^

jdGLDateDGJJDEDATENONENONE

Special Input Expected
The g/l date of the journal entry being deleted.

^

mnDocumentNumberDOCMATH_NUMERICNONENONE

Special Input Expected
The document number of the journal entry being deleted.

^

szCompanyKeyKCOcharNONENONE

Special Input Expected
The document company of the journal entry being deleted.

^

szDocumentTypeDCTcharNONENONE

Special Input Expected
The document type of the journal entry being deleted.

^

cDeleteFlagEV01charNONENONE

Special Input Expected
This field should be input as blank.


Special Output Returned

This flag will hold a value that will tell you if the journal entry is able to be deleted.


Significant Data Values

' ' - it is valid to delete this entry

'1' - it is not valid to delete this 

^

Related Functions

None

Related Tables

F0911 Account Ledger