WriteCALedger

Write to CA Ledger

Major Business Rule

Object Name: B0900041

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function is used to write and to update CA ledger records based on the associated AA 
records. 


Setup Notes and Prerequisites

You are required to do the following steps prior to calling this business function:

• a foreign amount needs to have been entered or calculated based on the domestic amount    
• the associated AA record needs to have already been added or updated to the database

Special Logic




Technical Specification

This business function uses the keys to the F0911, which are included in the parameters, to fetch the 
AA record this CA record is based on.  Next we do an existence check for the CA record.  If no CA 

record is found we assume that we are adding the CA record and we replace the amount and the ledger type 

on the AA 

record we just read in and write this new record to the database.  If the CA record already exists 

then we replace the amount and the ledger type on the AA record we just read in and update the existing 

CA record with the new information.  This allows us to carry over all changes that may have occurred 

on the AA record to the CA side. 



^

Data Structure

D0900041 - Write to CA Ledger

Parameter NameData ItemData TypeReq/OptI/O/Both
szDocumentTypeDCTcharNONENONE

Special Input Expected
This is the document type of the AA record that the CA amount we are updating or adding is associated 

with.

^

mnDocumentNumberDOCMATH_NUMERICNONENONE

Special Input Expected
This is the document number of the AA record that the CA amount we are updating or adding is 

associated with.

^

szCompanyKeyKCOcharNONENONE

Special Input Expected
This is the document company of the AA record that the CA amount we are updating or adding is 

associated with.

^

jdGLDateDGJJDEDATENONENONE

Special Input Expected
This is the g/l date of the AA record that the CA amount we are updating or adding is associated 

with.

^

mnJELineJELNMATH_NUMERICNONENONE

Special Input Expected
This is the journal entry line number of the AA record that the CA amount we are updating or adding 

is associated with.

^

mnAmountCurrencyACRMATH_NUMERICNONENONE

Special Input Expected
This is the foreign amount that is to be written to the CA ledger.

^

Related Functions

None

Related Tables

F0911 Account Ledger