F43092ZReceiptRoutingCache

F43092Z Receipt Routing Cache

Major Business Rule

Object Name: B4301600

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose

This function is used to store information about a movement or disposition before the information is 

written to the application tables.


Setup Notes and Prerequisites

None


Special Logic

This function uses a cache to store the movement or disposition information.  A disposition is noted 

by putting a '1' in the Disposition Flag (DISF) parameter.


The modes are as follows:

1Add/Update

2Get/Get Next

8Delete entire cache

9Delete specific record


The entire cache key is Computer ID (CTID), Job Number (JOBS), Disposition Flag (DISF), Order Number 

(DOCO), Order Type (DCTO), Order Company (KCOO), Order Suffix (SFXO), Line Number (LNID), Receipt Line 

Number (NLIN), Unit of Measure (UOM), Operation Sequence (OPRS), and Operation Sequence To(OSTO).


Technical Specification


If mode = '1'

Check if record is already in cache

If it is,

Update record in cache

Otherwise,

Add record to cache


If mode = '2'

If we do not have a valid cursor,

Open a cursor

Else

Restore the cursor

Get the next record matching the keys of Computer ID and Job Number


If mode = '8'

Delete all records in cache matching Computer ID and Job Number


If mode = '9'

Delete the record matching the cache key



Data Structure

D4301600 - F43092Z Receipt Routing Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputerIDCTIDcharOPTNONE

mnJobNumberJOBSMATH_NUMERICOPTNONE

Special Input Expected
Use one job number consistently for this field, for example, the Receipts Job Number.

^

szUserIDUSERcharOPTNONE

The code that identifies a user profile.

szProgramIDPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

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

szOrderTypeDCTOcharOPTNONE

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

szOrderCompanyKCOOcharOPTNONE

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.

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.

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

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

szUOMFromUOMcharOPTNONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

mnOperationSequenceFromOPRSMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

cReverseDispositionFlagRVScharOPTNONE

A code that indicates whether the transaction is eligible for reversal or has already been reversed. Valid values are:    Blank Transaction is 
eligible to be reversed.    N       Transaction is not eligible to be reversed.    Y       Transaction has been reversed.    R       Transaction is a 
reversal audit record.

mnBatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

szBatchTypeICUTcharOPTNONE

A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction. 
Valid values are set up in user defined code table 98/IT. You cannot assign new values. All batch types are hard coded.

cBatchStatusBSTcharOPTNONE

A code that indicates whether a batch of transactions has been posted, is ready to post, is still open for entry, and so on.

jdBatchDateDICJJDEDATEOPTNONE

The date of the batch. If you leave this field blank, the system date is used.

jdGLDateDGLJDEDATEOPTNONE

A date that identifies the financial period to which the transaction is to be posted.  The company constants specify the date range for each 
financial period. You can have as many as 14 periods. Generally, period 14 is used for audit adjustments. The system validates this field for 
PBCO (posted before cutoff), PYEB (prior year ending balance), PACO (post after cutoff), and WACO (post way after cutoff) messages.

jdReceiptDateRCDJJDEDATEOPTNONE

The date you received this purchase order line.

cCurrencyModeCRRMcharOPTNONE

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

mnTrnToPrimaryCnvFactorCNV1MATH_NUMERICOPTNONE

The mathematical relationship showing the conversion between the primary and secondary units of measure.

mnPrchToPrimaryCnvFactorCNV2MATH_NUMERICOPTNONE

The mathematical relationship showing the conversion between the primary and purchasing units of measure.

mnQuantityToMoveQTYMMATH_NUMERICOPTNONE

The number of units that have been either moved or dispositioned.

mnQuantityAtOperationQTYOMATH_NUMERICOPTNONE

The number of units currently at this operation.

mnQuantityAdjustedQTYAMATH_NUMERICOPTNONE

The number of units that you adjusted during the receipt routing.

mnQuantityRejectedQTYJMATH_NUMERICOPTNONE

The number of units that you rejected during receipt routing.

mnQuantityReturnedQTYRMATH_NUMERICOPTNONE

The number of units that you returned to the supplier through receipt routing. You can return goods for credit or for replacement. The system 
writes these transactions as new lines on the original purchase order.

mnQuantityReworkedQTYWMATH_NUMERICOPTNONE

The number of units that will be reworked as a result of receipt routing.

mnQuantityScrappedQTYCMATH_NUMERICOPTNONE

The number of units that you scrapped during receipt routing.

szAdjustedReasonCodeRCDcharOPTNONE

A user defined code (42/RC) that explains the purpose for a transaction. For example, you can indicate the reason that you are returning 
items.

szRejectedReasonCodeRCDOW1charOPTNONE

A user defined code (system 42/type RC) that explains the purpose for a transaction. For example, you can use a code to indicate a 
transaction that involves returned items, such as goods that were damaged in shipment or the overshipment of goods.

szReturnedReasonCodeRCDOW2charOPTNONE

