ValidateJobCostLedgerType

Validate Job Cost Ledger Type

Minor Business Rule

Object Name: B5100013

Parent DLL: CAEC

Location: Client/Server

Language: C

Purpose
Validation of Ledgers against UDC tables 09/LT, 51/RB, 51/RU & 00/LT  The program will validate the ledgers entered in the Processing Options to see if 
the ledger types are valid(UDC 09/LT). If valid then are both on UDC 51/RB & 51/RU, then is the matching unit ledger type defined. If the ledgers are not 

on 51/RB & 51/RU then the ledgers must be defined on UDC 00/LT with a R in the first position of description 2. Errors # 2508 and 2631 are issued when 

editing the ledger types.


Revision 10/96:  Validation of Ledgers (Units and Amounts)  against UDC table 09/LT and F0025 and not 51/RB and 51/RU.
Revision10/31/96
The Business Function needs to do additional editing to determine if the ledger types are amount or units ledger types as defined on F0025. The first 
check should be to see if the amount ledger type has a matching unit ledger type defined. The second check is to see if the unit ledger type defined ends with 

a U and is the matching unit ledger type defined for the amount ledger type.


Revision 2/97:   Determine Unit Ledger and pass it back to the application, or pass back an error.

Revision 2/6/97
The Business Function needs to return the Units Ledger back to the application. It determined the units by taking the Amount Ledgers first character and 
adding a 'U'.  If the units ledger does not exit in either the 09/LT or the F0025 as 'ULT' for the corresponding 'LT' passed in, return an error (new error:  Kim 

will add similar to 2631).

^

Data Structure

D5100013 - Validate Job Cost Ledger Type

Parameter NameData ItemData TypeReq/OptI/O/Both
szLedgerTypeAmountLTcharREQINPUT

A user defined code (09/LT) that specifies the type of ledger, such as AA (Actual Amounts), BA (Budget Amount), or AU (Actual Units). You 
can set up multiple, concurrent accounting ledgers within the general ledger to establish an audit trail for all transactions.

szLedgerTypeUnitLTcharREQOUTPUT

A user defined code (09/LT) that specifies the type of ledger, such as AA (Actual Amounts), BA (Budget Amount), or AU (Actual Units). You 
can set up multiple, concurrent accounting ledgers within the general ledger to establish an audit trail for all transactions.

szErrorMessageDTAIcharREQOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

None