on 10-07-2009 6:58 AM
Hi.
In the query I want to write the following expression for formula:
(var == 01) * 5 + (var == ZNTR) * 10
where var is formula variable.
System doesn't allow to write the second part of logical expression because var should accept only numeric values.
How to solve this problem?
HI,
Try customer exit for formula variables and populate them with ZINT and VAR as replacement path of the char you want to compare which may help as both of them are in same type.
Thanks,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Lets assume you have bulilt a formula variable on characterstic CHAR1
1 ) Create a CKF witch is equla to "1".
2) Create a RKF with Key figure is above CKF and restriction on CHAR1 = ZNTR
3) Now take the above RKF into columns area and hide it. Lets say this is "column1"
4) Now create aboolean function as below:
(var == 01) * 5 + (column1) * 10
Regards,
Anil Kumar Sharma .P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Marat,
If you are sure that var contains only two values then simply write formula basedon the var numeric value,
i.e (var == 01) * 5 + (var <> 01) * 10
Note: this can be applied only if the var values have two possible values.
Hope this helps,
Regrds,
anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.