B3003780GenericInterface

Cache Process Cost Parent And Child

Minor Business Rule

Object Name: B3003780

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Data Structure

D30UCB - Universal Cache Browser - Small

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeACTNcharOPTNONE

A code that specifies the action that is performed. Valid values are: A Add C Change

szCacheNameA0charOPTNONE

Category Codes Argentina

cReturnCodeGFL1charOPTNONE

Reserved by J.D. Edwards.

mnColumnsMN15D0MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

idCacheCursorGENLNGIDOPTNONE

General purpose ID variable.

idStringArrayGENLNGIDOPTNONE

General purpose ID variable.

Related Functions

None

Related Tables

None
CostParentAndChildCache

CostParentAndChildCache

Cache Process Cost Parent And Child

Minor Business Rule

Object Name: B3003780

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1. Functional Description

1.1 Purpose

The purpose of this business function is to manipulate Parent Child CACHE. This cache holds parent 

child information from the BOM for those items that will be costed.


2. Technical Specification

• 2.4 Processing
• Perform setup functions
• Initialize cache to get handle.
• Retrieve cursor (either from data pointer or new CACHE cursor)
• Return CACHE cursor upon requested
•  Set  DS Cache Error Code = '0';   
•  If not successful Set error "032E,"  "Error Processing Cache".

• Processing Based on Mode.
• If Process Mode is "1" - GET:
a.Open cursor, reset cursor.
b.Retrieve the first element on the cache matching the key values passed as input; 

the number of keys  be used is passed in the input parameters,  If  "0" fetch first 

element in the list. 

c.Load the values from the retrieved element into the data structure to be passed 

back to the calling program. 

d.If get fails DS Cache Error Code = '6'.


• If Process Mode is "2" - ADD :
a.Add new record to CACHE.
b.If add fails set error "032E" and set DS Cache Error Code = '4'.


• If Process Mode is "3" - UPDATE :
a.Update record in CACHE with new value.
b.If add fails set error "032E" and set DS Cache Error Code = '7'.


• If Process Mode is "4" - DELETE:
a.Delete all elements on the cache matching the key values passed as input.
b.If delete fails DS Cache Error Code  = '5'.


• If Process Mode is "5" - DELETE ALL:
a.Delete all elements in the cache.
b.If delete fails DS Cache Error Code  = '5'.


• If Process Mode is "6" - GET NEXT:
a.Retrieve the next element on the cache matching the key values passed as input 
(the 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). 

b.Load the values from the retrieved element into the data structure to be passed 

back to the calling program.

c.If there are no more elements close cursor and set DS Cache Error Code = '1'.


• If Process Mode is "7" - ADD/UPDATE:
a.Fetch record with full key
b.If record in CACHE is found, update record with new value.

c.Otherwise add new record to CACHE.

d.If add fails set error "032E" and set DS Cache Error Code = '7'.


• If Process Mode is "8"  END
a.Perform cleanup functions (Terminate cache).

• If  Process Mode is "9" - CLOSE CURSOR:
a.Perform close cursor.


^

Data Structure

D3003780 - Cache Process Cost Parent And Child

Parameter NameData ItemData TypeReq/OptI/O/Both
cCacheActionCodeEV01charOPTNONE

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

nNumberOfKeysINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

cReturnCursorEV01charOPTNONE

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

idCursorGENLNGIDOPTNONE

General purpose ID variable.

cCacheCodeErrorEV01charOPTNONE

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

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharOPTNONE

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.

mnJobNumberJOBSMATH_NUMERICOPTNONE

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

mnItemNumberITMMATH_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

szItemBranchCMCUcharOPTNONE

A secondary or lower-level business unit. The system uses the value that you enter to indicate that a branch or plant contains several 
subordinate departments or jobs. For example, assume that the component branch is named MMCU. The structure of MMCU might be as follows:    
Branch/Plant - (MMCU)       Dept A - (MCU)       Dept B - (MCU)       Job 123 - (MCU)

mnParentItemNumberKITMATH_NUMERICOPTNONE

The system provides for three separate item numbers.    1.   Item Number (short) - An eight-digit, computer assigned, completely 
non-significant item number.    2.   2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3.   3rd Item Number - Another 
25-digit, free form, user defined alphanumeric item number.

