'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

Similar Messages

  • 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

  • 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

  • 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 performance issues ?

    Hello BW Experts,
    Does virtual chars have performance issues ?
    It has small effect or an adverse effect ?
    please suggest.
    Thanks,
    BWer

    hi BWer,
    it depends on the 'logic' in virtual chars exit, may have performance issue e.g if you select/populate from
    table, but may not if only filled with other characteristic value or only simple logic.
    the 'how to' doc sample from sap market place have no performance issue.
    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

  • How to call DOC file using web.show_documents

    Hi friends ,
    If I use the built-ins web.show_documents for open the *.doc file
    I am getting the following error
    ORA-06550: line 5, column 2:
    PLS-00201: identifier 'README.DOC' must be declared
    ORA-06550: line 5, column 2:
    PL/SQL: Statement ignored
    DAD name: WebDB
    PROCEDURE : readme.doc
    URL : http://132.148.160.3:80/WebDB/readme.doc?
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    SERVER_PORT=80
    SERVER_SOFTWARE=Oracle WebDb Listener 2.1
    SERVER_NAME=132.148.160.3
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PROTOCOL=HTTP/1.0
    REMOTE_HOST=132.148.160.251
    REMOTE_ADDR=132.148.160.251
    REQUEST_METHOD=GET
    QUERY_STRING=
    SCRIPT_NAME=
    PATH_INFO=/WebDB/readme.doc
    HTTP_ACCEPT=*/*
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
    HTTP_HOST=132.148.160.3
    HTTP_CONNECTION=Keep-Alive
    Please advice How to call Doc file in web.
    Thanx
    null

    The syntax to execute web.show_document:
    web.show_document('http://server_ip_or_server_name/virtual_path/filename.doc')
    The virtual path has been defined in Apache (if you run on web with Apache) or has been defined in Internet Inoformation Server (if you are runing with Internet Information Server.)
    null

  • Virtual Char error - UC_OBJECTS_NOT_CONVERTIBLE

    I posted this on BI general, but thought may be this is a better place..please respond..
    Hi all, I am trying to implement a virtual char and I foolowed the how to paper from SAP...My example is a very simple one where I want to test how this concept works. What I wanted to do is to be able to assign a constnt value to the characteristic 0PLANT, but I get the following runtime error when I test the report in RSRT.
    UC_OBJECTS_NOT_CONVERTIBLE - Data objects in Unicode programs cannot be converted.
    The statement
    "MOVE src TO dst"
    requires that the operands "dst" and "src" are convertible.
    Since this statement is in a Unicode program, the special conversion
    rules for Unicode programs apply.
    In this case, these rules were violated.
    here is the code I had in the method: IF_EX_RSR_OLAP_BADI~COMPUTE
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
    field-symbols <fs_0material> type any.
    field-symbols <fs_0plant> type any.
    data: l_plant type /BI0/OIPLANT.
    assign component p_cha_0material of structure c_s_data to <fs_0material>.
    assign component p_cha_0plant of structure c_s_data to <fs_0plant>.
    <fs_0plant> = l_plant.
    endmethod.
    I tried to search in SDN and on Service market place but could not find proper documents. Can someone help?

    Ok I am past the error message and can actually execute it throught RSRT, but I dont see the virtual chars being filled in the output result. I can see through debug mode that the Virtual char in this case ZMRPDATE getting a value and also c_s_data being filled with that value, but finally when it outputs the result in RSRT it shows nothing. Is there any step that I am missing??
    METHOD IF_EX_RSR_OLAP_BADI~COMPUTE .
    field-symbols <fs_zmrpdate> type any.
    field-symbols <fs_0material> type any.
    field-symbols <fs_0plant> type any.
    field-symbols <fs_zberw2> type any.
    data: l_plant(4) type c.
          l_plant = 'ABCD'.
    if p_cha_0plant is not initial.
    assign component p_cha_0material of structure c_s_data to <fs_0material>.
    assign component p_cha_0plant of structure c_s_data to <fs_0plant>.
    assign component p_cha_zmrpdate of structure c_s_data to <fs_zmrpdate>.
    assign component p_kyf_zberw2 of structure c_s_data to <fs_zberw2>.
    endif.
    select single /bic/zmrpdate from /bic/azpur_mdp00 into (<fs_zmrpdate>)
               where
                    material = <fs_0material> and
                    plant    = <fs_0plant>.
    <fs_0plant> = l_plant.
    <fs_0material> = l_plant.
    ******<fs_zmrpdate> = sy-datum.
    <fs_zberw2>  = '999'.
    Write afte the above step I could see that the C_S_DATA has changed, but the output result in RSRT will not the fields filled, they are still blank!!!!!!!!!!!!!!!!
    Edited by: Ram Gowda on Feb 11, 2008 11:15 AM

  • Virtual Char and Keyfigures in Queries

    Hi Experts ,
    I have one basic Keyfigure Constrained forecast (Fc)
    for period X
    and also I have one Field "Equal Numbers" (not present in cube)
    If(FCx1=FCx2=FCx+3;u201DYu201D;u201DNu201D)
    I have to compare the 3 respective period sales.....
    the Equal number Field should be populated according to the above logic ....
    "Equal Numbers" = 'Y' or 'N'
    Fiscal year/period X (single,Mandatory) = 001.2007
    X+1 = 002.2007
    X+2 = 003.2007
    X+3= 004.2007
    How could I do this at Query level ?
    and Pelase let me know if there is any alternative solution...for this.....
    and one more thing ...
    I have one more field "Minimum Sales per a month" in the selection criteria ... Which was not there in the Cube level... and the value for this is 1Metrci Tonn to infinite....
    and also the field "Average coming 3 free periods "
    I have whih should be restricted as below...
    Average(FCx1;FCx2;FCx+3)u201D
    Filter on >Minimum sales a month
    How could I do the above those two at the Query level.....
    In cube level I have only one basic KF Constrained forecast (Fc).....
    is there any possiblity of Virtual Char/ KF .......
    Could any body help me reg this...
    Regards,
    Nagamani

    Hi Shanti,
    this is my id ..
    b.nagamani.2006     gmail
    Thanks in Advance....
    Regards,
    Nagamani

  • 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 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 - a new problem

    Hi folks, new to the forum but been working with BW since version 1.2A!!!!
    Anyway, I have implemented Virtual KF to allow me to rank values within a report. This solution was put in place to give a certain ranking when there are drill down and drill across chars on the same page.
    The issues I have is that I would like to access different Virtual Char code depending on which query is being executed.
    Virtual KF sit at the Cube level and execute the same code whenever a qurey with that KF is executed, I need to be able execute different code for the same Virtual KF for different queries
    any ideas?
    thanks
    alan

    Hi Roberto,
    Thanks for providing Alan with information on how to assign points. This time I gave you points on his behalf.
    Contribution Recognition Program FAQ: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    Cheers,
    Linda

  • 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

  • How to insert varchar2 40000 englist char to database.

    How to insert varchar2 40000 englist char to database use jdbc.
    My table is ut(varchar2(4000));]
    oracle version is 9.0

    Are you using the thin driver or the OCI driver? The Oracle Globalization Guide documents that the thin driver imposes more restrictive size limitations on character data than the Oracle database http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96529/ch9.htm#14068 You would need to ensure that you're using the OCI driver to work around these restrictions.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How do I get a virtual lab to play,quicktime does not work with this CD,I have quicktime on other computers works fine with this CD. Technician said Cd could

    How  do  I  get  a  virtual lab to  work  on  this  computer.  The  technician  said  the  CD  is  not  compatible. Maybe  corrupt. He  seemed  he  did  not  know
    what  he  was  talking  about. I  asked  him  was  it  any  software  I  could  download  he  said  no.  This  CD  works  fine  on  my  other  computer, no  it  is  not  an  apple  computer. And  I  use  quicktime  on  both  computers. But  on  this  apple  computer  quicktime  does  not  play  this  CD, which  this  type
    of  CD  works  better  with  quicktime. Any  suggestions  on  how  to  solve  this  problem.  This  is  a   new  computer,  I  would  hate  to  think  their  is  nothing  that  can  be  done.

    I  need  step  by step  instructions  on  how  to  get  my  virtual  lab  cd  to  work. The  technician  said  cd  not  compatible  or  is  corrupt.  I  do  not  believe  their  is  nothing  that  can  be  done.  When  I  put  the  cd  in  the  side  slot  nothing  comes  up  on  the  screen.  I  have  tried  several   ways, the  technician  did  not  seem  very  knowledgeable  on  what  to  do. Also  this  cd  plays  fine  on  my  other  computer  which  is  not  an  apple  computer. Is  there  anything  I  can  do  to  correct  this?

Maybe you are looking for

  • Flat File automation process - limitations

    Hello Everyone, I would really appreciate any insight on the process improvement suggestions. Background: Currently we have around 12 territories providing a new flat file with new data on a daily basis depending on the business activity. Which would

  • Why does the body of the email vanish??

    I have the most annoying issue with mail that is beginning to wind up my clients! About one in five of the emails I send appear in the other person's inbox with no text in the body of the email – instead, the text is attached in a file (the name of w

  • Setting soap header in BPM

    Hi All, We are invoking a external webservice using BPM composite, where the webservice is expecting a soap header , could some one help us in setting message header .. is there any way of setting message header using service task or mediator .. Rega

  • X-fi, no EAX in BF 2

    Hi all. I have a X-fi Xtreme Music. I have the settings on X-fi, Ultra and EAX on. I also have my sound setup on Gamer. Eax is checked on. Not sure this should be so after reading some posts. And CMSS 3d is on. I hear no EAX working at all. Tested al

  • Photoshop CS5 help file not showing on German Win7

    Hi, I try to display the help file from within PS CS5 and that is not working. I can neither watch the community help online nor download it for offline use since the app seems unable to connect to a working online source. It shows "The requested URL