1.Functional Description
1.1Purpose
This function will perform Get, Add, Update, Delete, Delete All, Get Next, Add/Update, and Terminate
functions on the Price/Cost Adjustments cache used in Configurator Order Processing (P3294, X3294,
P32943).
1.2Setup Notes and Prerequisites
The calling application is responsible for loading all appropriate key values to the data structure
and identifying the number of keys to use in retrieval/update processes.
Cache Action Code
'2' Add - add a cache element.
'3' Update - update a cache element.
'4' Delete - delete a cache element.
'5' Delete All - delete all cache elements
'6' Get Next - retrieve the next cache element
'7' Add/Update - will add if element does not exist, will change if it does exist.
'8' Terminate - terminate cache
'9' Close cursor
Number of Keys
key values for a Get, Update, Delete, Get Next, and Add/Update.
A zero may be passed to retrieve or update the first record.
1.3Special Logic
There is no special logic within this function.
2.Technical Specifications
2.4Processing
I. Perform setup functions
B.Retrieve cursor (either from data pointer or new CACHE cursor)
C.Return CACHE cursor upon requested
D. Set DS Cache Error Code = '0';
E. If not successful Set error "032E," "Error Processing Cache".
II. Processing Based on Mode.
2.Retrieve the first element on the cache matching the key values passed as input; the
number of keys to be used is passed in the input parameters, If "0" fetch first element in the
list.
3.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
4.If get fails DS Cache Error Code = '6'.
B. If Process Mode is "2" - ADD:
2.If add fails set error "032E" and set DS Cache Error Code = '4'.
2.If record in CACHE is found, update record with new value.
2.If delete fails DS Cache Error Code = '5'.
E. If Process Mode is "5" - DELETE ALL:
2.If delete fails DS Cache Error Code = '5'.
cursor should have been set through a previous "Get" action, i.e. process mode "1", if number of
keys is "0" then fetch next record with out using any key).
2.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
3.If there are no more elements close cursor and set DS Cache Error Code = '1'.
G. If Process Mode is "7" - ADD/UPDATE:
2.If record in CACHE is found, update record with new value.
This function will be used to manipulate CACHE Process Price Cost
D3200400 - Cache Process Price Cost
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cCacheActionCode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
nIndexNumber | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
nNumberOfKeys | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cReturnCursor | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
idCursor | GENLNG | ID | OPT | NONE |
General purpose ID variable. | ||||
cCacheCodeError | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessage | SUPPS | char | OPT | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szErrorMessageID | DTAI | char | OPT | NONE |
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
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnConfigurationIDNumber | CFGID | MATH_NUMERIC | OPT | NONE |
An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables. | ||||
mnComponentIDNumber | CFGCID | MATH_NUMERIC | OPT | NONE |
A number that represents a component in a configuration. This number, which is generated by next numbers, always restarts at 1 and
| ||||
mnSequenceNumber | SEQN | MATH_NUMERIC | OPT | NONE |
A number used to organize the table into a logical group for online viewing and reporting. | ||||
szLineType | LNTY | char | OPT | NONE |
A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as
| ||||
cPriceRollup | PRU | char | OPT | NONE |
A user defined code (32/PP) that indicates whether the price or cost of an add-on is included in the price or cost of the parent configured
| ||||
mnAmountExtendedCost | ECST | MATH_NUMERIC | OPT | NONE |
For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the
| ||||
mnAmountExtendedPrice | AEXP | MATH_NUMERIC | OPT | NONE |
The number of units multiplied by the unit price. | ||||
mnAmountForeignExtCost | FEC | MATH_NUMERIC | OPT | NONE |
The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units. | ||||
mnAmountForeignExtPrice | FEA | MATH_NUMERIC | OPT | NONE |
The product of the foreign price times the number of units. | ||||
szDescriptionLine1 | DSC1 | char | OPT | NONE |
Brief information about an item; a remark or an explanation. | ||||
cUserAddedPriceCost | SOCF | char | OPT | NONE |
A code that indicates whether the item, price adjustment, or cost adjustment was added to the configuration by a cross-segment editing rule
| ||||
mnMBFLineIndex1 | LNIX | MATH_NUMERIC | OPT | NONE |
mnMBFLineIndex2 | LNIX | MATH_NUMERIC | OPT | NONE |
mnMBFLineIndex3 | LNIX | MATH_NUMERIC | OPT | NONE |
mnMBFLineIndex4 | LNIX | MATH_NUMERIC | OPT | NONE |
mnMBFLineIndex5 | LNIX | MATH_NUMERIC | OPT | NONE |
mnLineNumber | LNID | MATH_NUMERIC | OPT | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
mnRelatedLineNumber | RLIN | MATH_NUMERIC | OPT | NONE |
This field is not updated by the receipt applications; it is always populated with the value zero. | ||||
cFixedOrVariableQuantity | FOVQ | char | OPT | NONE |
Reserved by J.D. Edwards
A code that specifies whether the quantity of a configured item varies according to the quantity of the parent item
| ||||
mnAtoRuleNumber | ATO# | MATH_NUMERIC | OPT | NONE |
The number associated with a set of cross-segment editing rules or assembly inclusion rules. | ||||
mnAtoSeqNumber | ATOS | MATH_NUMERIC | OPT | NONE |
The Sequence number is the rule number within an edit group of cross-segment editing rules or assembly inclusion rules. You can insert a
| ||||
mnUniqueKeyIDInternal | UKID | MATH_NUMERIC | OPT | NONE |
This field is a unique number used to identify a record in a file. | ||||
cAtoLineType | ATOT | char | OPT | NONE |
A value that identifies whether the resulting value of the assembly inclusion rule is a part number, price, routing operation, or calculated
| ||||
mnPriceHistoryAltKey | AKID | MATH_NUMERIC | OPT | NONE |
A value that specifies an alternate key in the Price Adjustment Ledger File table (F4074). | ||||
mnParentPrimaryQty | RSQE1 | MATH_NUMERIC | OPT | NONE |
A number that specifies how many related items are associated with a particular item on an Engineering Change Order (ECO) parts list. A
| ||||
szParentPrimaryUOM | UOM1 | char | OPT | NONE |
A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA
| ||||
mnQtyOrderMultiples | ATMU | MATH_NUMERIC | OPT | NONE |
Reserved by J.D. Edwards The result of a derived calculation that will be used to extend the quantity of an item. | ||||
mnAmountUnitCost | UNCS | MATH_NUMERIC | OPT | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
mnAmountForeignUnitCost | FUC | MATH_NUMERIC | OPT | NONE |
Amount - Foreign Unit Cost | ||||
mnAmountPOUnitCost | UNCS | MATH_NUMERIC | OPT | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
mnAmountPOForeignUnitCost | FUC | MATH_NUMERIC | OPT | NONE |
Amount - Foreign Unit Cost | ||||
mnAmountPOExtendedCost | ECST | MATH_NUMERIC | OPT | NONE |
For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the
| ||||
mnAmountPOForeignExtCost | FEC | MATH_NUMERIC | OPT | NONE |
The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units. | ||||
mnAmountTransferExtCost | ECST | MATH_NUMERIC | OPT | NONE |
For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the
| ||||
mnAmountTransferForgnExtCost | FEC | MATH_NUMERIC | OPT | NONE |
The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units. | ||||
mnAmountTransferUnitCost | UNCS | MATH_NUMERIC | OPT | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
mnAmountTransferForgnUnitCost | FUC | MATH_NUMERIC | OPT | NONE |
Amount - Foreign Unit Cost | ||||
mnAmountUnitPrice | UPRC | MATH_NUMERIC | OPT | NONE |
The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table
| ||||
mnAmountForeignUnitPrice | FUP | MATH_NUMERIC | OPT | NONE |
The foreign price per unit. |
None |
None |