on 06-05-2015 3:12 PM
Hi All,
My material has 12 parameters, each of which has a VC characteristic for colour & a characteristic for %age.
I need to populate the value of another characteristic, %total, summing the individual %age(s) dependent on their colour, e.g.
%total =
%age_1 IF colour_1 in ('red', 'white', 'blue')
+
%age_2 IF colour_2 in ('red', 'white', 'blue')
+
........
+
%age_12 IF colour_12 in ('red', 'white', 'blue')
When I try this in an O.D. the syntax errors after the first IF condition.
Is there a way to do the conditional summation or do I need to create 12 new characteristics to hold each condition then sum the results with another O.D.?
Thanks
Hi Ian,
Generally Condition (IF) should be ended with a "comma" if further conditions are required in the dependency.
To achieve the age total, try with below code in procedure.
%total = %age_1
IF colour_1 in ('red', 'white', 'blue'),
%total = %total + %age_2
IF colour_2 in ('red', 'white', 'blue'),
%total = %total + %age_3
IF colour_3 in ('red', 'white', 'blue'),
+,
........,
+,
%total = %total + %age_122
IF colour_12 in ('red', 'white', 'blue').
Thanks,
Ravikumar B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you check what's the error?
I doubt the %age_X has some issue. Also, when you have multiple lines under same condition, comma will be required.
You can refer creation of the object dependency processing by procedures in the below link :
Processing Sequence of Procedures - Variant Configuration (LO-VC) - SAP Library
Thanks
Prem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
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.