Virtual KF in a Query

Hi Guys,
I have some questions about virtual key figures/Characteristics . Could anyone help me, please?
In a query you can change the columns and delete some of those . If you do that the "query" has to recalculate the value of key figure column because if you delete a characteristic key column, the query  have to change the value of the other columns, hasn't it?
The other doubt is.
If you do a "query1" with a virual key figure "key_fig1" and you do another query called "query2" in the user exit
EXIT_SAPMRSRU_001--> Include ZXRSRZZZ you can choose that only query1 use the virtual key figure??, because "query1" has the same definition of "query2".
Thanks a lot ,
best regards.
Ana

Hi Ana,
1. When you remove a column from a BEx report in Analyzer, the query aggregates the value of the key figures to the appropriate level. Similarly, when you add a new column into the result set, the key figures are disaggregated.
2. Yes you can code a condition in your exit so that only query 1 executes the code for customer exit. Do a check on
IF I_S_RKB1D-COMPID = '<query1 name>'.
write you code for calculation of VKF here *
ENDIF.

Similar Messages

  • Virtual Character in Bex Query / Filter by Attribute

    Hi ,
    We have a query where we need to resrict the query result by a character at run time. I think this is done by using virtuual characters with user exit RSR00002...Here is our requirement. We have the PCA query with Cost element heirarchy (Revenues & Expenses as nodes and several other sub nodes available) as the report out put and when we drill down by cost center user wants to see the result of blank cost centers only for Revnues but not for Expenses.
    If this scenerio is not possible by virtual characters, I have a display attribute in Cost element where Revenues always have type 11 and Expenses have 1. So I need to exclude the cost center blanks for cost element type 1....But I'm not sure how to achieve this. Can any one advice if this is better to do in Info cube level / Bex query level...
    Thanks

    Hi,
    This forum is for the BusinessObjects BI Solution Architecture. I would suggest you post your questions into the corresponding SAP BW Forum
    regards
    Ingo Hilgefort

  • BEx query based on virtual cube donu00B4t display a valid List of Value (LOV)

    Hello
    I have a problem with an invalid LOV. The scenario is the following; There´s a BEx query based on a virtual cube. The query has an exit variable on caracteristic that is based on 0CALMONTH.
    At Universe Designer I simply create a connection, a universe based on this query and export.
    At Web Intelligence (also at Live Office), when I try to execute de query, the prompt to fill my exit variable display a list of value that doesn´t match with the values of the caracteristic at the cube.
    Actually, the list at the prompt starts with 01.0000 and finishes with 05.0968.
    In Universe Designer, the option to edit the list of values is not available. But I think that editing the LOV is not the correct way.
    I´ve tried creating a new query based on the DSO that is the source of the virtual cube. In this case, I had a valid list. Unfortunately, I can´t use this DSO.
    Did anyone already have this problem?

    Hi James,
    can you explain what you mean with "input length for that filed" ?
    The field in the table is varchar2(120). I coudn't found options for the List of value.
    Thanks for your response
    Carsten
    null

  • Badi-Virtual keyfigure value not populating in query

    HI all,
    I am trying to populate a constant value into the virtual keyfigure when the query is executed but the value is not getting populated.
    I followed the steps how to do this by looking into the step by step process for keyfigure article which i found in SDN.
    When i execute my BADi in se19 i am able to get the value but not in the query.
    Is there a special way to create keyfigures or is it the same way as we create a normal keyfigure.
    Can someone tell me how to get the values in query.
    Thanks in advance.
    Regards,
    Harish

    Hi,
    why dont you debug the badi while executing the report from RSRT t-code. This will give you some idea.
    To debug, put a break point in 'define' as well as 'compute' function of your Badi-implementation, then go to RSRT t-code, enter your query name and then click generate. It will stop at the break-point. Here you can see what is the problem
    Regards
    akshay

  • Calculated virtual characteristic

    Hello,
    I need to create a characteristic which is calculated virtual runtime of the query.
    This must be calculated from an input variable that is associated with the feature query Date Mat., (Which is the condition of the filter (>=)) therefore take out the query all records in the cube whose date of CBs is> = the date entered on screen) and the expiration date of the records obtained at the office.
    As you can see the calculation is done with the same property but using the input variable.
    The code would be:
    No. days = date input variable Mat - date vto.registro read.
    No if days> = 0 or n º days <= 30.
    characteristic virtual = '0 - 30 '
    endif.
    This code is to be implemented in this project or the expansion RSR00002 RSR_OLAP_BADI badi, but what is not very clear to me is like I can read the value of the input variable ..
    Sincerely,

    Hey.  The way I have done this in the past is to catch the variable value in the variables user exit and then store that value to be used/looked up later in the virtual object user exit.
    What you will want to look at is doing an export to memory on the variable value entered (that you get in the variable user exit) and then an import from memory in the virtual exit.  I believe the code syntax is something like...
    EXPORT TO MEMORY xxx ID yyy
    IMPORT FROM MEMORY zzz ID yyy
    Here, xxx and zzz are the fields you are dealing with.  I'm going from memory here, so the syntax may be a little different but the idea is the same.
    Thanks

  • Performance issue on a virtual cube

    Hi BW gurus,
    I am working on Consolidation virtual cube and the query performance thru that cube is very bad. I know that we cannot build aggregates or partition on a virtual cube ..what should be my approach then.....
    Your suggestions will be appreciated with lots of points

    Hi Nick,
    If you can not move out of the virtualcube option, then I think you should try to improve the performance of the virtual cube. This mainly ABAP work. You can use SE30 to analyze what parts of the code is taking too much time. Follow this steps:
    1) Create a breakpoint in the function module of your virtualcube
    2) Go to listcube and initiate an extraction from your virtualcube.
    3) On a separate session, run SE30 to start an analysis of the extraction process for your virtual cube.
    You can use the report from SE30 as a starting point on your performance optimization work.
    Note: Transaction ST05 can help you determine what database calls are taking a long time.
    Hope this helps.

  • Problem with different resultset with same data and same query in Oracle 8.1.7 and 9i

    Hello,
    I have been using this query in oracle 8.1.7
    SELECT
    ID,
    AREA_NO
    FROM MANAGER_AREA MGR
    WHERE COMPANY_ID = :id AND
    (:value < (SELECT COUNT(ROWID)
    FROM MANAGER_WORK MW
    WHERE MW.AREA_ID = MGR.ID AND
    (MW.END_WORK IS NULL OR MW.END_WORK >= SYSDATE)))
    order by AREA_NO;
    In the above query I want to see rows from MANAGER_AREA table depending upon date criteria in the table MANAGER_WORK and also upon the parameter :value i.e if I pass a value as 0 I get to see records for which their is atleast 1 record in MANAGER_WORK with the date criteria and if I pass -1 then I get all the records because minimum value that count(*) would give is 0. The resultset was as expected in 8.1.7.
    A couple of days back I installed PERSONAL 9i to test for testing the basic functionality of our program with the same data. This query fails and irrespective whether I pass -1 or 0 it returns me same dataset which I would have got in case if I pass 0.
    I do not know whether this is a bug that has got introduced in 9i. Can anybody help me with this problem. It would be difficult for me to change the parameter send to this query as the Query is called from many different places.
    Thanks in advance
    Amol.

    I cannot use a Group by and a having statement over here. The problem with 'Group by' and 'having' clause is If I have to make a join between the two tables. When I use join then I get only rows that are linked to each other in the table.
    If I use outer join to solve that problem then I have to take in consideration the other date condition. My previous query use to virtually discard the corelated query result by using -1 as the value. This will not happen in the join query.
    Amol.

  • Volume in BEx Query

    Hello all,
       I am on BW 3.5.  I have a report that tracks material volume.  It is working fine.  However, there is one issue.  Right now, I calculate volume everytime inventory moves (volume is a key figure in the 0IC_C03 cube).  Essentially what I do is with every relevant material movement I do a lookup into the material master and get the volume.  Then I populate it into the cube and report on it.  This is working fine.
       The issue is that volume is (suprisingly) not constant.  It changes over time for the same material (go figure - that makes no sense to me, but whatever) so that the numbers are sometimes inconsistent between months.  For example, 100 units of material 123 show a volume of 100 ft3 in April and the same 100 units show a volume of only 50 ft3 in May because someone changed the volume in the R/3 material master.
       So what I need is to base all my volume calculations (both current and historical) on what is in the material master at report runtime.  It's like I need a navigational attribute for volume.  I already have a formula variable.  But while it works at the material level, it is blank if material isn't showing in the report.  Most of the users want to see things at the material group level.  I do not know a way of turning volume (a key figure) into a navigational attribute, or better yet, of making a formula variable work when the characteristic it is tied to is not showing in the report (i.e. it aggregates with report navigation).
       Can anyone help me out here?
       Thanks.
    Dave

    I could think of a alternative solution and that is use of Vitual Key Figure.
    In this case, Volume will be a virtual KF which will be populated at query run time using abap code and you can look up volume value from material master in the code.
    But use of Virtual KF will make query execution slow as the code runs for each record.
    Regards,
    Gaurav

  • Virtual Keyfigures

    All,
    For a client we want to use virtual keyfigures in a query. Now we have a value in the user exit, but we cannot get the value back into the query. Does anyone have an example of ABAP or some documentation on this subject?

    hi,
    try to put 'break-point' and do debug.
    and check with RSRT->click 'technical information', see 'virtual char/key figures', it should 'yes'.
    and try to generate the query with RSRT1.
    take a look
    Extractors
    and let's know your email, can send you some how to docs.
    hope this helps.

  • Output coming wrong when Query  executed

    Hi,
    I Extracted herarchial data TO  infocube 0FIGL_C01.
    I also installed Standard Query 0FIGL_VC1_Q0001.
    Now, all data is coming correctly upto infocube 0FIGL_C01 AND TO 0FIGL_VC01.
    (as you know ,the data flow to virtual cube ,once we  load it to standard info cube ).
    But when query is executed ,It is displaying wrong output .
    Can any one tell why ?
    Can you tell what internal execution take place.ie..whether any  fumnction module is executed when the standard query is
    executed .How the data  flow from infocube to virtual infocube and to query?
    (all objects i used are standard )
    Thanks,
    Naresh.

    Hi,
    It should give correct values, see if you are missing something while reconciling.
    Have a look at this FM:RS_BCT_FIGL_DATA_GET_VC1
    Go through this document:
    [Handling Balance Sheets and Profit and Loss Statements in SAP BW 3.0|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2f6d9790-0201-0010-dcbc-e099c7c049a2]
    Hope it helps...
    Regards,
    Ashish

  • Error while executing BCS Query

    Dear Friends,
    When i execute the BCS query, I am getting the following error.
    Error reading the data of infoprovider ZBCS_CV11.
    Unable to determine the data basis for virtual infocube ZBCS_CV11
    Request your help.
    Cheers
    Parmanand

    Hi Eugene,
    Yes I have restricted by a variable or a fixed value each char in the filter area, as suggested by you.
    Now i regenerated the virtual cube and assigned the new virtual cube to the query but still the system is throwing the same error as pasted below,
    "You have executed a query on virtual InfoCube ZBCS_CV13. The system is attempting to find exactly one data basis that references the RFC destination DBICLNT100 and that is assigned to the virtual InfoCube ZBCS_CV13. However, the system could not find this data basis".
    But why does it say that the system could not find this data basis??
    Request your help
    Regards
    Parmanand

  • 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

  • Virtual system Name

    Hello Friends,
    We are doing EHP4 upgrade in our production system. Our production system is configured as follows
    Example
    Physical System: ABC
    Virtual System:XYZ
    Now the scenior is as
    1.)When we log in to XYZ it goes to ABC . and when we log in to ABC it goes to ABC.
    2.)the Profile - START and INSTANCE profile .
    Its for the virtual system XYZ
    and the Physical system is a soft link to this virtual system.
    My query is
    1.) What different approch should we take during the upgrade.
    2.) I just started the upgrade and in the initial screen of INITIALIZATION we get the error that the
    UNABLE TO DETECT AN ABAP AND/OR AS JAVA INSTANCE OF THE SAP SYSTEM ON HOST ABC.
    Please Suggest
    Anthony

    Hi
    For the issue encountered in Initialization phase of upgrade:
    1. Ensure to download the latest EHPi tool from the service marketplace.
    There were recent corrections to instance detection.
    2. Make sure, the naming conventions for profiles are followed
    as explained in SAP notes
    96317 Host names during R/3 upgrade, tips & tricks (section 4)
    962955 - Use of virtual TCP/IP host names;
    23538 Problems due to inconsistent host name notation
    3. Cleanup the profile directory and only leave the actually
    used profiles in there. Move old profiles to a backup directory.
    4. Use the niping -v command to verify the hostname used by the
    system.
    5. Make sure old instances of EHPi are not running any more.
    Kill old EHPi processes as necessary.
    6. Also add two parameters to the instance profile:
    saplocalhost and saplocalhostfull
    Regards,
    Aidan
    Edited by: Aidan McKiernan on Nov 3, 2010 10:28 AM

  • How to use datafile as a filter in Web Interactive Reporting?

    <p>Hi,</p><p> </p><p>I've used a datafile in the Resultset filtering while using IRClient.</p><p>I try to do the same thing in the HTML version, but it probablycannot find the datafile though I imported the file to the samedirectory in Workspace as the BQY.</p><p> </p><p>Is it possible to do at all?</p><p> </p><p>I'm using Hyperion System 9 BI+ 9.2.0.2 version.</p><p> </p><p>With best regards,</p><p>mar</p>

    Hi Sandy,
    You can't use virtual characteristic in the query since virtual characteristics are popultaed at query run time and in the cube it is simply 'BLANK'. So if you use any filter (except 'blank') on this characteristic then you are not going to get any records feteched from the cube itself.
    Hope it helps,
    thanks
    soumya

  • Issue when using Navigation attributes for filtering in BEX

    Hello,
    We are encountering an issue when applying filter on Navigation attributes in BEx query built on top of a BW HANA Virtual Provider.
    The interface is as below :
    HANA Calculation View -> SAP BW 7.4 Virtual InfoCube -> Multiprovider -> BEx Query.
    We have directly mapped the base Infoobject from HANA View to BW Virtual Provider and using this in BEx query free characteristics. We also have used the navigational attribute of this Infoobject in our Report variable screen as well as an Auth relevant object.
    Eg if ZMATERIAL is the base infoobject and ZMATERIAL__ZXYZ navigational attribute is used in the report variable screen and as Authorization variable.
    This is causing the query to fail.
    The query also fails if I apply any filter values on any Navigational attribute with error message  :
    "Termination message sent ERROR DBMAN (305): Error reading the data of InfoProvider"
    Using the navigational attribute with authorization variable fails with below :
    "Termination message sent ERROR DBMAN (099): Invalid query;Failed to find attribute ZMATERIAL__ZXYZ [...]"
    Appreciate any inputs on this issue and how this can be fixed.
    Thanks,
    Tintu

    Hi Andrey,
    Thank you for your input.
    Based on the OSS note , it says to import BW7.4 SP7. We are already on BW7.4 SP7
    We get error "Termination message sent ERROR DBMAN (099): Invalid query;Failed to find attribute
    ZMATERIAL__ZXYZ"  whenever we try to apply filters on any of the navigational attribute.
    Thanks,
    Tintu

