Copying Calculated Key Figs into Multiprovider
I have two cubes ZAC_CUBE and ZPL_CUBE the structure of the cubes is not same...
By using these cubes I have a MULTIPROVIDER (ZMUL_CUBE)am currently creating queries using the multiprovider.
I would like to use the Calculated keyfigures from the cubes (CAN I COPY) into a MULTIPROVIDER.. Its taking a lot of time to create the same Calculated keyfigures with another Technical Name... Any Suggessions..Please..
Preetham...
dear pritham
if u are sure about the containt of multiprovider then u can do one thing, add all the objects from the source cube to the multicube, tehn transfer ur queries from baic cubes to the multicube. Now a note of caution: key fig technical names are unique in a system so while copying by RSZC the technocal names will be incremented by either by next available digit or get appended last by '_1', but u can identify ur calculated KFs and Restricted KFs by their Text (I mean Title).
Now u can remove unwanted objects from the multicube.
may this will help u out.
kindly assign the points if it helps.
Similar Messages
-
Key figs not populating in Multiprovider Query
Folks,
I have created a multiprovider on a Order Header and and Order Items with the following fields -
Order Header - Sales Doc
Orde_ date
Promotion_Code
Order Items - Sales Doc
Order_date
Sale_amt
Order_cnt
Line_Cnt
My Report should display -
__Order_date__ __Prom_Code__ __Order_Cnt__ __Lin_Cnt__ __Sale_ amt__
Even though I have order date as 1st column in my report (which is common field in both providers), in the report it is displaying as 2 different rows for each Order date.
1st row displaying Promotion_code from Provider 1 and the 2nd row displaying all the Key fig's.
How can I get all fields in one row? please share your thoughts..
Thanks,
KKThanks Mansi and Arun for your response, Promotion code infoobject is only available in Header Cube...Is there any alternative way of doing this other than adding this field in Order item and doing look up in header cube?? I do not want to do a look up as it will effect my dataload performance.
Thanks,
KK
Edited by: kumar K on Aug 21, 2009 12:14 PM -
Bringing in Calculated and Restricted Key Figs
How do I bring in calculated and restricted key figs from one query to another in BI 7.0? When I created these key figs it said that they were reusable.
ThanksHello Atif
When you make CKF or RKF at query level which means right hand side in your column these are local to your query and not useable.....but when you make them global by defining in left hand side they can be reused in other query....so when u willl create another query...these CKF and RKF will be available...just drag and drop them they will work
Thanks
Tripple k -
Calculated Key figures using different key figures
Hi All,
I want to create a calculated key figure based on Actual and Plan.Actual values are coming from InfoCube,Plan values are loaded from Excel sheet into different key figure in another infocube.I've created a MultiProvider for these Cubes.Now I want to find the difference between plan and actual.So I created a calculated keyfigures based on the key figures.But the Query is giving error ..
Then the connection terminated..
Let me know how to do..
RajiWhat is the error you are getting?
First do this.
In the query, filter on only 1 infoprovider. Check the KF's and see if correct and if you get the error. Then, do the same thing, for the other infoproviders. Once you get no errors that way. Remove the filter. See if the KF's are ok and no errors. Then do your calculation.
Also, make sure in the definition of the KF's, you are filtering each on the right infoprovider. (For instance, KF1 has a filter on infoprovider1 and KF2 has a filter on infoprovider2.)
hope this helps!
/smw -
Problems with Calculated Key Figure in Bex
One of our super users have copied a query and trying to do some changes in the new query. In the Query designer, the person was directly dragging a Calculated Key Figure from the left hand side panel into columns and trying to change its properties (Currency conversion key is changed from 'Nothing Defined' to 'Monthly average rate' with variable entry.
Then we get the error 'Abort system error in program and form SET_TCUR-02-' without even getting the variable popup window.
Also when we check the Query properties, we observed that one variable entry (which is displayed in the target currency field in the properties) is displayed twice and came to know that this is the reason for the error.
But why is that displaying twice there? Is there anything wrong in the way we had created the CKF? Do you have any document on how to use CKFs and RKFs?Check here:
http://help.sap.com/saphelp_nw04/helpdata/EN/13/e072abaddb574284d22361f0b824bf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/EN/6f/56853c08c7aa11e10000000a11405a/content.htm
For Currency Translation "How to:, see here:
http://help.sap.com/saphelp_nw04/helpdata/EN/d2/02223c5f00612be10000000a11402f/content.htm
Thanks..
Shambhu -
Using Explorer with Calculated Key Figures from BEx (BW 7.31 / BI 4.1)
I'm looking for suggestions on how to leverage data from calculated and restricted key figures in BEx (from a BW 7.31 system) with Business Objects Explorer (from a BI 4.1 system). Our current process involves some complicated workarounds and with the implementation of BI 4.1 and I'm hoping to streamline things a bit.
Here is what I had in mind...
An information space (indexed daily) sitting on a universe (hopefully UNX) that referred to a BEx query on a multiprovider in BW. My understanding was that universes would be able to consume BEx queries (including their restricted and calculated key figures) in 4.1. Based on a recent post (http://scn.sap.com/thread/3417905), it appears that the feature that I was hoping for may have not made it into the GA release. Obviously, I could move the calculations and restrictions into BW ETL or maybe into the universe, but since that work has already been done and lives in the queries, I'm hoping to use them! Also, we could use a different tool such as WebI, but at this point the user base is comfortable with Explorer and we would like to continue to use it.
Suggestions?
Thanks!
-SHi McDowell,
Regarding to the BEx connection in Explorer, SAP provide two solution
1. BWA connection
2. Unv on top of connection
For the UNV situation, you could use the calculated / restricted key figure in the system but please assgin the aggregation level for them (Database delegate is not supported if I am not wrong)
Also plese consider two points
1. Data size (UNV cannot support large data size)
2. Scheduling (Explorer does not support event trigger? correct me if I am wrong)
Best regards
Alex yang -
Need some help on Calculated Key Figures
Hello All,
I created a query on a multiprovider and trying to add a field to an existing Structure on rows.
The new field is a combination of 5 differnt key figures.
Eg: (KF1KF2KF3KF4KF5) / KF6 * 100.
How can I add this formula field into the strucuture on rows. do i need to create a CKF ??
Thaks in Advacne.Hello,
Yes you can create a calculated key figure if you are going to reuse the calculation. However, if you're going to use this only once, you can just create a local formula. Just right click on the structure and then select New formula to create a new formula or create a new calculated key figure on the left screen panel to create a calculated key figure.
Hope this helps,
Juice -
Sum of Key fig at Universe level
Hi, I have created a Universe on the Top of SAP BW Cube.
I have 5 Key fig in the Key fig class.
My question -
1. Can i create a new key fig which contains the sum(Salary) , Assuming salary is the key fig exist in Universe.
2. What will be the syntex for the same.
ThanksHi,
take a look here:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
Keep in mind that when you connect to the cube directly you will lose the following:
- navigational attributes
- restricted keyfigures
- calculated keyfigures
- variables
>> including authorization variables.
Ingo -
Problem facing while cumulating the key fig
Hi to all,Arun & gopi
The report excecute for current month.
Forecast values have month starting day to ending date.
Actual values have month starting date to the present day(system date).
According to client requirement in layout, i have to show shipmentforecast(day) and shipmenforecast(cumulate) from month starting date to ending date and shipmentactual(day) and shipmentactual(Cumulate) from month starting day to present day(system date).
shipmentforecast(day) and shipmentactual(day) comes from cube, based on that i created shipmentforecast(cumulate) and shipmentactual(cumulate) using new selection and in properties i selected cumaulte, apply to the result, cumulate along rows.
while cumulating, shipmentactual(cumulate) is showing corect cumulate values from month staring day to present day(system day), after present day it showing last cumulate value ( present day value) by default to remaining days.
Even i am restricted the Actual(cumulate) with a customer exit variable( month starting date to system date ), still it showing last cumulate valye to remaing cells ( after present day to end of the month)
i should not get this.
In rows i taken 0calday.
in columns i taken Key figs which are
1) shipmentforecast(day)
2) shipmentactual(day)
3) shpmentforecast(cumulate)
4) shipmentactual(cumulate)
5) gap(cumulative) is calculated as ( NODIM ( 'Actual(Day)' ) <> 0 ) * 'Actual(Day)' - 'Foreseen(Day)' and properties i checked the cumulate.
in filters i taken as Ocalyear/month which is restricted for current month.
i mean total reprot has to display for current month days.
and forecast(day) and forecast(cumulate) values has to display for whole month.
actual(day) and actual(cumulate) values has to display for form starting of the month to the current day(system date)
Please give me help.
with regards
m.rajnikanth reddyHi to all,Arun & gopi
The report excecute for current month.
Forecast values have month starting day to ending date.
Actual values have month starting date to the present day(system date).
According to client requirement in layout, i have to show shipmentforecast(day) and shipmenforecast(cumulate) from month starting date to ending date and shipmentactual(day) and shipmentactual(Cumulate) from month starting day to present day(system date).
shipmentforecast(day) and shipmentactual(day) comes from cube, based on that i created shipmentforecast(cumulate) and shipmentactual(cumulate) using new selection and in properties i selected cumaulte, apply to the result, cumulate along rows.
while cumulating, shipmentactual(cumulate) is showing corect cumulate values from month staring day to present day(system day), after present day it showing last cumulate value ( present day value) by default to remaining days.
Even i am restricted the Actual(cumulate) with a customer exit variable( month starting date to system date ), still it showing last cumulate valye to remaing cells ( after present day to end of the month)
i should not get this extra values.
In rows i taken 0calday.
in columns i taken Key figs which are
1) shipmentforecast(day)
2) shipmentactual(day)
3) shpmentforecast(cumulate)
4) shipmentactual(cumulate)
5) gap(cumulative) is calculated as ( NODIM ( 'Actual(Day)' ) <> 0 ) * 'Actual(Day)' - 'Foreseen(Day)' and properties i checked the cumulate.
in filters i taken as Ocalyear/month which is restricted for current month.
i mean total reprot has to display for current month days.
and forecast(day) and forecast(cumulate) values has to display for whole month.
actual(day) and actual(cumulate) values has to display for form starting of the month to the current day(system date)
Please give me help.
with regards
m.rajnikanth reddy -
Restricted/Calculated Key Figures in Query vs MDX?
Hello All,
We are embarking on our first project utilizing SAP BW as the Data Warehouse and Web Intelligence as the presentation tool.
We plan on creating the universes on BW Queries.
What are the pros and cons of using Restricted and Calculated Key Figures in the query versus creating them in the Universe? Also from a performance impact point of view if there is any?
Best Regards,
Dan KriegHi Dan,
I would suppose that there is no big influence on performance. If the calculation for the calculated key figures are very complex I would propose to calculate them on query level. So its easier to use them also in other environments.
Please take into consideration that OLAP universes are not supported in Crystal Reports. More information you find in the thread [OLAP universes and Crystal Reports|OLAP universes and Crystal Reports;.
Regards,
Sebastian -
Calculated Key Figures - Result row sum is wrong
Hello all,
Using the example below, I built a calculated key figure for TotalPrice (material amount * material price per unit). I set TotalPrice to calculate the result as a "total".
OrderID OrderLineID MaterialID Quantity PricePerUnit TotalPrice
1 1 1 1 5.00 5.00
1 2 2 1 3.00 3.00
2 3 1 2 5.00 10.00
2 4 2 1 3.00 3.00
3 5 2 3 3.00 6.00
ResultRow: - - 7 19.00 27.00
Now, if I remove OrderLineID and MaterialID drilldown (or from the query rows), I get the following (wrong) results for TotalPrice:
OrderID Quantity PricePerUnit TotalPrice
1 2 8.00 16.00*
2 3 8.00 24.00*
3 3 3.00 9.00*
ResultRow: 8 19.00 39.00*
- wrong results
Is it possible to be able to remove the orderlineid and materialid fields from the query rows and still get correct results for TotalPrice?
Thanks!
-BI solved the problem by adding an Exception Aggregation to the TotalPrice calculated Key Figure.
To be more specific, I added an Exception Aggregation (set it as type "Total"), then set the reference characteristic to OrderLineID.
As a result, the exception aggregation takes into consideration the orderlineID row when calculating the total price (quantity * priceperunit). Therefore if you place the orderlineid in the free characteristics instead of the query row, the calculation is still performed correctly. -
Calculated key figures with incorrect values
Hi experts,
i have a requirement whre i have multiple calculated key figures based on different restricted key figures.
say for eg:
RKF1-restricted to calmonth 01.2006
RKF2-restricted to calmoth 01.2007
ckf1-RKF1 %a RKF2
RKF3-restricted to calmonth 02.2006
RKF4-restricted to calmoth 02.2007
ckf2-RKF3 %a RKF4
and so on...
In my output of the report, ALL CKFs are show same result as CKF1!!
please suggest..
thank you all in advanceHi,
Indeed my cube is a copy of 0IC_C03.
Could you please explain more about the filtering.
I have the following key figures
0TOTALSTCK
0ISSTOTSTCK
0RECTOTSTCK
ZISSSTCK_VALUE
ZREC_VALUE
ZTOTSTKVALUE
ZTOTSTKVALUE is CKF with inflow and outflow of ZISSSTCK_VALUE
ZREC_VALUE
Whenever there is 0 it displays NO CALC possible. I would like to have it blank or 0s.
thanks -
Calculated key figures Vs local formula
HI,
I am having 4 queries on a cube.
i am now using calculated key figures instead of local formulae.
I want to know "which is better in performance wise/ or may be pros and cons of using each one."
Can any one clarify me.
I know that
1.when we select the option Calculation after aggregation will improve performance.
2.we can do some more things only with Cal. Key Figs using formula variable.
Here my concern is not that.
I am concerned about general case like -
i have to add, multiply or divide some direct key figures and use some data functions like nodim, NDIV0 functions.
Thanks in advance.
Regards,
RaghuHi Raghu,
Formulas cannot be directly reused, but if they are saved to a global structure, then the structure may be reused. If you are creating a calculation that will be widely used, it is best to create it as global...this helps a lot when you need to revisit the definition, and make changes as one chnage is reflected in all queries.
However, there are some functions like SUMCT, SUMGT, SUMRT, %CT, %GT, %RT which are available only to the formulas (local), so if you need to use them, you cannot use a CKF.
In addition to the differences, A formula can only work on other formulas/selections already in your query (in the same structure as your new formula), while a calculated key figure can only work on other key figures, calculated key figures or restricted key figures. However both can use formula variables.
CKF are calculated at the time of loading data.
Your Formula calculates at the time of running the query.
Hope this helps...
Regards,
Yokesh. -
Calculated key figures are returning the word "ERROR"
Hi All,
the calculated key figures which i used in one query are displaying the word "ERROR" at the end of the results as part of each cells formatting.But when i copied the same query to my system then its not showing the word error and even i created one more query which is a replica of the first one and then also iam not getting the error .
what might be the cause of this issue . kindly suggest me how to control the word error in the out put
regards,
jayakrishnaHi,
you can control the way BW displays exceptions with customizing (SPRO) transaction RSCUSTV4.
identify differences of these settings in your systems and apply them accordingly.
hope this helps...
Olivier. -
Cumulative key figs in MM(LO-Inventory)
Hi Frnds
Can anybody tell me, wht are the Cumulative and Non Cumulative Key Figs in MM(LO-Inventory).Plzz name those.
Thanks & Regards
PrabhakarTo respond to your latest question....
You may already know this, so bear with me...
Non-cumulatives have an "incoming" and "outgoing" reference. Meaning, for a the record to be stored it takes an "addition" and "subtraction" to calculate the value. Generally, you either initialize this value with an "addition" (the value can be positive or negative). This initialization can either be the first record you insert or a "generate initial status". After that first record/status, all values after that are generally (depending on marker update) added or subtracted from this value to make up the non-cumulative value.
Take for instance the KF:
0VALSTCKVAL - Value of valuated stock
Inflow(+):
0RECVS_VAL - Value received into valuated stock
Outflow(-):
0ISSVS_VAL - Value issued from valuated stock
In the infocube, you will want the 0VALSTCKVAL, 0RECVS_VAL and 0ISSVS_VAL.
0RECVS_VAL and 0ISSVS_VAL are normal KF's and can be used anywhere, they are not non-cumulative. But, they make up the + and - of the key figure of 0VALSTCKVAL.
Now, the KF 0VALSTCKVAL can not be updated directly, once you add it to the infocube, it can only be updated by updating the key figures of 0RECVS_VAL and 0ISSVS_VAL. (They system doesn't let you even try to update 0VALSTCKVAL directly). Thus, the value is controlled by the additions-inflows (receipts) and subtractions-outflows (issues). You can see this behavior in the update from 2LIS_03_BF/UM to 0IC_C03.
Now, to set an initial status, you just need to update the "inflow" of each Non-cumulative KF. You can see this behavior in the 2LIS_03_BX update to 0IC_C03.
You can also see this behavior if you look what SAP is doing during compression and building of aggregates. You will see some SQL that looks similiar to this.
...SUM( 0RECVS_VAL - 0ISSVS_VAL )
...SUM( 0RECVS_QTY - 0ISSVS_QTY ) "(Not sure if these are real
Now, non-cumulatives in ODS objects or anything other than an infocube are useless as they do not have a cooresponding validity table to store the updated pointer.
I will not go into the pointer logic, but there is a document out there for non-cumulative you will want to look at to make more sense of this pointer logic.
I hope this is what you were looking for...
/smw
Message was edited by: Steve Wilson
Message was edited by: Steve Wilson
Maybe you are looking for
-
Crystal reports with SAP BI Infocube
All, I need to create a report from the BW Infocube . I have the SAP integration installed and working properly and I am able to create reports from Bex queries, but I am unable to see any Infocubes in the. Do I need to generate the Infocube as an ex
-
Contacts not showing when others call me
I've just got my z10 and used my exchange account in activeSync mode and every thing worked fine, the issue is when someone calls me his name is not showing up, also if I dial a saved number the phone the name don't show up, what is this issue ???
-
downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?
-
Jittery playback in 11.9.900.152 on osx 10.7.5.
Hi. I just updated from a working version of Flashplayer to 11.9.900.152 on OSX 10.7.5. Now all playback is jittery, like some kind of buffering issue. It plays a few seconds, and then it reverses a second, plays a second, reverses a second. Like you
-
Ipod shutting down when trying to play movies
My ipod is shutting down every time I try to play "movies". I have 4 dave mathews videos in quicktime(.mov) and Iv'e imported them into my itunes.I then converted them to play on ipod.I put them on my iopd, but if I try to play them I get a loud clic