on 04-09-2019 1:24 PM
SAP IBP1902:
As per Business requirement I need to display DAYWEIGHT attribute maintained in our time profile against a KeyFigure in Demand planning book. I have written the below calcualtion. This KF is calculated and stored and KF1 is marked as an input.
KF1@DAYPRODLOC = IF ( (''"DAYWEIGHT"'' = ''1''), 1, "KF1@DAYPRODLOC")
Planning area get activated but it is not able to read the attribute value and always populating as NULL.
Any idea how we can use DAYWEIGHT attrbute in the KF calcualtion or any other way to achieve the requirement.
Note: DAYWEIGHT is maintained as 0 or 1 in our time profile based on working days and uploaded against the timeprofile assigned to the planning area.
Hi Mayank,
Create a stored key figure and add calculation as below:
KF@DAYPRODLOC = IF(0=1, "KF@DAYPRODLOC" ,"DAYWEIGHT")
Mark KF@DAYPRODLOC as stored input in this calculation and put double quote around DAYWEIGHT attribute. This should work.
Regards,
Piyush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank You Piyush for the logic, It is working as expected!
Mayank, did you try that to do the above calculation? The reason I'm suggesting it because I have used this approach many times successfully. And this will help you to identify the root cause of the issue. If your output of the above calculation is NULL instead of DAYWEIGHT value form the time profile, then that is the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
KF@DAYPRODLOC = "DAYWEIGHT" (Pass on one of the stored KF @PRODLOC)
Here DAYWEIGHT is the attribute like other's how you use in KF calculation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mayank,
Are you using two double quotes (''"DAYWEIGHT"'')? It should be as below for your reference -
KF1@DAYPRODLOC = IF ("DAYWEIGHT" = ''1'', 1, "KF1@DAYPRODLOC")
Also, if above calculation is not working, you create a KF = "DAYWEIGHT" and see what values you are getting.
Regards
Ankur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1] There is no double quote as when you define a attribute within two single quote and save it is captured that way. The logic is same with what you suggested but no luck.
2] Also, if above calculation is not working, you create a KF = "DAYWEIGHT" and see what values you are getting.
--> For the above calculation to work you have to define DAYWEIGHT attribute as a KF. It is not possible as it has datatype of Integer. Is there any other way you are suggesting to write this calculation? Can you please elaborate.
Have you used two single quotes instead of double quoated before and after ''1'' ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
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.