szParentBranchMMCUcharOPTNONE

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

mnUnitsBatchQuantityBQTYMATH_NUMERICOPTNONE

The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components 
based on the amount of finished goods produced. For example, 1 ounce of solvent is required per unit up to 100 units of finished product. 
However, if 200 units of finished product is produced, 2 ounces of solvent are required per finished unit. In this example, you would set up batch 
quantities for 100 and 200 units of finished product, specifying the proper amount of solvent per unit.

mnPrimaryConvertedQTYQNTYMATH_NUMERICOPTNONE

The number of units that the system applies to the transaction.

szUnitOfMeasureBQTYUOMcharOPTNONE

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

szUnitOfMeasurePrimaryUOM1charOPTNONE

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 
(each) or KG (kilogram).

cFixedOrVariableQtyFORQcharOPTNONE

A code that indicates if the quantity per assembly for an item on the bill of material varies according to the quantity of the parent item 
produced or is fixed regardless of the parent quantity. This value also determines if the component quantity is a percent of the parent quantity. Valid 
values are:    F Fixed Quantity    V Variable Quantity (default)    %   Quantities are expressed as a percentage and must total 100%For 
fixed-quantity components, the Work Order and Material Requirements Planning systems do not extend the component's quantity per assembly 
value by the order quantity.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnPercentOfScrapSCRPMATH_NUMERICOPTNONE

The percentage of unusable component material that is created during the manufacture of a particular parent item.  During DRP/MPS/MRP 
generation, the system increases gross requirements for the component item to compensate for the loss. Note: Shrink is the expected loss of 
parent items (and hence, components) due to the manufacturing process. Shrink and scrap are compounded to figure the total loss in the 
manufacture of a particular item. Accurate shrink and scrap factors can help to produce more accurate planning calculations. Enter percentages 
as whole numbers: 5 percent as 5.0

mnStepScrapPercentSTPPMATH_NUMERICOPTNONE

A value that the system uses to increase or decrease the amount of materials to account for loss within the operation. The system updates 
this value on Enter/Change Bill of Material when you run the Planned Yield Update program. The system calculates this value by 
compounding the yield percentages from the last operation to the first operation. Use a processing option in Enter/Change Routing to enable the 
system to calculate the component scrap percent.

szItemNumber2ndKitKITLcharOPTNONE

The system provides for three separate item numbers.    1.   Item Number (short) - An eight-digit, computer assigned, completely 
non-significant item number.    2.   2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3.   3rd Item Number - Another 
25-digit, free form, user defined alphanumeric item number. This is used in a parts list as either a parent or component number. In the Equipment 
Management system, this item is used for memo purposes only.

szItemNumber3rdKitKITAcharOPTNONE

The system provides three separate item numbers:    1. Item Number (short) - An eight-digit, computer assigned, completely non-significant 
item number.    2. 2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3. 3rd Item Number - Another 25-digit, 
free form, user defined alphanumeric item number.

mnFeatureCostPercentF$RPMATH_NUMERICOPTNONE

A percentage that the Simulate Cost Rollup program uses to calculate the cost of a feature or option item as a percentage of the total cost 
of the parent. Enter the percentage as a whole number, for example, enter 5% as 5.0.

nSequenceNumberINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

mnComponentNumberCPNBMATH_NUMERICOPTNONE

A number that specifies how the system displays the sequence of components on a single-level bill of material. This number initially 
indicates the sequence in which a component was added to the bill of material. You can modify this number to change the sequence in which the 
components appear.

szWorkCenterMCUcharOPTNONE

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.

cCostByWorkCenterCWCcharOPTNONE

A code, maintained in the Manufacturing Constants program (P3009), that indicates whether the system tracks cost variances for discrete 
and process items on a summarized level in the Item Cost Component Add-Ons table (F30026) or on a detailed level in the Item Cost 
Component Detail table (F300261). Valid values are: Y Yes. Maintain costs on a detailed level by cost component and work center. N No. Maintain costs 
on a summarized level by cost component only.

Related Functions

None

Related Tables

None