on 04-24-2015 9:25 PM
Hello All, Thanks.
Could you pls put some light on these questions-
1. There is Char "COLOR" with 10 different values (10 different colors)...but selection should allow selecting only maximum 4 values...if its more than 4 values then system should display error message.
2.Another Char is "Percentage" and each color will have number of percentage value but total value should not go more than 100% or less than 100%.
Regards
SUNIL
Dear Sunil,
Below is one of the method to achieve the above requirement. Please check & let us know.
1. Create two numerical characterisitcs COUNT1, COUNT2
2. Create a procedure:
$SELF.COUNT1 =0,
$SELF.COUNT1 = $SELF.COUNT1 +1 IF $SELF.COLOR ='RED',
$SELF.COUNT1 = $SELF.COUNT1 +1 IF $SELF.COLOR ='GREEN',
$SELF.COUNT1 = $SELF.COUNT1 +1 IF $SELF.COLOR ='BLACK',
$SELF.COUNT1 = $SELF.COUNT1 +1 IF $SELF.COLOR ='BLUE',
$SELF.COUNT1 = $SELF.COUNT1 +1 IF $SELF.COLOR ='WHITE'
etc for all colors...
This will increment the value of COUNT1.
3. Create another procedure to calculate the total percentage into COUNT2.
4. Create Dependency Net:
OBJECTS:
A IS_A (300) KMAT_CLASS.
CONDITION:
A.COUNT1 > 4,
A.COUNT2 <> 100
RESTRICTION:
FALSE
Regards,
Senthilkumar SD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Senthilkumar, Thanks.
I am getting below syntax error....any thought..
E28110 Keyword RESTRICTION: expected
E28025 Syntax error in constraint
Code is as below:-
--------------------------------------------
OBJECTS:
MAT1 IS_A(300) SIZE.
CONDITION:
MAT1.COUNT1 > 4,
MAT1.COUNT2 <> 100.
RESTRICTION:
FALSE
--------------------------------------------------
Regards
SUNIL
Hello Senthil, Thanks.
Yes...I did and its work for COUNT1 and not COUNT2.
Pls check attached.
1 more question- Header & component materials base unit of measure is "PC" and sales unit "FT2"...when i create order with SUOM "FT2" i see the correct calculation as below-
COLOR - Qty 100 - "FT2" - this is header material
RED - Qty 30 - FT2 (30%) - Component 1
BLACK - Qty 30 - FT2 (30%) - Component 2
BLUE - Qty 40 - FT2 (40%) - Component 3
but if i create order with BUOM "PC" then still component calculate in the form of FT2....componenst should follow the same unit of measure of header material....
User | Count |
---|---|
99 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.