A user defined code (system 42/type RC) that explains the purpose for a transaction. For example, you can use a code to indicate a 
transaction that involves returned items, such as goods that were damaged in shipment or the overshipment of goods.

szReworkedReasonCodeRCDOW3charOPTNONE

A user defined code (system 42/type RC) that explains the purpose for a transaction. For example, you can use a code to indicate a 
transaction that involves returned items, such as goods that were damaged in shipment or the overshipment of goods.

szScrappedReasonCodeRCDOW4charOPTNONE

A user defined code (system 42/type RC) that explains the purpose for a transaction. For example, you can use a code to indicate a 
transaction that involves returned items, such as goods that were damaged in shipment or the overshipment of goods.

cReplaceDispositionAdjRPLcharOPTNONE

A code that indicates whether you want to replace the items that you are returning. Valid values are:    Y Replace the items. The system 
credits the purchase order for the items you are returning and creates a new detail line for the replacement items. The Replacement Information 
window appears after you disposition the items so that you can enter information for the new order detail line.    Blank Do not replace the 
items. The system credits the purchase order for the items you are returning.

cReplaceDispositionRejRPLOW1charOPTNONE

This code is used in receipt routing and indicates whether the returned items should be replaced. Valid values are:    Y Replace the items.      
      The system credits the purchase order with the amount and creates a new line for replacement. The system displays the Replacement 
Information window after you enter dispositions and includes returned items among them.    blank Do not replace the items.            The system 
credits the purchase order with the amount of the returned items.

cReplaceDispositionRetRPLOW2charOPTNONE

This code is used in receipt routing and indicates whether the returned items should be replaced. Valid values are:    Y Replace the items.      
      The system credits the purchase order with the amount and creates a new line for replacement. The system displays the Replacement 
Information window after you enter dispositions and includes returned items among them.    blank Do not replace the items.            The system 
credits the purchase order with the amount of the returned items.

cReplaceDispositionRewRPLOW3charOPTNONE

This code is used in receipt routing and indicates whether the returned items should be replaced. Valid values are:    Y Replace the items.      
      The system credits the purchase order with the amount and creates a new line for replacement. The system displays the Replacement 
Information window after you enter dispositions and includes returned items among them.    blank Do not replace the items.            The system 
credits the purchase order with the amount of the returned items.

cReplaceDispositionScrRPLOW4charOPTNONE

This code is used in receipt routing and indicates whether the returned items should be replaced. Valid values are:    Y Replace the items.      
      The system credits the purchase order with the amount and creates a new line for replacement. The system displays the Replacement 
Information window after you enter dispositions and includes returned items among them.    blank Do not replace the items.            The system 
credits the purchase order with the amount of the returned items.

mnDocumentNumberDOCMATH_NUMERICOPTNONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

mnOperationSequenceToOSTOMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

szOperationCodeFromOPRCcharOPTNONE

A user defined code (43/OC) that represents an operation or step within the receipt route.

szOperationCodeToOPRTcharOPTNONE

A user defined code (43/OC) that identifies the routing operation or step to which items were moved.

mnShortItemNumberITMMATH_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

jdLedgerDateUPMJJDEDATEOPTNONE

The date that specifies the last update to the file record.

mnLedgerTimeTDAYMATH_NUMERICOPTNONE

The computer clock in hours:minutes:seconds.

mnPOLineNumberPOLNMATH_NUMERICOPTNONE

A number that indicates the line number that was added to a purchase order when goods were returned to the supplier.

cModeMODEcharOPTNONE

Significant Data Values
1 - Add/Update

2 - Get/Get Next

8 - Delete All

9 - Delete Specific Record


^

idF43092ZCacheDataPointerGENLNGIDOPTNONE

Special Input Expected
Special Output Returned

This field stores a cursor used by mode 3.  It needs a value of '0' the first time the function is 

called in mode 3.  Then the passed out value needs to be passed back in every subsequent call.  The 

value may change between calls and the new value needs to be passed back in.

^

cDispositionFlagDISFcharOPTNONE

Significant Data Values
1 - Disposition

blank - Movement



^

cGLEditLineProcessedFlagEV01charOPTNONE

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

mnPOProcessIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnPOTransactionIDTCIDMATH_NUMERICOPTNONE

mnQuantityOnCreditPOQTYMATH_NUMERICOPTNONE

The number of units associated with an asset.

mnRcvdNotVchrdJEJEL5MATH_NUMERICOPTNONE

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

mnRoutingOperJEJEL0MATH_NUMERICOPTNONE

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

mnProrRecptJEJELNNMBRMATH_NUMERICOPTNONE

The line number of a row in the general ledger.

mnAPTradeJEJELEMATH_NUMERICOPTNONE

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

mnNumberKeysNKEYSMATH_NUMERICOPTNONE

The number of keys in an index that will be used to retrieve, delete, or update a record.

szRecNotVoucherAcct_VANIVANIcharOPTNONE

This is the received not vouchered account number associated with the PO Receiver table (F43121).

Related Functions

None

Related Tables

F43092Z Receipt Routing Work File