Creating Sales Rule Action External — Exercises

Basic Data Setup

Configuration Characteristics

Windows:
Configuration Characteristics

The following characteristics and option values should be defined for the part configuration revision. 

Characteristic Config Data Type Config Value Type Option
GDSPARE1 Alpha Discrete Option 162, 163, 164, 165
GDSPARE2 Alpha Discrete Option 162, 163, 164, 165
GDCREATESPARE Alpha Discrete Option Clear, Create, Created

BDR Exercise for Creating Configuration Characteristics

Configuration Family and Configuration Characteristics

Windows:
Configuration Family

BDR Exercise for Creating Configuration Family and Attaching Characteristics

Configuration Parts

Windows:
Part
Part Configuration Revision

General Exercise for Creating Configuration Part

Main Exercises

Purpose: The purpose of this exercise is to enter a sales rule that will execute a predefined external method which will add specified spare parts in the configuration to the connected order.  

Windows:
Part Configuration Revision
Sales Rule

Note: When working with CTO parts and sales rules, you connect sales rules with conditions and actions as a layer on part configuration revision. The sales rules should be setup in such a way to make it impossible to create an invalid configuration which could not be produced. In IFS Applications you connect specific sales rules for the connected characteristics and options.

Creating Sales Rule Action External

  1. Open the Sales Rule window either from the Part Configuration Revision window or directly from the navigator.
  2. Query for the part XX-10 (EasyFlex Garage Door).

Note: You will enter the conditions and actions for part 10, so that an external method is executed. If you enter the sales parts and quantity in the configuration and the external method is triggered with this sales rule, the spare part lines will automatically be added.

  1. Create new a sales rule, enter the name SparePart in the Sales Rule Name field, and enter a description.
  2. Create a new condition line for the sales rule.
  3. Enter the condition as shown in the table below. 
    Operator (Open Parenthesis Type 1 Value 1 Relation Type 2 Value 2 )Close Parenthesis
        Char Value GDREMOTE Equal To Value IR  
  4. Continue and add the following action. 
    Action Type Item Value Type Value Quantity Type Quantity
    Attach Optional GDSPARE1        
    Attach Optional GDSPARE2        
    Attach Optional GDCREATESPARE        
    External DEMO_INSERT_SPARE        
  5. Save.
  6. Check that the status of the Part Configuration Revision is set as Released.
  7. Create a Sales Quotation or a Customer Order and create a configuration for the revision. Add IR as the value for GDREMOTE and choose sales part in the List of Values for GDSPARE1 and GDSPARE2 and set the quantity for the characteristics. Choose CREATE for the characteristic GDCREATESPARE.
  8. Save.
  9. Open the Customer Order window again and check the created order lines.