F1602CalculateActivityCost

Cache F1602 Cost Objects Details

Minor Business Rule

Object Name: B1600220

Parent DLL: CFIN

Location: Client/Server

Language: C

Business Function Specification

Source NameB1600220DesignerAnna Kyazyan

Data Structure D1600220ProgrammerAnna Knyazyan

Function NameCache F1602 Cost Objects Details

System Code16

Function CategoryCache Function

Function Use




Revisions Log 

DateModifications bySAR NumberDescription

03/02/99Anna Knyazyan2466234Created



1.Functional Description


1.1Purpose

This business function is used to load the cache with F1602 records to retrieve records.  The 

function is called from B1600230, it is created for Activity Cost Inquiry (P1641) and Cost Object Inquiry 

(P16021).  The cache holds detail records of activities or accounts selected in P1641 or in P16021.


1.2Setup Notes and Prerequisites


1.2Special Logic


This cache function is multiple index cache.  It has to indexes which are used to fetch the records 

in the desire sequence.  

Index 1 (Key 1) is used to sequence the records by MultiLevelIndex and Activity Code 

Index 2 (Key 2) is used to sequence the records by Business Unit, Object Account and Subsidiary


Keys to the cache are:


typedef struct tagDSD1600220CacheKey1





DSD1600220CacheKey1,*LPDS1600220CacheKey1;


typedef struct tagDSD1600220CacheKey2





DSD1600220CacheKey2,*LPDS1600220CacheKey2;



Mode 1 - Fetches the first record from the cache

Before fetching depending on the key passed in the corresponding index is set and the cursor is reset 

to fetch according the specified index


Mode 2 - Add records to cache

B1600230.c gets records from F1602 and adds them to the cache by calling B1600220.c and passing Mode 

= 2


2.Technical Specifications


2.1Parameters:

Data Item DescriptionI/ORequiredNotes

JOBSJob NumberIY

GENLNGID CursorIY

MODEModeIN'1' = Fetch first record 

'2' = Add to cache 

'6' = Get next record 

'8' = Terminate cache

 Other modes can be modified for future use


EV01Cache Code Error IN'1' = Call Data Sequencing window


Note:  Either Key 1 or Key 2 are required as input parameter to be able to fetch records from cache


2.2Related Tables 

Table Table Description

F1602Cost Analyzer Balances



2.3Related Business Functions

Source NameFunction Name

B1600230Cost Object Inquiry Total Amounts



2.4Processing 


Depending on what key is passed in with Mode = 1, the corresponding index is set and cursor is reset^

Data Structure

D1600220 - Cache F1602 Cost Objects Details

Parameter NameData ItemData TypeReq/OptI/O/Both
cMode_EV01EV01charREQNONE

An option that specifies the type of processing for an event.

cCacheCodeError_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

cSuppressErrorMessage_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

szErrorMessageID_DTAIDTAIcharOPTNONE

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.

mnJobnumber_JOBSJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

idCursor_GENLNGGENLNGIDOPTNONE

General purpose ID variable.

cReturnCursor_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

cValidFlag_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

nNumberOfKeys_INT01INT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

szMultiLevelIndex_S11S11charOPTNONE

User Defined Codes (10 separate codes are allowed) which can be used to generate selective reporting based on user assigned values 
of these codes.

mnViewNumber_VWNMVWNMMATH_NUMERICOPTNONE

A number from 1 to 10 that specifies how the system posts records from the Account Ledger table (F0911) to the Cost Analyzer Balances 
table (F1602). This number also specifies which managerial accounting posting code (PM01 - PM10) in the F0911 table to update as 
posted. For example, if the view number is 1, then the system updates PM01 with a P when the F0911 record is marked as being posted.

szActivityCode_ACTBACTBcharOPTNONE

The aggregation of actions performed within an organization that are useful for purposes of activity-based costing.

szAccountId_AIDAIDcharOPTNONE

A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. 

mnCenturyFiscalYear_CFYCFYMATH_NUMERICOPTNONE

A field used to store the century concatenated with the fiscal year.

szLedgerType1_LTLTcharOPTNONE

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.

szSubledger_SBLSBLcharOPTNONE

A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an 
address book number. If you enter a subledger, you must also specify the subledger type.

cSubledgerType_SBLTSBLTcharOPTNONE

A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger 
editing. On the User Defined Codes form, the second line of the description controls how the system performs editing. This is either hard-coded 
or user defined. Valid values include: A Alphanumeric field, do not edit   N Numeric field, right justify and zero fill   C Alphanumeric field, right 
justify and blank fill  

szCostObject1_ABR1ABR1charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cCostObjectType1_ABT1ABT1charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szCostObject2_ABR2ABR2charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cCostObjectType2_ABT2ABT2charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szCostObject3_ABR3ABR3charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cCostObjectType3_ABT3ABT3charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

szCostObject4_ABR4ABR4charOPTNONE

