Virtual chars/key figs

Hi BW gurus--
Let me know the Purpose of Virtual chars and key figs.
also how to handle and how to create the same.
Regards,
Rambo.

Hi Rambo,
virual chars/key figs are normally created infoobjects. They will be added to a provider, but there is no value posted to them in the provider. They will stay initial. In the relevant user exit (enhancement rsr000001) you have to implement the coding to populate the values during runtime of your query.
You can use them
a) to show movements without having any data posted to your provider (e.g. you can set a flag identifying a sales order for 'in time', 'due' or 'late' if you compare the run date of the query with the desired delivery date of the customer. Of course for order without having the status 'delivered'.)
b) to create flexible classifications (e.g. sales orders amounts: 0 - 100 = class A, 101 - 1000 = class B.... if you want to change the classification based on the amounts you have to use virtual infoobjects)
Hope this helps!
regards
Siggi

Similar Messages

  • What are Virtual Chars & KFs

    Hi Friends,
    I am new to BW. I would like to know about Virtual Chars & key figures.
    Where can they be created ? How to create them? Whats the use of them?
    If anyone of you have any document which speaks about them , pls send it to
    [email protected]
    Thanks
    mv_d

    hi,
    A virtual characteristic / key figure can be used to derive values at
    query run time
    The virtual characteristic / key figure must be added to the cube as a
    characteristic or key figure but not filled in update rules or transfer
    rules
    Useful for determining values that are not known or determined until
    query runtime
    Cache not used – Could have performance impact
    Can be used in conjunction with variable userexit
    n The value selection made by the user for the variables can be used in
    the virtual characteristics and key figure exit.
    EXIT_SAPMRSRU_001 - BW: Definition of Virtual Characteristic
    ZXRSRTOP – Global Variable Definition Section
    ZXRSRU02 – Specify if infoobject should be read or populated during
    exit
    ZXRSRZZZ– Enhancement Coding (Update Logic)
    Transaction RSRT can be used to troubleshoot virtual characteristics
    For queries with virtual characteristics or key figures you are able to activate the use of the cache, which is deactivated by default.
    Also look at the following post for a typical scenario,
    How to implement Virtual Characteristics or Virtual key figures
    try out these links for similar issue..
    Virtual Characteristics & Virtual Keyfigures....Scenarios
    virtual chars and keyfigures
    Virtual Keyfigures and Characterisitics
    Virtual Characteristics...
    assign points if it helps....

  • Virtual Key Figs and Virtual Chars......Perf

    Hi,
    Can anybody please brief me on Performance Factor will it increase or decrease when you use virtual chars and virtual key figures?
    Thanks,
    JB

    Hi,
    Perofrmance decreases with the use of virtual key figures and chars as the values of the objects are calculated at the runtime of the query.
    It affects worse if the amount of data thast is going for query processing is huge.
    Since using VKF is like calculating at the runtime of the queires by applying the logic needed.
    It is only reccomended in the case when the users are having no issue with the performance of the queries and are ready to wait for the output.
    Go for it when you have no other option.
    Hope it helps
    Thanks

  • Documentation How to use Virtual Key fig.

    Hi all ,
    Can u please send me Documentation How to use Virtual Key fig. to [email protected]
    Nice weekend.

    check this doc to get a headsup on Virtual objects - though the doc talks abt the virtual char, the procedure is pretty much similar to KF too.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion
    How to implement Virtual Characteristics or Virtual key figures

  • Virtual chars and key figures

    Hi,
    I had a business requirement for virtual chars and keyfigures.
    Please provide detailed step by step procedure for implementing virtual chars and keyfigures.
    .PDF files would be more helpful.

    Hi,
    Look here:
    Re: Virtual key figures
    Best regards,
    Eugene

  • Diffrence b/n char date &key fig date

    hi experts,
    what is the diffrence b/n the date field in char &date in key fig
    in what scenario we will use this
    pl give clear idea about how to use
    thanks in advance
    venu

    Hi,
    according to me, the difference between DATE(s) as char. is you can use this
    char. as a display column or as a free char. but you'll not be able to perform any
    restrictions or use as a conditional parameter or perform any calculation on this
    DATE, whereas if the DATE is avaialbe as a keyfigure, could do all the above
    mentioned activities...that's advantage of having date as a keyfigure, to build a
    complex logical query..
    Hope it helps..
    pls. assign points if useful..
    Cheers,
    Pattan.

  • Virtual char and keyfig

    HI
    wt is the ue of virtual chars an keyfiures.. how r they created.... how r they different from normal keyfig..... explain .. plzzzzzzz
    <removed>
    Regards
    Rekha

    Hi Rekha,
    Virtual key figures: Will not be stored in the cube. Will be computed at run time when he query is executed. The are virtual in nature and not physical. When you view the cube's contents in listcube, you will not see it there. This is not the same as calc key figures. example: to store sales in your cube and this has o be allocated to all the group companies with a business logic, in this scenario you can code the logic in an exit and derive these virtual key figures. Another example is, when you report on no of days outstanding of your debtors. This will vary depending on when you the run the report. So, a exit can be coded to compute this run time. This is classical example of virtual key figure.
    Virtual characteristics: Same as above. Here you will derive the characteristics while report is run.
    Depending on the requirements, you must decide when to code for a virtual kf or cha and when to store them in the cube physically.
    Virtual characteristics and Key figures are useful if you want to dynamically pouplate data from the fact table to the field.
    Virtual key figures are key figures within an InfoProvider that are not filled with data. Instead the key figure value is determined at runtime of the query using custom ABAP coding
    Check "how to" doc for virtual characteristic/key figure details.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion
    Virtual key figures and charecteristcs are populated at query execution time.
    These virtual objects should be included in the modelling level itself,so that it can be used in the query while using exit in that.
    check this step by step doc:
    https://websmp106.sap-ag.de/~sapdownload/011000358700009299362001E/HOWTOIDENTIFYCOMPRESULTS.DOC
    <removed>
    Regards,
    Ravikanth

  • 'How to Do Doc' on Virtual Char & KF

    Can any one please send me How to do document on Virtual Char & KF
    Thanks

    Hi,
    Virtual key figures: Will not be stored in the cube. Will be computed at run time when he query is executed. The are virtual in nature and not physical. When you view the cube's contents in listcube, you will not see it there. This is not the same as calc key figures. example: to store sales in your cube and this has o be allocated to all the group companies with a business logic, in this scenario you can code the logic in an exit and derive these virtual key figures. Another example is, when you report on no of days outstanding of your debtors. This will vary depending on when you the run the report. So, a exit can be coded to compute this run time. This is classical example of virtual key figure.
    Virtual characteristics: Same as above. Here you will derive the characteristics while report is run.
    Depending on the requirements, you must decide when to code for a virtual kf or cha and when to store them in the cube physically.
    Virtual characteristics and Key figures are useful if you want to dynamically pouplate data from the fact table to the field.
    Virtual key figures are key figures within an InfoProvider that are not filled with data. Instead the key figure value is determined at runtime of the query using custom ABAP coding
    Check "how to" doc for virtual characteristic/key figure details.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion
    Virtual key figures and charecteristcs are populated at query execution time.
    These virtual objects should be included in the modelling level itself,so that it can be used in the query while using exit in that.
    check this step by step doc:
    https://websmp106.sap-ag.de/~sapdownload/011000358700009299362001E/HOWTOIDENTIFYCOMPRESULTS.DOC
    Regards
    Karthik

  • Urgent!!Virtual Char & KF using customer exit!!

    Hi
    Anyone explain me in easier way the steps for Virtual char & KF & where we use it??H to use it with the help of customer exit & why??
    Pls xplain me .
    thnx
    raj.

    Hi,
    A virtual characteristic / key figure can be used to derive values at
    query run time
    The virtual characteristic / key figure must be added to the cube as a
    characteristic or key figure but not filled in update rules or transfer
    rules
    Useful for determining values that are not known or determined until
    query runtime
    You will find the Doumentation and Example in SMOD for Virtual Characterstics and Keyfigures.
    for Documentation and Example.
    Goto Tcode SMOD -> Enter Enhancement as RSR00002 ,Select the Radio button Documentation -> Click on Display
    check the thread for more info...
    what are Virtual Chars & KFs
    virtual char and keyfig

  • Is it possible to use virtual chars in the aggregation level?

    Hello,
    Is it possible to use virtual chars in the aggregation level?
    thanks

    Hi.
    See answer of Mr. Gregor Dieckmann in [this topic |BI-IP: Copy planning function from virtual key figure;about virtual KF.
    Regards.

  • Virtual Char/KF Question

    Dear Experts,
       I have the following requirement:
    In my cube I have the following Chars:
    Reference #
    Clearing Date
    Net Date
    Date1
    Date2 => Virtual Charc
    I have a query with input variable as Key Date based on Infoobject Date2 in the cube. I want to restrict a Key Figure based on value of Date2.
    In my query I want to accept user input via Key Date. Then,
    If Reference# <> blank and (Clearing Date = Blank OR Clearing date GT Key Date)
      I want to assign Net Date to Date2
    else
        I want to assign value in Date1 to Date2
    I would really appreciate if someone could point me how to do it.
    I know the characteristics and Key Figures can be accessed in Virtual Char/KF implementation but my question is how can I access the value of Key Date which is a user input value in Virtual Char/KF implementation?
    Thanks.
    Regards,
    bw_newbie

    Try this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e473ab90-0201-0010-22ac-fdd925cac167
    It isn't exactly what you are doing, but it should be close enough to get you where you want to go...
    Brian

  • Virtual Chars  and Keyfiguers

    Hi friends,
       how can we define  virtual charecterstics and Virtual keyfigures.. in the info object creation screen there is no  option to  define that object as a Virtual.. then how can we define that object as  virtual..
       and in what situation we can declare as  virtual... can you plz  give me a brief explination abt this... plz dont suggest any links... i did't got any conclusion by seeing those links..
        help ful answers  will be  highly appriciated...
    regards
    Babu

    hi babu..
    virtual key figures are key figures within an InfoProvider that are not filled with data. Instead the key figure value is determined at runtime of the query using custom ABAP coding .(or)
    Virtual characteristics and Key figures are useful if you want to dynamically pouplate data from the fact table to the field which doesn't have any data in the fact table and also used to build an internal security model before the data gets passed to DATA_PROVIDER.
    Virtual Characteristics and Virtual key figures are not part of data targets.
    By Virtual Characteristics and Virtual key figures Query performance is going to impact.because these are not part of the data targets.
    Ex: you have keyfigures profit,sales
    You are going to create a Virtual key figures say COST = sales - profit.
    so these cost is a Virtual key figures which is not part of a data target.
    when you execute particular query your OLAP processor is going to pick the data by caluclating the COST.& it impacts the query performance.
    You can get more information if you review the documentation for enhancement RSR00002.Go to SMOD type in RSR00002 and select the documentation radiobutton..
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sanyam.kapur/blog/2005/04/30/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-ii
    Also check these threads tooo.
    Virtual Characteristics and Virtual keyfigures
    Virtual chars and key figures
    sampel code for virtual key figures
    Virtual Key Figure
    Virtual Key Figure
    Virtual key figure
    Code for Virtual keyfigure
    virtual key figures
    See this:
    https://forums.sdn.sap.com/click.jspa?searchID=3080291&messageID=3366412
    https://forums.sdn.sap.com/click.jspa?searchID=3080291&messageID=3371606
    and
    https://forums.sdn.sap.com/click.jspa?searchID=3080292&messageID=3309795
    In SAP BW, values of key figures and characteristics do not necessarily have to be stored permanently in an InfoCube or in a master data attribute table. Virtual key figures and virtual characteristics allow the dynamic computation or derivation of values for key figures and characteristics at query execution time.
    Examples 4 Virtual Characteristics
    Dynamic categorization of key figure values such as age groups and price ranges, where the basis for calculating the categorical values is variable (as for the age).
    2.Computation of complex compound values, combining information read from the InfoCube
    with current information retrieved from other sources (e.g., master data attributes).
    Virtual key figures can be used to perform complex computations on the fly that are
    beyond the scope of the formulas available in the BEx Query Designer.
    Examples include
    1.Dynamic computation of the current age of a customer based on the current date and the birth date of the customer or the number of days on back order.
    Both virtual key figures and virtual characteristics are rarely used, as they impact query performance and the degree of flexibility in defining aggregates significantly.
    hope this helps..

  • Virtual Chars and KF

    Hi Gurus,
    can i use the Virtual Chars and KFs in an ODS
    and then use them in the reporting and through codeing can i get them filled from the required value of an char or kf of the ODS only basing on a business logic.
    If somebody can forward me the docs on them i will be happy or else any links of service.sap.com will also do please
    thanks and regards
    Neelu

    Hi Neel
    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
    How to implement Virtual Characteristics or Virtual key figures&tstart=120
    Hope it helps
    Regards
    Pradip

  • Virtual char's not working with new session

    This is a weird one...
    I've managed to build virtual char's and key figures in BW 3.5. It is working fine with my first query, but when I start a new session of BEx Analyser (or WAD) the values are suddenly empty.
    I've found that if I reactivate the cube it works again, but only for the first session. With the next session the values are empty again.
    Any thoughts?

    burkey7669 wrote:
    I put it in the freezer( an online solution),
    No intelligetent person puts electronics in the freezer.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  If none of this resolves, then the device should be taken to Apple for evaluation.
    If Apple determines the device has suffered a hardware failure, they will either replace under warranty (if under warranty) or offer an Out of Warranty replacement.
    So what exactly is the problem?  They offered an Out of Warranty replacement for the defective device.

  • 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.
    Thanks

    Hi,
    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

Maybe you are looking for

  • Dng and CR2 files display as icons in CS5

    Now I have installed CS5 on three machines - a new installation on WIN7, and here everything is alright - no problem! Two machines running XP wth a previous CS4 installation uninstalled show up in Bridge with this problem: dng and CR2 files display a

  • How to change Approval mail title

    Dear all, I want to change approval sc mail title. So I changed Task 10008126. basic data-->work item text.. but still is old text after I get notification of shopping cart approval of email .who can tell me...how to active new text? Thanks a lot. Al

  • OS X Yosemite Crashes on Startup

    This is my second attempt to upgrade to Yosemite.  After restarting from power off the startup screen will display what appears to be a dump file.  I do not have any details as the screen disappears quickly.  I then get a message that the computer ha

  • Help with multiple select in LOV

    Howdy, Is it feasible to have aa LOV with and "all" option? For example, having the LOV(P2_USERLIST) of userid below WITH an "all" option to select user1 to user4 or individual ones if needed. all user1 user2 user3 user4 So my report query would be s

  • Automatically exclude all folders with a specific  name?

    I am using Apple's Logic audio program (but this could apply to anything): Every Logic project creates a folder named Freeze Files which is usually very large and not necessary (for me) to back up. So I'd like to tell TM to hide every instance of any