MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference Library > Distribution > Expert Configurator > Key Concepts and Procedures > Expert Configurator Rules > Internal Variable Rule

Internal Variable Rule

 

The internal variable rule is used to retrieve any field value, such as a standard cost, from the Part Master File or the Warehouse Balance File for any specified part and warehouse.  The rule will store the retrieved value in a secondary variable, which can be used for further processing.

Identification

System Identifier:          22

Valid Rules Categories: Sales Order Entry

                                    Manufacturing

                                    Pricing

Action Expression 1

Description:                  Variable Name/Company/Warehouse/Part Number

Expression Type:          Syntax

Length:                         320

Interpreted Type:           Alphanumeric

Note:                            The variable name, company, and warehouse are not interpreted fields.  The part number is interpreted by the Expert Configurator.

Action Expression 2

Description:                  Field Name

Expression Type:          Non-syntax (text)

Length:                         14

Interpreted Type:           Alphanumeric

Add an Internal Variable Rule

1.   Display the Rules Maintenance Function Select screen.

a.   Select the Expert Configurator option from the System Application Menu.

b.   Select the Sales Order, Pricing, or Manufacturing Rule Maintenance options from the Expert Configurator Application Menu to display the select screen.

2.   Enter the Function Select information.

a.   Assign a unique number to the rule.

b.   Enter the action code for an internal variable rule in the Action Code field.  Action codes are defined in category Y03 on the Reference File.

c.   Enter a 1 (addition) in the Maintenance Code field.

d.   Press the Enter key to display the header screen.

3.   Enter the header information.  See the Standard Rules Header screen (EC100S03) in the Screens section of this manual for more information.

4.   Press the Enter key to display the detail screen.

5.   Enter the detail information.

a.   Enter the condition statement.  (Optional)

The condition determines if the rule result is true or false.  If the condition expression is interpreted as true, the action expressions are processed.  Rules are released based on the result of the condition.  If no condition is entered, the condition is interpreted as true. 

b.   Enter the value for the variable name/Company/Warehouse/Part Number.  (Required.)

Enter the name of the variable.  This is the name of the secondary variable that will be created to store the retrieved field value.  This field is not interpreted by the Expert Configurator.

Enter the company and warehouse, which must be the company/warehouse combination for the part number entered.  These fields are not interpreted by the Expert Configurator.

Enter the part number for which the variable will be used.  The part number is interpreted by the Expert Configurator and must be in correct syntax.  Enter the part number within quotation marks, as it exists in the Part Master File, or calculate the part number using a variable.  See Rule Syntax in the key concepts section of the Overview for more information.

c.   Enter the field name.  (Required.)

Enter the name of the field retrieved from the Part Master File or Warehouse Balance File.  This field is not interpreted by the Expert Configurator.

6.   Press the Enter key to add this internal variable rule to the Rule Master File.

Change an Internal Variable Rule

1.   Select the Sales Order, Pricing, or Manufacturing Rule Maintenance option from the Expert Configurator Application Menu.

2.   On the Rule Maintenance Function Select screen:

a.   Enter the internal variable rule number in the Rule Number field.

b.   Enter a 2 in the Maintenance Code field to change the header information for the rule.  Enter a 3 in the Maintenance Code field to change the detail information for the rule.

3.   Change the descriptive data for the rule and press the Enter key.

4.   If all fields are valid, the rule is changed on the Rule Master File.

Reactivate or Deactivate an Internal Variable Rule

1.   Select the Rule Maintenance option from the Configuration Menu.

2.   On the Rule Maintenance Function Select screen:

a.   Enter the internal variable rule number in the Rule Number field.  All rules released by this rule must be deactivated before this rule can be deactivated.

b.   Enter a 4 in the Maintenance Code field to deactivate the rule.  Enter a 5 in the Maintenance Code field to reactivate the rule.

3.   Press the Enter key to deactivate or reactivate the rule.

4.   Press F3 to exit without deactivating or reactivating the rule.