Maybe you are looking for

  • Getting error while editing content source of search service application

    Hi, when i edit the content source of SharePoint Search Service Application and click on OK Button then i get the following error. Error it gives : An item with the same key has already been added. and when i check it in ULS log it gives this. Applic

  • Time Machine doing full backup of external drive again

    I have a Time Capsule, as well as an external data drive connected to my Mac. The external drive (named Yoda) is NOT excluded from backups. Yoda has about 703 GB of data on it. I recently replaced the hard drive inside my time capsule. Consequently,

  • Report Table  Change in Template based on Prompt

    Hello All, I am working on a BI Publisher Report. We have a prompt : Product which has values A, B and C. If a user selects Product A, then we show in the template 4 columns. If a user selects Product B, then we show in the template the columns which

  • Do I Need to get rid of " SOS Mesaging upon Boot up" Or is a Scam , or just leave it a only?

    Steven Here,         I would love to get rid of SOS Messaging that appears on my HP2011x Desktop and using a HP Pavilion Monitor with Windows 7, I have tried everything. Is there a detailed process on how take it off. Is this a virus or is this harml

  • Printing Object List

    Dear All. I want to Print Object List in Order , Please specify is there Standard form of Shop Paper Available. I checked in Printing shop papers , its not , please pour some knowledge, Regards, N.Srinivas