A cost object code, such as an equipment item number or an address book number. If you enter a cost object code, you must also specify 
the cost object type. This field functions the same and is validated the same as the subledger field, but the system does not post the data in 
the cost object code field to the Account Balances file (F0902).

cCostObjectType4_ABT4ABT4charOPTNONE

A code that specifies the type of cost object and the type of editing. Valid types are stored in the Cost Object Types table (F1620) and can 
be added or modified using the Cost Object Types program (P1620).

mnIdentifierShortItem_ITMITMMATH_NUMERICOPTNONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szCompany_COCOcharOPTNONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

mnBalFWD_APYCAPYCMATH_NUMERICOPTNONE

The cumulative prior year-end balance. The system uses this amount as the beginning balance for balance sheet and job cost 
accounts. NOTE: Do not confuse this amount with the prior year-end net posting amount. The prior year-end net posting amount includes only the 
postings from the prior year. It does not include the ending balance of the previous year. The prior year-end net postings are typically used for profit 
and loss statement comparisons.

cAssignmentFlag_ASMFASMFcharOPTNONE

This field indicates whether this record in the Cost Analyzer Balance table (F1602) has been affected by an assignment.

mnWeektoDateNetPostings_AWTDAWTDMATH_NUMERICOPTNONE

The net amount from the week-to-date postings for an account.

szBusinessUnit_MCUMCUcharOPTNONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szObjectAccount_OBJOBJcharOPTNONE

The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into 
subcategories. For example, you can divide the Cost Code for labor into regular time, premium time, and burden. Note: If you use a flexible chart of 
accounts and the object account is set to 6 digits, J.D. Edwards recommends that you use all 6 digits. For example, entering 000456 is not 
the same as entering 456 because if you enter 456 the system enters three blank spaces to fill a 6-digit object.

szSubsidiary_SUBSUBcharOPTNONE

A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account.

mnOriginalBeginningBudget_BORGBORGMATH_NUMERICOPTNONE

Field that tracks amounts for an annual budget amount by ledger type in the Account Balances file (F0902).

mnRequestedBudget_BREQBREQMATH_NUMERICOPTNONE

A code that specifies the ledger type with which to track amounts in the Account Balances table (F0902). Valid values are:   
BA/BU Requested budget from Budget by Business Unit or Account. When you update this field, the system updates BAPR (Approved Budget) and BORG 
(Final or original budget to expedite budget changes.)   PA/PU Pending commitments from purchase orders. The Repost Committed Cost 
program (R00932) uses processing options to determine the status code for pending (unapproved) purchase orders. (Total commitments are 
posted to the Original Budget field BORG, and open commitments update the monthly or period amounts.) The Fixed Assets system also 
uses this field in the Asset Account Balances File table (F1202) to record transfers. Debit journal entries to asset cost accounts and credits to 
accumulated depreciation accounts with Document Type AT (Asset Transfer) update this field in the Fixed Asset Post program (R12800).

mnApprovedBudget_BAPRBAPRMATH_NUMERICOPTNONE

This field tracks the following amounts in the Account Balances file (F0902):        Ledger type - BA/BU. Approved Budget from Budget by 
Business Unit or by Account. (Changes to this field also update the Final/Original Budget field BORG to expedite entry of the final budget.) Fixed 
Assets also uses this field in the Item Balances file (F1202) to record transfers out.  Credit journal entries to asset cost accounts and debits to 
accumulated depreciation accounts with Document Type AT (Asset Transfer) update this field in the F/A Post program.

szCurrencyCodeFrom_CRCDCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

szCurrencyCodeDenom_CRCXCRCXcharOPTNONE

A code that indicates the currency in which an amount is denominated.

mnOriginalPosting1_AN01AN01MATH_NUMERICOPTNONE

A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants table (F0010). The net amount posted is the total of all debits and credits, beginning with the first day of the period through the last 
day of the period.

mnNetBalance1_NB01NB01MATH_NUMERICOPTNONE

This number represents the net balance for the accounting period. The net balance equals original amount, which is posted to the Cost 
Analyzer Balances (F1602) from the Account Ledger (F0911), plus any amounts that are applied to this balance, minus any amounts that are 
assigned from this balance. You assign amounts through Cost Assignments Calculate (R1610) program.

szACTBDescription_DL01DL01charOPTNONE

A user defined name or remark.

szLedgerType2_LTLTcharOPTNONE

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.

mnOriginalPosting2_AN01AN01MATH_NUMERICOPTNONE

A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants table (F0010). The net amount posted is the total of all debits and credits, beginning with the first day of the period through the last 
day of the period.

mnNetBalance2_NB01NB01MATH_NUMERICOPTNONE

This number represents the net balance for the accounting period. The net balance equals original amount, which is posted to the Cost 
Analyzer Balances (F1602) from the Account Ledger (F0911), plus any amounts that are applied to this balance, minus any amounts that are 
assigned from this balance. You assign amounts through Cost Assignments Calculate (R1610) program.

nCountIndex_INT01INT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

Related Functions

None

Related Tables

None