ReadWriteCostTypeJELNCache

Read/Write Cost Type Journal Entry Line Number Cache

Minor Business Rule

Object Name: B4301720

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose

This function is used to read from and write to a cache that contains the journal entry line numbers 
for the different cost types for a specific order line.


Setup Notes and Prerequisites


Special Logic

cMode = '1' - Add
cMode = '2' - Get Next Record

cMode = '7' - Delete All Cache Records for Job Number

cMode = '8' - Delete All Cache Records for Specific Receipt Line

cMode = '9' - Delete Specific Cache Record


The cache cursor is passed in and out of the function when doing sequential get next records from the 

cache.  If the cache cursor is passed out as 0, it means that there are no more records to get.



Technical Specification

The key to the cache is Job Number, Order Number, Order Type, Order Key Company, Order Suffix, Line 
Number, Receipt Line Number, and Cost Type.



^

Data Structure

D4301720 - Read/Write Cost Type Journal Entry Line Number Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobNumber_JOBSJOBSMATH_NUMERICOPTNONE

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

mnOrderNumber_DOCODOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderType_DCTODCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szOrderKeyCompany_KCOOKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

szOrderSuffix_SFXOSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

mnLineNumber_LNIDLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnReceiptLineNumber_NLINNLINMATH_NUMERICOPTNONE

A number representing the number of lines on either a purchase or sales order. or The number of receivers recorded during the receipts 
process.  This field will be used in Voucher Matching.

szCostType_COSTCOSTcharOPTNONE

A code that designates each element of cost for an item. Examples of the cost object types are:   o  A1  Purchased raw material   o  B1  
Direct labor routing rollup   o  B2  Setup labor routing rollup   o  C1  Variable burden routing rollup   o  C2  Fixed burden routing rollup   o  Dx  Outside 
operation routing rollup   o  Xx  Extra add-ons, such as electricity and water  The optional add-on computations usually operate with the type 
Xx extra add-ons. This cost structure allows you to use an unlimited number of cost components to calculate alternative cost rollups. The 
system then associates these cost components with one of six user defined summary cost buckets.

mnJournalEntryLineNo_JELNJELNMATH_NUMERICOPTNONE

A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes.

cMode_MODEMODEcharOPTNONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

idCacheCursor_GENLNGGENLNGIDOPTNONE

General purpose ID variable.

Related Functions

None

Related Tables

None