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. 
^
D0900041 - Write to CA Ledger
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| szDocumentType | DCT | char | NONE | NONE | 
Special Input Expected
  | ||||
| mnDocumentNumber | DOC | MATH_NUMERIC | NONE | NONE | 
Special Input Expected
  | ||||
| szCompanyKey | KCO | char | NONE | NONE | 
Special Input Expected
  | ||||
| jdGLDate | DGJ | JDEDATE | NONE | NONE | 
Special Input Expected
  | ||||
| mnJELine | JELN | MATH_NUMERIC | NONE | NONE | 
Special Input Expected
  | ||||
| mnAmountCurrency | ACR | MATH_NUMERIC | NONE | NONE | 
Special Input Expected
  | ||||
| None | 
| F0911 Account Ledger |