F41291RetrieveLandedCostCache

Retrieve Landed Cost Cache

Major Business Rule

Object Name: B4300980

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose

To read the landed cost cache.


Setup Notes and Prerequisites


Special Logic


Called from named ER Landed Cost Selection.


Technical Specification


If idGenericLong is NULL

Fetch cache record using Key

else

Fetch record from cache sequentially starting with the first one



Data Structure

D4300980 - Retrieve Landed Cost Cache

Special Input Expected
SEQmnSequenceNumberI/OKey 3 (required if GENLNG = 0)


GENLNGidGenericLong I/OFetch by Key: GENLNG = 0 Fetch Sequentially:       Initial GENLNG = 0   

    Subsequently GENLNG != 0


CTIDszComputerID I/OKey 1 (required if GENLNG = 0)


JOBSmnJobnumberI/O Key 2 (required if GENLNG = 0)





^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderInvoiceDOCOMATH_NUMERICNONENONE

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.

szOrderTypeDCTOcharNONENONE

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

szCompanyKeyOrderNoKCOOcharNONENONE

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.

mnLineNumberLNIDMATH_NUMERICNONENONE

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.

szDescriptionLineDSC1charNONENONE

Brief information about an item; a remark or an explanation.

mnUnitsOpenQuantityUOPNMATH_NUMERICNONENONE

The original quantity for the order detail line, plus or minus any changes to that quantity, minus all quantities shipped, received, and 
vouchered to date.

mnPurchasingUnitPricePRRCMATH_NUMERICNONENONE

The unit cost of one item, as purchased from the supplier, excluding freight,taxes, discounts, and other factors that might modify the actual 
unit cost you record when you receive the item.

mnExtendedAmountAOPNMATH_NUMERICNONENONE

The amount of the order, invoice, or voucher that is still unpaid or open. When you enter a document (for example, an order, invoice, or 
voucher), the open amount is the original amount of that document. If you change the original amount, the open amount is reduced by the net 
change. For example,payments, shipments, or receipts against a document result in a reduction of the open balance.

mnAddressNumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

szCurrencyCodeApAmountsCRCPcharNONENONE

The currency in which a supplier's amounts are stored.  For example, the Prior Year Vouchered, Year to Date Vouchered, and so forth.

idGenericLongGENLNGIDNONENONE

General purpose ID variable.

szGlClassGLCcharNONENONE

A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates 
the value that you enter to the AAI item RC (for Accounts Receivable) or PC (for Accounts Payable) to locate the trade account. For 
example, if you enter TRAD, the system searches for the AAI item RCTRAD (for receivables) or PCTRAD (for payables).  You can assign up to four 
alphanumeric characters to represent the G/L offset or you can assign the three-character currency code (if you enter transactions in a 
multicurrency environment). You must, however, set up the corresponding AAI item for the system to use; otherwise, the system ignores the G/L 
offset and uses the account that is set up for PC or RC for the company specified.  If you set up a default value in the G/L Offset field of the 
customer or supplier record, the system uses the value during transaction entry unless you override it.  Note: Do not use code 9999. It is reserved for 
the post program and indicates that offsets should not be created.

cReceiverRecordRCYNcharNONENONE

Code indicating whether the landed cost is to be displayed during Voucher Match or not.  The possible values are as follows:    Y A receipt 
record (F43121) is created, and the landed cost may be vouchered in the Voucher Match program.  The Landed Cost Code (LAND) field in 
the receipt record will contain a value of 2.    N A receipt record (F43121) is created, but the landed cost is not allowed to be vouchered in the 
Voucher Match program.  The Landed Cost Code (LAND) field in the receipt record will contain a value of 3.  The receipt record is necessary if 
the receipt is reversed. NOTE:   Journal entries are still created when the value is N.  As a result, you may want the Landed Cost AAI's 
(4385/4390) pointed to the same G/L account, in order to cancel out the entries.

cTypeTYPEcharNONENONE

A 1-character code that indicates whether to enforce security at the warehouse (W) level or at the company level. Only W level security is 
currently operational.

mnSequenceNumberSEQMATH_NUMERICNONENONE

A number that specifies the sequence of information.

cIncludeInUnitCostINYNcharNONENONE

Code indicating whether you want the landed cost to be added to the item's unit cost. Valid codes are:    Y Add the landed cost to the unit 
cost    N Do not add the landed cost to the unit cost

szSupplierNameALPHcharNONENONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

mnExchangeRateCRRMATH_NUMERICNONENONE

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

szBaseCurrencyCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szCostLevelLVLAcharNONENONE

User defined code (table 40/CA) designating an add-on cost. This code also specifies the sequence of the cost add-ons for a particular 
item or group of items.

szComputerIDCTIDcharNONENONE

mnJobnumberJOBSMATH_NUMERICNONENONE

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

mnNoOfLinesOnOrderNLINMATH_NUMERICNONENONE

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.

idhCursorGENLNGIDNONENONE

General purpose ID variable.

mnTriangulationRateFromTRR1MATH_NUMERICOPTNONE

The triangulation currency rate used to convert the From currency code to the Triangulation currency code.

mnTriangulationRateToTRR2MATH_NUMERICOPTNONE

The triangulation currency rate that used to convert from the Triangulation currency code to the To currency code.

cCurrencyConversionMethodCRCMcharOPTNONE

A value that specifies which method to use when converting from one currency to another. Valid values are:  Y  Multiplier method. The 
system multiplies the foreign amount by the multiplier exchange rate to calculate the domestic amount. Z Divisor method. The system divides the 
foreign amount by the divisor exchange rate to calculate the domestic amount.

szOrderSuffixSFXOcharOPTNONE

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.

mnJournalEntryLineNoJELNMATH_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.

Related Functions

None

Related Tables

None