Substract 0calday with a key figure
Hi gurus,
in our report requirement we have a Expiry date which we have modeled has key figure and now in the report i have to find out the difference between the EXPIRY DATE and Current Date (0calday)
when i use the replacement variable method its giving error inconsistency can we do calculation between 0calday and a keyfigure of date type.
thanks and regards
Sreedhar
Message was edited by:
Sreedhar M
hi Sridhar,
As anil said create an rkf and hide it. This is mainly for getting the input date from the user.
If you proceed as you do data will be restricted as a whole.
steps:
1. Create Restricted key figure , with any keyfigure restricted by <b>0calday variable</b> say "v1". where v1 is user entry processing type.
2. Hide this Rkf in query designer.
3. Create formula variable "fv1" with repacement path and dimension "date" and replace with attribute "expirydate".
4. Create formula variable "fv2" with customer exit ,dimension "date"with following code:
Data: l_t_range like line of i_t_var_range.
et_range like line of e_t_range.
Date: zday(8) type n.
Case I-VNAM.
when 'fv2'.
If I_STEP = 2.
Loop at i_t_var_range into l_t_range where vnam = v1.
zday = l_t_range-low.
et_range-low = zday.
et_range-option = 'EQ'.
et_range-sign = 'I'.
Append et_range to e_t_range.
endloop.
endif.
5. Create a CKF where iit is equal to fv1-fv2.
Hope this helps.
Regards,
Raj.
Similar Messages
-
Reports with only key figures? How to layout?
Hi anyone,
Could you kindly advise? I have a financial report which is about 20 key figures ex. Sales, Cash discounts, Revenue from operations, Gross Margin, Operating profit and Overheads % of sales...
For each of these areas I need to have 9 seperate numerical values:
Actual value (by month)
Last Year value (by month):
Budget value (by month)
Actual value ( year to date)
% of sales (ytd)
Last year value (ytd)
Budget value (ytd)
Full yr value (full yr)
Budget value (full yr)
This can lead to 20keyfiguresX9timeperiods = 180 numbers in the report. As I don't have any characteristics, it seems I'll end up with a very very long row.. Has anyone experience fixing this sort of issue?Hi
Sorry for the earlier post for not explaining...
There are two ways you can do.
First way is meddling with the modelling....
Create 9 infoobject charecterisitcs with CHAR TYPE NUM and feed them with the key figures timeperiods thru update rule routine......Use this 9CHAR -> fed by kfs into Cube and you can use 2 structures...as far as the system is concerned you are using one structure of kf and one for chars.......
Second way...if ur using BEx you can think of Macros
Regards
N Ganesh -
Problem with restricted key-figure using off-set variable
Hello Gurus,
I have created a query in Bex Query Designer with a key figure restricted. This key figure shows me the 0amount value for the last month. When I select 003.2009, the key figure brings the 002.2009 values. I used an off-set variable to do this
It works!
But when I show this key-figure in Webi, no value shows up on the table.
Any suggestions?
tks
Edited by: Allisson Valverde on Jul 23, 2010 12:12 AMWhich variable are you using in BEx and in WEBI to restrict the month/year?
-
Problem with a key figure restriction
Hi,
I have a problem with one key figure in report: in infocube, this key figure is aggrigated for all the profit centers (summation). In infocube, there is a value '150' for each profit centers (100 pieces) and in the report it is counting 150*100=15000. However, it shouldn't count the sum of all entries in the infocube but show only one value in the report which would be '150'.
I think this should be possible to do but I just don't know how. Hope somebody is able to help me. Thanks in advance.Hi,
If the values are same for all profit center then change the Profit center infoobject property in the query design to show the maximum values for the 'calculation result as' parameter
Regards,
Vishwa,
Edited by: Vishwanath H.E on Sep 3, 2008 9:19 AM -
Display Problem with the Key Figures
Hi,
I working on the query where i need to display three Key Figures. I have no problem with the first two Key Figures , but the third Key figure values need to be display by day wise. (0Calday). i.e., the third key figure value should be displayed based no of days 0Calday has.
For Example if 0Calday is holding 4 days... then third keyfigure Value should be display as 4 columns with their respective values by dividing into day wise, remaining first two key figures should not be changed.
When i am trying to call the 0Calday into the Column, all the three Key Figures values are displaying as many as no of days 0calday has.
For Example if 0Calday has 2 day....the three Key Figures are values are breaking into two days values and displaying, so totally we can see 6 Key figure values. But i need first two values should not break but the last key figure should be divide into two days as values and display.
Thanks & Regards
Agama.Hi Venkat
This can be achieved by supressing 0 values.
1) In the Query Designer: Go toquery properties
2) Select Suppress Zeros
3) Select option Active
4) Under Effect On : try with Column or row o (Not infront of system , so cannot exactly remember)
This will allow you to get the exact result as per your requirement. We had the same issue and we could resolve this by following this.
Hope it helps.
Cheers -
Query problem with accumulated key figures
Hi BI Gurus!
I have a report problem that I hope you can help me with!
In my report I have 2 key figures. One for accumulated revenue previous year (KF1) and one for accumulated revenue current year (KF2). Both key figures should be presented in a graph in monthly buckets.
January figures from both the key figures shoule be presented in the same bucket. Therfore I can't use 0CALYEAR since we have the "year" information in there. Instead I'm using 0CALMONTH2 which is only two digits, 01 for January. That way I can map figures from both previous year and current year in the same bucket.
I need the figures to be accumulated and this is what I have problem with. When I run the report today in February 2010 it looks like this:
Month KF1 KF2
01 10 15
02 10 20
03 15
04 10
05 20
06 10
07 10
08 15
09 15
10 20
11 20
12 10
This is how I would like the report to look like:
Month KF1 KF2
01 10 15
02 20 35
03 35
04 45
05 65
06 75
07 85
08 100
09 115
10 135
11 155
12 165
I have tried to use the setting "accumulated" for the key figures but then I get this result:
Month KF1 KF2
01 10 15
02 20 35
03 35 35
04 45 35
05 65 35
06 75 35
07 85 35
08 100 35
09 115 35
10 135 35
11 155 35
12 165 35
Since the KF2 is revenue for current year and I run the report in February I don't want any figures to be displayed in Mars...
I have tried to restrict the key figures by 0CALMONTH2 and 0CALYEAR. The KF1 is havein a restriction to only show values for 0CALYEAR - 1 and an interval for 0CALMONTH2 from JAN - DEC.
The KF2 is having a restriction to only show values in the interval "first month in year - current month" (in this example JAN - FEB) for 0CALMONTH2. And current year for 0CALYEAR.
Despite my restrictions for KF2 the numpers repeats itself for every month...
Any suggestion how I can resolve this?
Best regards
Anders FlorinHi Khaled and thank you for trying to help me!
I agree with you and think the users should accept the report as it is. But they are claiming that top management will not accept this and they would really want this to be fixed the whay that they want. I have tried to push back on this and said that I'm not sure that it can be resoleved and that it could cost them a lot of money if I try.
But I will try to resolve it for them if I have spare time in the end of the project. I have not promised them anything but it would really be nice if I could fix it.
So when you say I need to use a structure and a calculated key figure. How should the calculated key figure and the structure be configured?
If I use a structure in the rows I guess I can't use same object in calc.key.figure right? Like if I use 0CALMONTH2 in the structure I'm not able to restrict the key figure with the same object? If that is correct I also have a ZMONTH object, different story why I have that... , that I can use in the same way as 0CALMONTH2. Or is this only a problem when I use "local" formulas within the query and not using a "global" calculated key figure? Cause I have only used the "loacal" formula calculated key figure in this report....
Br
Anders -
Problem with displaying key figures in report
Does anyone have experience with SAP Report Designer for Release 7.0. I want to display key figures in the following manner: 1'500 (Which means 1.500.000) For a billion the value displaye should be 1''000 (1.000.000.000).
1000 = 1.000
0'010 = 10.000
0'100 = 100.000
1'000 = 1.000.000
0''010 = 10.000.000
0''100 = 100.000.000
1''000 = 1.000.000.000
Thus the report always shows 4 digit figures. The problem is that I don't know how to include the apostophe as a separator for the million.
Additionaly to that I want to have the font changed to a smaller number, if the figure is to large for the column. Is there a possibity to change the display of the figure with the scaling? And is there a possibility to change the font? These two parameters have to be decided when running the report. (The scale of the numbers can differ within one column.)there is two way to display the values , one is globally, where u do it the keyfigure and another way is on the query designer level
in keyfigure go to aggregation , there u will get the number display format , u can change there and another way is in the query designer right click on the key figure and select properties and select display format -
Problem with virtual Key Figure in a query
Hi Experts,
I would like to share my problem with the virtual key figure in a query:
I have a query with a virtual key figure and when I eject the query by analyzer, the result sometimes is displayed and sometimes is not displayed (is equal to 0), with the same initials values. And when I eject the query by RSRT always display the result for the virtual key figure.
Why don't always display the result?
Thanks a lotHi,
I think that the problem is the level of support package. We have BI AddOn 7.X (based on 7.20) support package 0.
What do you think?
Regards -
Snapshot Inventory Management with Cummulative key figures
Experts,
We are implementing the snapshot model in parallel with the Daily cube. When trying to create the update rules from 2LIS_03_BX, we get a warning message saying 2lis_03_bx is setup for noncummulatives only followed by an error stating that there are no key figures in the cube.
How do we circumvent this issue?
All thoughts appreciated!Pls go though below link which will help you to implement snapshot Inventory " How to handle Inventory"
https://websmp108.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002121282004E
Regards
Sangita -
Creating Query in Production with Calculated key figures
Hi BW Experts,
Can u pls let me know that in case of Production System when we are allowing users to create reports with Adhoc Web Query Designer and using CKF + RKF
(Calculated key Figure) which is already transported to Production in a specific Package, Is Production system will allow to save report?
Pls sugges how to solve this problem ..to give permission for users to create reports in production server with CKF RKF?
Thanks in advancersa1 -> transport conection -> object changeability button -> Set query elements as everything changeable.
If you want to refine this you have to do by authorizations. -
Problem saving queries with calculated key figures
Hello Experts,
I am analyzing this problem since many hours during the last weeks and I don't know, what else to do.
The problem is saving a key user query containing a calculated key figure in the production system (BW 3.5 SP SAPKW35015). The Error 'The query could not be saved due to a problem in transport' occures.
If I exclude the KF from the query, saving is possible, so the calculated KF must be the source of the problem.
The system is set to not changeable, but the 'Object Changeability' of 'Query Elements' in 'RSA1' --> 'Transport Connection' is set to 'Changeable Original'. If I set this option to 'Everything changeable', saving of the query works, but this is not possible in production, because transported standard queries would also be changeable.
For saving queries, die authorization object S_RS_COMP and S_RS_COMP1 is included completely with *, but this does not help.
I also transported the query and the KF again from development system ... no change, same problem.
I found the SAP note 533413, but what does this mean? "This problem can only be solved in the next BW release ..." I heard from colleagues, that BW 7.0 has the same problems.
Does anyone have an idea, how to solve this problem?
I would be very thankful for any reply...
Hannes
Edited by: Hannes Heidrich on Jun 23, 2008 12:07 PMThank you for your answer, but I have set the Object Changeability to Everything Changeable and restricted the user with S_RS_COMP. So only certain query names can be used and changed. Experiences from collegues said, that deleting and transporting again would not help.
Best Regards,
Hannes -
Problem with restricted key figures
Hi all,
I have four restricted key figures in my structure each one is restricted Fiscal period with user entry variable but when i execute the report and check one of the restricted keyfigure is actually not restricting the values.
suppose user entered 10.2006 in the selection for fiscal period then one of the column Goods receipts QTY which is restricted with Fiscal period display values other than that of 10.2006
Did anyone faced such problem earlier?
Please let me know if anyone had a clue.
Thanks in advance
Regards
AjayHi gopi,
Thanks for all of the restricted keyfigures it is "include value".
Regards
Ajay -
Problem with Restricted Key Figures Please Solve
Dear All.
i restrict the key figure on some GL's for Cumulative balance, this RKF show me the result base on the 0CALMONTH which is select in the variable screen.
i created one more RKF with the same GL's but i restrict that RKF also with fix 0Calmonth say DEC2008.
but the problem is when i run the report it shows me that data correct, but when i bring the 0CALMONTH on top of the Key Figure structure it only show me the data for selected month for the fix month RKF the result come empty.
my requirement is that i have to select month range and i need to show every month value minus the Dec2008 value, this only works if i donot bring the 0CALMONTH on top of Key figure structure but i want to keep it on the top of KF structure so i can show each month value - dec2008 value.
Please explain how can i control this.
Kind regards,
Edited by: Zeeshan haider on Nov 11, 2009 9:49 AM
Edited by: Zeeshan haider on Nov 11, 2009 9:59 AMDear Chandu.
I am creating the RKF on Cummulative Balance KF by restricting it with some combinations of GL's, let say the name of RKF is TRADE_Accounts.
My requirement is to give Calmonth selection from the variable in interval let say from 01.2009 - 05.2009
i simply want to display TRADE_Account balance for each month in selection but by doing the minus the value of Trade_Account from the same RKF i.e. TRADE_Account_2 which i restrict on DEC2008.
so i created Two RKF for KF cummulative balance one is restricted with 0CALMONTH value for DEC2008 only.
then i create on CKF let TRADE_BALANCE = TRADE_Account2008 - TRADE_Account.
and place the CKF in Key Figure Structure, it work fine but problem comes when i try to bring 0CALMonth on top of key figure structure so i can show the result for each selected month.
when i do this it only shows the Balance for selected months but it did not minus it with the other RKF i.e. TRADE_Account2008.
when for testing i also put the TRADE_Account2008 in Key figure structure it shows empty result when the 0CALMONTH is on top of the Key figure structure.
Please explain how can i achieve this.
Kind regards, -
Problem with Restricted Key figure!
Hello BW Gurus,
Currently I am having problem with a report that is using a restricted key figure in the formula. When I filter down this restricted key figure, it is working fine but when I use this restricted key figure in formula that calculate greater than value, its giving me wrong figure and when I calculate less then value, its giving me zero total result. I am drilling down this restricted KF on a hierarchy. Did I miss any setting or do I need to do anything extra for this?
Please let me know and thanks in Advance,
Vaghar.In that case create two calculated keyfigures CKF1 and CKF2 such that
CKF1 = ((Count >100)*1 + 0)
CKF2 = (Count<100)*1 + 0)
and then define Greater Count as a formula such that
Greater Count = <b><i>Count</i></b> (CKF1)
and similarly Lesser Count = <b><i>Count</i></b> (CKF2).
where <b><i>Count</i></b> is a data function which gives a value of 1 when the operand <>0 and returns a 0 when the operand = 0.
Hope this helps. -
[sapsem] BI-IP: Documents with restricted key figures in WAD
Hello,
we use documents for characteristics in WAD (BI IP) suscessfully.
We would like to use documents also for restricted key figures.
Example:
0Version has "document property" defined in RSA1
We have a restricted keyfigure ED_K10 with the restriction 0VERSION = 10
We are not able to use it, because document functionality can be used
for characteristics only.
Does anyone have an idea what to customise to be able to use documents
also for restricted keyfigures?
regards and thanks in advance for any feedback
Eckhard LewinHi Eckhard,
I think 0version needs "document property" , too !
regards
Paul
Maybe you are looking for
-
Why can I not download prev punch music - only books and apps?!
I have tried so many times to download previously purchased music. I have been looking at my account, and it is all there, but unable to download. I have reported every song as a problem, but after the 6th or 7th song I am automatically directed to t
-
Hi Experts, I am doing Customer Aging Standard report S_ALR_87012168 - Due Date Analysis for Open Items Radio Button : Classic drilldown report when i was see the age wise report the amount is not match Example: Days : Du
-
Using Time Capsule, but my MBP HD seems to be getting fuller
Hello: I have a 1TB Time Capsule which U have been using to back up my HD for about a week or so. Not long ago I had 15GB of free space on my MBP's HD, now I have zero. I did not download 15GB of date in that week. Any ideas what is going on? How do
-
Please pause this slide.
I have a program in Captivate 5. On one of the slides, I have an image of a man with a "thought cloud" behind and above his head. I have added text boxes to this thought cloud making the captions appear within 2 seconds of each other. I have the t
-
My MBP 15" early 2008 / 10.6 ((2.4GHz Core 2 Duo/2GB/256MB VRAM/200GB 5400rpm) is not working after looking to aYouTube short film. It made a strange strong noise , I closed it and when I switched on again I have a gray display and a frozen wheel o