on 04-27-2016 6:58 AM
Hi Experts,
I am getting the following errors while activating the planning area after setting up Master Data and KFs for Supply Planning.
E - Failed to create calculation scenario "SAPSOPG100"."SOPT02PAT02PA"
E - An exception was raised.
E - SQL Message: column store error: fail to create scenario: [34011] Inconsistent calculation model;CalculationNode (6_28) -> attributes -> calculatedAttribute (CAPADEMAND) -> expression:Expression is not valid: Evaluator: syntax error in expression string;expected TK_ID,parsing 'fixed([here]= SUM( "CAPADEMAND$S" ), 12, 6)',Details (Errors):
- CalculationNode (6_28) -> attributes -> calculatedAttribute (CAPADEMAND) -> expression: Expression is not valid: Evaluator: syntax error in expression string;expected TK_ID,parsing 'fixed([here]= SUM( "CAPADEMAND$S" ), 12, 6)'.
- CalculationNode (7_33) -> attributes -> calculatedAttribute (CAPAOVERLOADALERT) -> expression: Expression is not valid: Evaluator: syntax error in expression string;expected TK_ID,parsing 'fixed([here]= IF("CAPADEMAND" > "T01CAPASUPPLY", 1, 0), 12, 6)'.
- CalculationNode (2_15) -> attributes -> calculatedAttribute (T01CAPACONSUMPTION) -> expression: Attribute 'sum' is missing in node 2_15.
- CalculationNode (2_13) -> attributes -> calc
The 3rd error indicates that there is a syntax error in KF- CAPADEMAND & CAPAOVERLOADALERT.
However, I could not locate the error in the KF calculation definitions. The screenshots for the same are as follows:
1) CAPADEMAND
2) CAPAOVERLOADALERT
Am I missing something here? or this there some other reason for behind the errors.
Thanks,
Diwakar
Does PERLOCRES have any attributes that are not available in PERPRODLOCRES?
Usually that is root cause for such kind of messages:
You add afterwards soem new attributes to the e.g. the location and forget to inlcude that into all planing levels. Than te cross-level calculation does not work properly any more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Irmi,
PERPRODLOCRES is a more granular level and has additional attribute 'Product', not available in PERLOCRES planning Level.
Basically I want to aggregate the CAPADEMAND at Product-Location-Resource to get CAPADEMAND at Location-Resource level.
Then this CAPADEMAND at Location-Resource level will be used in another Alert key figure to compare it with CAPASUPPLY at Location-Resource Level.
Thanks,
Diwakar S.
I am fully aware of the requirement 🙂
I have seen that error mesasge a lot of times, and nearly in all cases it was that the left side of the calculation has some information that the right side could not provide
This situation very easily comes when you have a lot of attributes.
So you have to check if there are any attributes on the LEFT side = PERLOCRES that are not in the more granular level, even if the root information is more granular on the right than on the left side
That can only be attributes to Period, to Location and to Ressource
If you are sure that is not the case, maybe the system has still some faulty entries in the backnd that are wrong. As the KF seems not to be used anywhere else, you may try to delete it, activate, and re-create it - as last hope...
Cheers
Irmi
Well, the system recognized an assignment between two different leveln WITHOUT the sum,
so it seemed to be a 1:1 relation
That would explain the misleading message but technically understandeable message.
Good to have it up and running!
Irmi
Hello
There is a = sign in front of the SUM?
Regards.
YS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi YS,
Thanks for your reply and indeed, I had missed the additioal "=" in calculation definition.
However, now when I give the following calculation definition, I am getting an error stating that "Output Planning Level should match with Input planning Level"
CAPADEMAND@PERLOCRES = SUM ("CAPADEMAND@PERPRODLOCRES" )
The reason for putting this calculation definition is that CAPADEMAND@PERLOCRES will be used in calculation of capacity overload alert which is defined at PERLOCRES level.
Any pointers towards its resolution will be appreciated.
thanks,
Diwakar S.
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.