Virtual KFs, Chars

Hai BW Experts
kindly help me to know about Virtual Key Figures and Virtual characterstics?
what is the use of these objects?
When and where we use these objects?
how to execute these objects?
Thanks in adv
Regds
Udhagiri

HI Udhagiri,
Virtual chars & KFs are just normal infoobjects. You add them to your provider without storing any information in there. Just leave them initial. The values for the virtual infoobjects will be derived during runtime of the query using the user exit of enhancement RSR00002. (go to SMOD transaction and take a look to the available documentation for RSR00002 enhancement).
Also Just have a look at the following threads
Re: Virtual Key figure
How to implement Virtual Characteristics or Virtual key figures
Hope it helps...let me know
If u need some more documents, let me know ur mail id.
Regards,
R.Ravi.
P.S: Assigning points is the way of saying thanks in SDN.

Similar Messages

  • Virtual char/KF

    Hi all,
    How to identify Virtual KF and Virtual characteristic at query level ?
    Is there any difference (technical properties) in the info object used for virtual characteristic/KF with normal char/ KF ?
    Thank you.

    Hi,
    I do not think there is a way to identify Virtual KF/Char at query level. Because, virt kf/char are available in the Cube but are not updated using the Updaterule/Transformations and are populated at the query runtime. These Chars and KF will have the same technical properties as well.
    Thanks,
    KR

  • Using result of a Calculated Keyfigure as input for a Virtual Keyfigure

    Hi experts,
    is it possible, to use the result of a calculated keyfigure of a query for the input of a virtual keyfigure und use the virtual keyfigure within the same query?
    My problem: depending on drilldown, I have a different percentage within the calculated keyfigure. And depending on that value, I would like to read a score out of a DSO and fill a virtual keyfigure with that, and show the score in the same query. In my opionion, the only way to calculate the score is on the fly, depending on the navigation step I do. Maybe there is another approach that I do not know.
    I was glad for any ideas. Thank you in advance!
    Regards
    F.L.

    Hi,
    Sorry but a calculated key figure result cannot be used in a virtual key figure calculation. The reason purely being that the CKF calculations happen after the Virtual KF/ Char calculations (through BAdI or CMOD).
    The only solution i see here is that you will need to do the calculations in the VKF logic itself. Please do remember that VKF calculations and population happens for each record bein fetched into OLAP from the Infoprovider for the Filters put into the report.
    Hope it helps.
    Thanks,
    Abhishek.

  • Virtual Key Figure on Multicube (RSR_OLAP_BADI)

    I've created a virtual key figure (using RSR_OLAP_BADI) for number of days in month [zdays_month].  Everything works perfectly when it's used in a query on a cube cube.  BUT, when I try to use it in  aquery on a multi-cube, it doesn't.  The multi-cube query returns a number = the number of days in the month * the number transactions in that month. 
    Anyone know how I can force the VKF to execute after the data is returned?  I would prefer to not mess with exception aggregation, or key figure properties.  I need to keep this VERY SIMPLE for my query developers.
    Your assistance is greatly appreciated,
    Kenneth

    hi,
    first try to check whether the query access virtual kf or not, use transaction rsrt, type in the query name, and click technical info or properties, there will some line 'virtual char/kf'.
    i think the query may never access the code in BadI because in the code it's set with condition infoprovider technical name, it will cover only the infoprovider, when we access query from multiprovider, which join from one of the infoprovider, it's not automatically have the virtual kf/char, we have to specified the multiprovider name in the BadI, you may change the code as following :
    hope this helps.
    CASE i_s_rkb1d-infocube.
        WHEN '[your infocube name]'.
    ENDCASE.
    to
    IF i_s_rkb1d-infocube = [your infocube name] or
       i_s_rkb1d-infocube = [your multiprovider name].
    ENDIF.
    for other infoproviders
    CASE i_s_rkb1d-infocube.
        WHEN '[other cube name]'
    ENDCASE.

  • How to find the data loaded from r/3 to bw

    hi
    how to find the data loaded from r/3 to bw is correct . i am not able to find which feild in the query is connected to which feild in the r/3 . where i am geting the data from r/3 . is there any process to find which feild  and table the data is comming from . plz help
    thanks in advance to u all

    Hi Veda ... the mapping between R/3 fields and BW InfoObjects should take place in Transfer Rules. Other transformation could take place in Update Rule.
    So you could proceed this way: look at InfoProvider Data Model and see if the Query does perform any calculation (even with Virtual keyfigures / chars). Than go back to Update Rules and search for other calculation / transformation. At least there are Tranfer Rule and eventually DataSource / Extraction Enhancements.
    As you can easily get there are many points where you have to look for ... it's a quite complex work but very usefull.
    Once you will have identified all mappings / transfromation see if BW data matchs R/3 (considering calculations ...)
    Good job
    GFV

  • Slow Moving Inventory - List Material where Sales Goods issue is 1 Year

    Hi Gurus,
    One of my Clients is looking for a Slow Moving Inventory Report in BW where the Sales (PGI) for the Material did not happen in the last one year.
    Could you please help me with the best way to accomplish this requirement?
    Thanks
    Srini

    Hi,
    Just try this, if it works( i think it should work) then you wont have to code for virtual KF/chars and this will also boost the performance wrt Virtual KF.....
    Get your data for the last year..and Set condition where Sales = 0.
    So this should filter data and you would get data where Sales = 0.
    Let me know if this is working or not
    Thanks
    Gaurav
    Assign pts if this helps*

  • Copying queries between cubes

    Hi,
    I would like to copy queries from a cube to a MultiProvider. Both have the same structure.
    I found the help at http://help.sap.com/saphelp_nw04/helpdata/en/9f/f57539d6d1c93be10000000a114084/content.htm . There it says:
    Result
    The copied queries and the copied sub-objects have their own names. The new names are derived from the name of the original object and the added elements _<number>.
    So the original query remains connected to my cube and a copy of this query will be created pointing to my MultiProvider. The technical name will change from e.g. "zmy_query" to "zmy_query_1". The same then applies to sub-objects (structures, calculated key figures and restricted key figures).
    Did I understand this correct?
    Thanks!

    Hi Steve,
    Structure can be re-usable where it holds multple number of CKFs/RKFs/KFs/Chars.... By using RSZC you can copy reports and its adjacent componets to other cube.
    We do this activity during enhancement activity, not to stop users from viewing reports.
    Regards,
    rvc

  • Need the solution in the Bex Query level for a Business Requirement.

    Hi BI Experts,
    I have a requirement at Bex Query level and the scenario is like this:
    Business Logic.
    Right now am showing the Stocks falling in to time slot like 6-9 months and 10-12 months from the date of PKD in two columns B1 and B2 respectively.
    And also calculating the stock selling price of B1 with 30 % discount and B2 with 50% discount.
    In the above said discounts client may change the discount % in any future Quarters
    Now the requirement is, if client needs to see the history of sales according to the declared Discount selling prices of stocks falling into B1 and B2 slots, he must get the values accordingly.
    ( Am using the Formulas for calculating the Discount % for the Stocks fall in to B1 and B2 slots)
    Business Example:
    For Q4 2007 The discount for B1 Stocks is 35% and B2 Stocks is 60%.
    For Q2 2008 The discount for B1 Stocks is 35% and B2 Stocks is 55%.
    For Q3 2008 The discount for B1 Stocks is 30% and B2 Stocks is 50%.
    For Q4 2008 The discount for B1 Stocks is 40% and B2 Stocks is 50%.
    Now running report ( running in Q4 2008  at some date) if client needs to check the B1 and B2 stocks in Q4 2007 or Q3 2008 the values need to come with the calculation of repective % of disounts declared in that quarters along with the selling prices in that quarter.
    This all should be done at query level nothing to do at Infoproviders level.
    Is there any option like storing query data as a master data  and retrive it according to the selection to get the exact values of the respective % Discounts and time lines.
    If It is not clear come up with questions for still more clarifications.
    Points are assured.
    Thanks in Advance,
    RK.

    Who is defining the % discounts for periods/quaters?
    Is this maintained in a custom table or externally in legacy/R3 system?
    There are various ways to achieve the result. Variable exits can be used or virtual KF/char can be used but all depends on actual requirements.
    Cheers

  • Pass Hierarchy Variable to RSR_OLAP_BADI

    Hi Gurus,
    I am using RSR_OLAP_BADI. Within the variable selection screen there is a hierarchy selection variable, I would like to pass the variable to the 'compute' badi logic.
    What is the best way to do this?
    Thanks in advance!.

    Hello Tom,
    Iu2019m glad that You said youu2019re not struggling with Badi. Let me refresh the memory briefly.
    Step 1,  Include ZXRSRU01
    IF i_s_rkb1d-infocube EQ 'AA'.
    IF i_step = '3'.
    u2026..
    Step 2,  Define Method
    CASE i_s_rkb1d-infocube.
    WHEN u2018AAu2019.
    u2026
    append l_s_chanm to c_t_chanm
    Step 3,  Compute Method
    u2026
    ASSIGN COMPONENT XYZ OF STRUCTURE c_s_data
    TO <XYYZZ>.
    u2026
    Logic for  Your Spec
    u2026
    Jen
    PS: Should search for articles about Virtual  KF/Char for more details about step 2 and 3.
    Edited by: Jen Yakimoto on Jan 18, 2011 1:35 AM

  • Deriving from std::runtime_error C++

    C++
    Hi everyone, I am trying to implement a simple vector with the usual operations of vector sum, and product for a scalar.
    If someone tries to sum up two vectors of different size, I want throwing an exception of type different_sizes that I defined:
    class different_sizes : public std::exception
    public:
    explicit different_sizes(const std::string& error_message) :
    what_(error_message) {}
    virtual const char* what() const throw ()
    { return what_.c_str(); }
    virtual ~different_sizes() throw () {}
    private:
    std::string what_;
    and it works.
    But I'd like being more precise about the kind of error and derivate from runtime_error or range_error. The obvious solution, changing from
    class different_sizes : public std::exception
    to
    class different_sizes : public std::runtime_error
    just does not works... the compiler says:
    error: no matching function for call to 'std::runtime_error::runtime_error()'
    note: candidates are: std::runtime_error::runtime_error(const std::string&)
    I checked the source of the stdlib, and in fact std::exception have a constructor without arguments, while runtime_error does not.
    How I can I explain the compiler he should use the const std::string the different_sizes constructor obtains?
    Thanks everyone.

    It's your constructor - when you extend a class, your constructor needs to call the superclass constructor.  When not specified, it uses the default, ie. no arguments, constructor.  If the superclass has no default constructor, you get this error.
    Try this:
    explicit different_sizes(const std::string& error_message) :
    std::runtime_error(error_message), what_(error_message) {}

  • Trasnporting EXIT_SAPMRSRU_001  INCLUDE ZXRSRU02

    Hi Gurus,
    I have written code in this virtual KF exit and in its components INCLUDE LXRSRTOP and in  INCLUDE ZXRSRZZZ for our virtual KF/ chars. This code is currently in development box.
    My question is how do I transport this to Acceptance box. How do I collect? etc. and what to send?
    I would appreciate any help.
    Regards,
    Reddy

    Hi,
    nomally these includes go directly into a transport order. If you decided to have them as temporary objects, then you need to go to SE80, chose Paket $TMP, find your includes and with a right mouse click on the include you go to 'more functions' and then to change paket asignment. Then you need to assign a new development class (paket) that will be transported and automatically the includes are posted to a transport order.
    regards
    Siggi

  • Display of Alternate Unit of Measure

    Hi there,
    We try to display alternate unit of measure <b>in BEx</b> by implementing the following Howto Doc:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to report data in alternate units of measure
    It works fine as long as 0MATERIAL is included <b>in the rows</b> of the report.
    In any other case (e.g. 0MATERIAL is a free characteristic or not included in the report at all) this solution won't work and we get the "red x"!
    Any suggestions??
    Thanx,
    Ofer.

    Hi Ofer,
    Virtual Char/KF behave as normal Char/KF in a sense that you create and add them in Infoproviders or Queries just like normal Char/KF. But they do not hold any data/values and their values are determined only at query run time (by writing code in user-exit for virtual kf/char.)
    The logic could be something like this (though I'm pretty sure, would need to work on it again ):
    Keep in mind that all this would be performed at query run time:
    1. For each record, read material master data.
    2. Get quantity, UoM for above record.
    2. Get UoM from selection screen variable.
    3. Convert and store in virtual KF.
    You can search this forum for more information on it. Do let us know if need any more info.
    Regards,
    Vikrant.

  • When are aggregates not used???

    Hey All,
    I have a question concerning aggregates and when they get used.  I have a user running a query and specifiying values in the selection criteria for the following:
    - Sold-to Party
    - Distribution Channel
    - Site
    - Condition Type
    - Calendar Week
    All 5 of these Characteristics are part of the new aggregate I build.  I guess I don't understand why the aggregate is not being hit, if they're reporting on the exact same Characteristics that are part of my aggregate.
    Can anyone explain????
    Much appreciated.
    John

    John,
    For an aggregate to be used all of the following have to be true:
    InfoObjects in the Rows must be included in the aggregate
    InfoObjects that have restrictions on them (Rows, Filters, FCs, KF Columns) must be included in the aggregate
    InfoObjects that are referenced as part of exception aggregation
    No Virtual KFs in the InfoProvider
    No 'Before aggregation' calculations on the CKFs
    I believe that is the complete criteria.

  • Standard InfoCube for BI Query

    Hi all,
    I need to identify standard InfoCubes for the following requirement:
    - Sales order amount per order, customer, division *should be extract from sales order
    - Sales cost amount per order, customer, division *should be extract from CO/PA?
    - Sales revenue amount per order, customer, division *should be extract from billing document
    - AR amount per order, customer, division *should be extract from FI? AR?
    - Cleared AR amount per order, customer, division *should be extract from FI? AR?
    Could you let me know what standard InfoCube would fit the best for this requirement?
    Cheers~

    Hi Dave,
    If you can't find the exact standard one,  you can always copy the existing sales cube which has other information you want
    and add a new Key Figure to calculate the amount you want through routine or formula.
    Another option is, you can always do the calculation at query level through CKFs or Virtual KFs.
    Thanks.
    Edited by: Venkatesh Iyengar on Oct 12, 2010 6:21 AM

  • Help on Virtual Chars & KFs

    Hi,
    I need some help on how to create virtual chars & KFs.
    I hv created an Info object in a DSO.
    I donno how to go abt writing the code and where.
    Can some one point me to some material on this?
    Thanks,
    Arun KK

    refer:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e051fda8-71a9-2a10-ac9e-8d17414a8c8c
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/93ed1695-0501-0010-b7a9-d4cc4ef26d31

Maybe you are looking for

  • Launch flash builder from flash cs5 don't work

    hi I have a trial version of flash builder (eclipse plug-in) and registered flash cs5 pro I'm trying to open a new AS3 class like in this tutorial: http://tv.adobe.com/watch/learn-flash-professional-cs5/using-flash-pro-and-flash-builder-t ogether/ an

  • Can I have more than one "Contacts" file

    I have several groups in my Address Book/Contacts file. But in order to deal with the incredible shortcomings of Brother label printing software (the worst software shipping with a product I've ever encountered) it seems I really need to have a separ

  • Where did the Aux sound input go?

    First time I installed Windows XP on my new setup (see sig), I had the sound from the DVB-S card mapped to the Auxiliary input on the Playback control panel. The sound for this input was going through the PCI bus - I didn't have any analogue audio ca

  • Help.. best way to share FC projects between 4 computers

    Hi There, We are a small video production company and we use four computers to edit, one Mac Pro, two iMacs and a Macbook Pro. The problem we have is that we often need to move the projects from one computer to another, so different members of the te

  • SAP business connector 4.8

    Hi Experts, Request you to please suggest me. i am new to SAP BC. my team given me work to migrate SAP business connector 4.8 one location to new location. So request you to please suggest me how i can achieve this task. Thanks, Navneet Kumar