SCENARIO DESCRIPTION:
Develop a configuration for an Item
SOLUTION
The individual steps for an optimal procedure when using the product configurator are listed below.
A bicycle is configured as an example.
1. Preparation
The product to be configured must be analyzed, determining the different specifications and a grouping must be considered. In most cases the result is a tree structure which can be overtaken into the configurator coding.
The Bicycle is grouped in 2 blocks:
- Design with Basic Equipment
- Accessories with additional parts
2. Creation of the coding
The following must be observed when the coding:
- The names for the blocks, parameters and set parameters may only be used once !!
Always remember that the processing/calculation of the parameters/set-parameters always happens from “top” to “bottom”. This means that the results/usage of parameters can only be passed downwards and never upwards.
(For testing and self studying an export file of the coding is attached)
2.1 Explanations of lines in coding
Some lines, blocks and parameters are exemplified in more detail.
2.1.1 Header Line
In the header are defined:
- Working with prices (Y/N) (Setting price list, displaying currency, take over price to SAP)
- Setting automatic creation of descriptions and setting for overtaken to SAP (Sales Order/Quotation)
2.1.2 Blocks
Two Blocks are defined for the example with the bicycle
Block “Design”:
Parameters:
- frame: a dropdown list with a cross reference of available Frames
- wheelsize: a radio box list with selectable sizes
- tire: a radio box list with possible manufactures, logic with dependence on the manufacturer
Result in parameter values:
- frame: itemcode of the selected frame
- tire: a number from 1 to 3 (will be a part of the itemcode of the tire)
Visibility rule (tire):
- switch possible Manufacturer for a previous selected wheel size
Block “Accessories”:
Parameters:
- handlebar: a radio box list with possible models (sportive or classic)
- lighting: a radio box list with selectable lamps (standard or LED)
- bell: a check box for selecting a bell
- bell_color: a radio box list with selectable color for the bell (only if bell selected)
Result in parameter values:
- handlebar: itemcode of the selected handlebar
- lighting: itemcode of the selected lighting
- bell: Y/N
- bell_color: red or blue
Visibility rule (bell_color):
- switch on/off the selection for the color of the bell
Set-parameters:
- so_code_tire
Generates the Itemcode for the tire
- so_code_compl_wheel
Generates the Itemcode for the wheel (sub-assembly)
- so_qty_spoke
Calculates the quantity of the spokes (for the wheel)
- so_bell_red_active
Creates the flag (Y or no) for setting the red bell active or not active (in BOM list)
- so_bell_blue_active
Creates the flag (Y or no) for setting the blue bell active or not active (in BOM list)
3. Test of the Coding
For testing you have a button “Test”. This button can be pressed at any time to check the current coding.
The contents of the parameters/variables can also be helpful during the test. To get these values, click on "Default" in the header... which change to “Contents”. The current parameters of values are now visible in the column “Contents”.
4. Global definitions for the configuration (prices and descriptions)
You can get into the definition area with a double-click in the header line of the coding
Following window will be opened:
You will find settings for:
- Price (working with prices in the Configurator)
- Text Brief description (Definitions for the brief description)
- Text Description (Definitions for the description)
4.1 Price Settings
- Activate Price Calculation
Define via selecting if you want to work with prices in the Configurator
- Default Pricelist
Define where the prices should be come from
- Display Currency
Define the currency (Main, System or Business Partner)
- Currency for manual Price
Selection list with available currencies (e. g. EUR, USD)
4.2 Generate Text Brief description
Press Tab “Text Brief Description”
- Select “Generate active”
- Write your formula for the description into the text field. Therefor you can also select the formula language.
4.3 Generate Brief description
Press Tab “Brief Description”
- Select “Generate active”
- Write your formula for the description into the text field. Therefor you can also select the formula language.
5. Transfer of Price, Brief Description and Description to SAP
It is possible to write the Price, the Brief Description and the Description into the line of SAP (Sales Order, Sales Quotation) after saving and leaving the configurator.
Of course, this requires that the configurator was called from SAP.
5.1 Price
Transferring the Price will only be possible if “Activate Price Calculation” is selected. In addition, it must be defined where the price should be copied.
Script:
You need a script file “product_configurator.src” in your Beas Project folder.
This file defines in which field of the SAP line, the Price is to be transferred.
(For more information see Beas F1-Help)
Price Column:
Transfer the Price into the SAP field “Price”.
No:
No transfer
5.2 Brief Description
Transferring the Brief Description will only be possible if “Generating Activate” is selected. In addition, it must be defined where the Brief Description should be copied.
Script:
You need a script file “product_configurator.src” in your Beas Project folder.
This file defines in which field of the SAP line, the Brief Description is to be transferred.
(For more information see Beas F1-Help)
Column Item description:
Transfer the Brief Description into the SAP field “Item Description”.
No:
No transfer
5.3 Description
Transferring the Description will only be possible if “Generating Activate” is selected. In addition, it must be defined where the Description should be copied.
Script:
You need a script file “product_configurator.src” in your Beas Project folder.
This file defines in which field of the SAP line, the Description is to be transferred.
(For more information see Beas F1-Help)
Column Free Text:
Transfer the Description into the SAP field “Freetxt”
No:
No transfer
5.4 Script for transferring Price and Description to SAP
For a transfer by a Script you need the file “product_configurator.src” in your Beas Project folder.
Example:
//********************************************
//* Beas Product Configurator
//*
//* Interface definitions for return value
//*
//* (c) Boyum IT Solutions
//********************************************
//
//*** initialization of the interface ***
function pk_init
// please, do not change this function part !!!!
setvar=v_pk_init=Y
end
//
//*** transfer the TOTAL PRICE from the configurator
//*** into column 14 of actual line (changeable)
//*** to SAP B1 form SALES ORDER or QUOTATION
function write_price
// the PRICE is in the be.as variable "str_parm.c_parm4"
parent=item=38=col=14=value=<str_parm.c_parm4>
end
//
//*** transfer the BRIEF DESCRIPTION from the configurator
//*** into column 163 of actual line (changeable)
//*** to SAP B1 form SALES ORDER or QUOTATION
function write_b_descr
// BRIEF DESCRIPTION is in the be.as variable "str_parm.s_parm4"
parent=item=38=col=163=string=<str_parm.s_parm4>
end
//
//*** transfer the DESCRIPTION from the configurator
//*** into column U_item_descr of actual line
//*** (changeable)
//*** to SAP B1 form SALES ORDER or QUOTATION
function write_descr
// the DESCRIPTION is in the be.as variable "str_parm.s_parm5"
parent=item=38=col=U_item_descr=string=<str_parm.s_parm5>
end
6. Assignments of the Parameters from the Configurator to the Item
In this configurator example, only the BOM list will be changed with parameters.
Changing of operation properties is generally possible in the same way.
6.1 Set Parameter for the Itemcode of the Frame
Click on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
The Itemcode of the selected frame is inserted at runtime (e. g. creation of a Work Order).
6.2 Set Parameter for complete wheel (BOM assembly)
Click on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
The Itemcode of the selected wheel is inserted at runtime (e. g. creation of a Work Order).
6.3 Set Parameter for quantity of spokes (in Wheel assembly)
Click on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
The Quantity of the spokes are inserted at runtime (e. g. creation of a Work Order).
6.4 Set Parameter for the Itemcode of the Tire
Click on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
6.5 Set Parameter for the Itemcode of the Handlebar
Klick on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
6.6 Set Parameter for the Itemcode of the Lighting
Click on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
6.7 Set Parameter for the Active-Flag of the blue Bell
Click on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
6.8 Set Parameter for the Active-Flag of the red Bell
Click on the Formula-Sign and select type “Variant” and the Name of the Parameter, defined in the Configurator.
Comments
0 comments
Please sign in to leave a comment.