DerivedCalculationStringBreakup

Derived Calculation String Breakup

Minor Business Rule

Object Name: B3201320

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function will take the Derived Calculation Expression, extract the Segment Numbers and adds the Segments to the Segments Cache.
1.2Setup Notes and Prerequisites

The calling application is responsible for loading all appropriate key values.  The values needed to be passed on to the business function are Derived 
Calculation, Branch Plant, Parent Short Item Number.



1.3Special Logic

There is no special logic within this function.

2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
DERCDerived CalculationIY

KITItem Number Short KitIY

MCUCost CenterIY

JOBNJob NumberIY

DTAIError Message idON




2.4Processing 


1.Open Table F3291
2.Extract the Segment Number from the Derived Calculation String.

3.If it has a preceding '=' get the Short Item for that Item Number.

4.Get the Segment Default value from F3291

5.Add the Segment to Cache (B3200350) using Short Item Number, MCU, Segment Number (PEL) as keys and the associated Default Value.

6.Get the Next Segment Number.

7.Goto #2.

8.If No more Segments then Close the Table F3291.


^

Data Structure

D3201320 - Derived Calculation String Breakup

Parameter NameData ItemData TypeReq/OptI/O/Both
szDerivedCalculationDERCcharOPTNONE

An algebraic formula that specifies the quantity, price, hours, or a value associated with a rule. The following examples illustrate the syntax 
for possible derived calculations: Segment References     o S3 indicates segment 3.     o S3=Piston= indicates segment 3 in item 
Piston. Trigonometric and Logarithmic Functions     o SIN(20) indicates the sine of 20.     o COS(S3) indicates the cosine of segment 3.     o TAN(S4) indicates 
the tangent of segment 4.     o ARC(S3) indicates the arctangent of segment 3.     o LOG indicates log to base 10.     o LN indicates natural log.    
 o 2**5 indicates an exponent, 2 to the fifth power. Substring SUBSTR(S10,1,4) indicates that the substring from segment 10 starts at the first 
position of the string and includes the first 4 positions. Concatenations CONCAT(S3,S4) combines the values of segments 3 and 4. External 
Fields Specifies the fields from non-configurator tables that you want the system to access as part of a calculation. Use the ampersand character 
followed by the field name. For example, &T2AMTU(WD) indicates an amount field in the Item Supplemental Database table, and the WD 
data type. External Programs Specifies that a program external to the system is to be used for the calculation. Enter the name of the external 
program and EXTVAR in the Derived Calculations field. Smart Parts PS4 indicates a smart part number P2000 when the value of segment 4 is 
2000.

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

szCostCenterMCUcharOPTNONE

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.

mnJobnumberAJOBSMATH_NUMERICOPTNONE

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

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.

Related Functions

None

Related Tables

None