VerifyParentForCostSimulation

Verify Parent For Cost Simulation

Major Business Rule

Object Name: B3000860

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description
This function will determine if the item being processed should be included in the cost simulation 
run.  If the item does not exist in the T4101 file, the business function should return an error into 

DTAI.


1.1Purpose
This business function is called from P30820 cost simulation program in a custom section.  The 
processing for the item will continue only if the item is found in T4101.


1.2Setup Notes and Prerequisites


1.3Special Logic

2.Technical Specifications


2.4Processing 

1. Verify that the item passed in into DS ITM is in the T4101 file.  
A.  Fetch to T4101 with DS ITM.


2. If fetch failed, return messages.

2.1. If DS Call Type is equal to '1', return error messages.

2.2. If DS Suppress Error Message is not equal to '1',  SetGBRError and set error

message id to '0002'.


3.  If fetch was successful,

3.1.  Perform a special check if the user is performing a single level cost rollup.

3.1.1  If DS Single Level = '1' and IMORDW = '#'

If  DS Call Type is equal to '1', return error messages.

If DS Suppress Error Message is not equal to '1',  SetGBRError and 

set error message  id to '0002'.

         End.

3.2  Do the following if DS single level does not = '1'.

3.2.1  Return item's primary uom from T4101 (IMUOM1) into DS UOM1.

3.2.2  Return nothing into DS error message id because the program will be

checking for this to be blank.


^

Data Structure

D3000860 - Verify Parent For Cost Simulation

Parameter NameData ItemData TypeReq/OptI/O/Both
mnItemNumberShortITMMATH_NUMERICNONENONE

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

cSingleLevelVC01AcharNONENONE

This is a generic field used for video constants display.

cCallTypeEV01charNONENONE

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

cSuppressErrorMessageEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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.

szPrimaryUnitOfMeasureUOM1charNONENONE

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

Related Functions

None

Related Tables

None