Bex : Get KF result in a formula variable

Hi,
I'd like to get the global result of a Key Figure into a formula variable but i see no way to do it...
This is to use this variable in an exception so as to color the individual results in comparison with the result caught in the variable...
if u have any idea.
Thanks.

Hi,
Try using SUMCT, SUMGT,SUMRT which are there in data functions in query designer.
You need to first create formula and then use SUMCT,SUMGT, SUMRT.
Hope it helps.
Praveen Tati

Similar Messages

  • Issue in displaying Overall Result of a formula variable

    Hi All,
    I have a fields as Years of Sevice in my report. This is defined as char. I am bringing this in the report by creating a calculated key figure and then using a formula variable that is defined as the replacement path of the Years of SErvice.
    Now when i execute the report , I dont see the Overall Result. I checked the porperties as Summation.
    The overall result is displayed as X for all the columna
    Report has
    Rows - Leaving Reason - defined as Char
    Columns - Years of Service  >3
                    Years of Service 3-6
                    Years of Service 6-10
    Can someone shed some light where i am going wrong?
    Regards,
    Harika.

    You have said years of service is declared as a characteristic. Is it brought into the report as an formula variable through Calculated key figure ???

  • How to get the results for given Bind Variable

    Hi
    Can any one help me how to get the result rows from the View Object after executing the view object query by setting bind variable?
    snippet as follows
    viewObject.setNamedWherClauseParams("name","hei");
    viewObject.executeQuery();
    How to get the results from viewObject is my question..?
    Thanks in advance

    Should be something like
    while (vo.hasNext()){
    Row r = vo.next();
    r.getAttribute....
    You might want to read the "most commonly used methods" appendix in the ADF Developer Guide.

  • Need to get select result into a shell variable.

    Hi,
    I want to get below command output into a OS variable. Which will be used later in the shell script. Can you please advice how to go about it?
    VAR v_tool_execution_id NUMBER;
    EXEC :v_tool_execution_id := trcanlzr.trca$p.get_tool_execution_id;
    SELECT TO_CHAR(:v_tool_execution_id) tool_execution_id FROM DUAL;
    I can't do following
    VAR1=`sqlplus -s $unpwd <<EOF
    VAR v_tool_execution_id NUMBER;
    EXEC :v_tool_execution_id := trcanlzr.trca$p.get_tool_execution_id;
    SELECT TO_CHAR(:v_tool_execution_id) tool_execution_id FROM DUAL;
    EOF`
    Since tool execution is specific to session and exiting will not server my purpose since i need to run another command which generates a file name using tool execution id.
    Thanks for your time.
    Regards,
    Nagendra Chillale

    Actually the idea is the same. Instead of getting the variable into a shell script, call the shell script which use the variable from sqlplus. I attempted to include the line to call a shell script but had a mistake :P
    The last line should be
    SQL> host /path/to/second/part.sh &exec_idAnother way is to spool the variable into a file, then read the file into a variable in your shell script. You need to use head / tail command to extract the desired row, because Oracle adds blank lines, headers, etc in its spool output
    In your SQL script
    SQL> spool tool_execution_id.txt
    SQL> SELECT TO_CHAR(:v_tool_execution_id) tool_execution_id into :vtemp FROM DUAL;
    SQL> spool offIn your shell script (the desired line appeared in the second last line in my case)
    tool_execution_id=`tail -2 tool_execution_id.txt|head -1`
    echo $tool_execution_idEdited by: thtsang on Mar 30, 2010 11:43 AM

  • Get value of formula variable during query runtime into a text variable

    Hi all,
    I wanna get the value of the formula variables during the query runtime into a text variable.
    My scenario is like this: First I defined a formula variable Z_DATE_3 which is processing by replacement. It will get the day of a characteristcs(Startdate).
    Then I defined a text variable and in the function module related to this text variable, I used the parameter I_T_VAR_RANGE which can store the value of formula variable during the query runtime.So I can read the value from this table in my function module.
    But I have a issue, when I run the query which used the defined text variable, it seems that it doesn't call the corresponding function module. Because I set a breadpoint in hte code and it never reach this breakpoint.
    If I removed the parameter I_T_VAR_RANGE , it can enter the function module.
    So could you please give some advice?
    Is my solution correct or not?
    And what's wrong with the parameter I_T_VAR_RANGE? Did I use it correctly?
    And My code is:
    DATA:  l_s_range_v TYPE rrrangeexit,
                 l_day type sy-datum.
    if i_step <> 2.
    raise no_processing.
    endif.
      READ TABLE i_t_var_range INTO l_s_range_v
         WITH KEY  vnam = 'Z_DATE_3'.
    if sy-subrc = 0.
         l_day = l_s_range_v-low.
    endif.
    Thanks in advance!
    Best regards
    Fanchest

    Hi, Fanchest,
    I'm having just the same issue.  Did you find a solution?
    I wrote a short routine in CMOD to derive the value of a formula variable to a text variable, but it's not working (I don't get any value).  Can you share your solution?
    Thanks in advance,
    LL

  • Customer Exit to derive formula variable to text variable (BW 3.5)

    Hi gurus,
    I have created a formula variable in a BEX report (BW 3.5) that is fill by the user during runtime.  This formula variable is used in conditions and other key figures in the query.
    What I need now is to use the value given by the user in this formula variable and expose it in a text variable.
    The variable properties are as follows:
    VARIABLE 1: 'MONTOANA'
    Type of variable: formula
    Processing by: user entry
    Variable entry is: mandatory
    Ready for input?  YES
    Dimension ID: Price  (currency: Argentine pesos / Unit: per mil)
    VARIABLE 2: 'TXMONANA'
    Type of variable: text
    Processing by: customer exit
    Variable entry is: mandatory
    Ready for input?  NO
    Dimension ID: Price  (currency: Argentine pesos / Unit: per mil)
    I pretend tu use the value of 'MONTOANA' in the variable 'TXMONANA', so I wrote the following code in transaction CMOD (enhancment EXIT_SAPLRRS0_001, include ZXRSRU01):
    CASE i_vnam.
    WHEN `TXMONANA`.
        IF i_step = 2. "after the popup
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'MONTOANA'.
            CLEAR l_s_range.
            l_s_range-opt = 'EQ'.
            l_s_range-sign = 'I'.
            l_s_range-low = loc_var_range-low.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    ENDCASE.
    I'm not getting any result for the text variable.  Could you kindly help me?
    Thanks to all in advance!!!
    LL

    We found the solution with members of our ABAP team.  In the end the issue was due to the type of the field.  The field loc_var_range-low is CHAR 60 so I had to extract the first characters on the right to get the value I wanted to deliver into the text variable.
    Thanks anyway for your help.  Regards, Leticia

  • BEx Get Data Issue

    Hi everyone,
    The basic issue is workbook is not retrieving the data back from the cube.we want to know how to check like why it is not retrieving data .
    Is their any settings for this in back end, how to check and any procedure to find out?
    There are two formulas here BEx Get Data and BEx Set Data.
    BEx Set Data is used to push the data into the cube from workbook.
    Bex Get Data is for getting the data from cube into workbook.
    so when users enter some values ,it is going into the real time cube in the backend but next time when user cums into the workbook he is not finding the last inputted data.it is supposed to go to the cube and then *** to workbook again because next time when user enters the workbook he should see last inputted data.when he enters some values in cube and saving it ,it is going into the cube but it is not coming back to workbook again.
    Can anyone throw some light on how should I proceesd and find where the issue is. I want to know the Flow from Workbook using BEx Get Data , how does this formula interact with BI REal Time Cube.
    Regards,
    Ak

    Hi,
       I'm not sure what do you mean by these.
    Is their any settings for this in back end, how to check and any procedure to find out?
    There are two formulas here BEx Get Data and BEx Set Data.
    BEx Set Data is used to push the data into the cube from workbook.
    Bex Get Data is for getting the data from cube into workbook.
    Are you trying to write data back into cube through input ready Query?  Are you using Web or BEx analyzer?
    could you please provide more details on your requirements..
    Balaji

  • Aggregrating Results of Formula Variable

    Hello All,
      I have created a key figure using a formula variable to subtract 2 dates in BEx 3.5 front end.  The formula works great as long as I have the 2 dates in my drilldown...if I  don't, I get an x as the result.  I want to show the average of this formula on a monthly basis without showing the details of the dates.
    Any Ideas??
    Thanks!!
    Tina.

    Hi Brock,
    Its possible, but I haven't tried as requirements didn't imply.
    More simpler idea is why don't you use a flat file loading through the IP to Info providers?
    Or even more better option is why don't you adapt to Virtual Info providers?
    For your suggested custom table using custom transaction, we can surely make it. Its possible in SE93. Try this transaction code. It must definitely help.
    Thanks,
    Arun Bala G
    Edited by: Arun Bala G on Jan 11, 2010 2:16 PM

  • BEx Analyzer: Formula Variable with Replacement path change Month with Day

    Hi experts I'm facing this issue in BEx Analyzer.
    I need to have some dates in format DD/MM/YYYY in Index Structure, in order to do this I've created a formula variable with replacement path referenced to 0CALDAY characteristic.
    The formula works but it behaves in a strange way:
    if the day is higher than 12 the displaied result is correct (DD/MM/YYYY)
    if the day is lower or equal 12 the displaied result is wrong (MM/DD/YYYY)
    I'm on BW 7.01 SP6 and BEx Analyzer 7.10 SP12, excel 2007.
    anybody has faced this issue before?
    any help will be appreciated
    Daniele Cortopassi

    Hi Daniele,
    This seems pretty strange. Pls. redo validation with the dump data, as being a flat struture BEx does not apply any logic changes. May be it might have been MM/DD/YYYY format as in workbooks. Else you may change the property of 0calday display as "Text". Business Explorer > Display > KeyMaster Data/Texts > Texts (Plese check this option). If you are using some text table you may maintain the same using BI0/TCALDAY (Similar to BI0/TCALMONTH2). Guess it should be an excel based issue; if not you may try the same in WAD/Report designer to verify the nature of the issue. If you don't face these inconsistencies in WAD/RD then you may change excel formatting options. Lastly, please let us know if the infoobject has some predefined settings in RSA1 > Infoobject > (BEx) Properites.
    Thanks,
    Arun Bala

  • Formula Variable in Bex , Urgent

    Hi Experts,
                        I have created a formula variable on 0Material with replacement path as processing type. I am using this formula variable in a formula that i have created. The formula works fine.
    However , when i create another formula variable on 0Prod_hier ( which has a navigational technical name 0MATERIAL__0PROD_HIER ) with replacement path as processing type, The formula which i have created doesnt work.
    Ex:
    1) ('MAT_FORM' == 100010001)'NET_SALES'10  , This works fine
    2) ('HIER_FORM' == 10000010000001)'NET_SALES'10    . This fails.
    Iam using the same formula process but with different formula variables , i cant understand why the formula is failing
    I have checked the data, in the cube and the infoprovider (0Material has 0PROD_HIER data) , but i am stuck as to why the system is not recognizing the prod hier values,
    Kindly help me on this,

    Hi,
    Please read the following:
    BEx Query Designer: Creating formula variables
    You have loaded data into your InfoProvider. To be able to use sign reversal in reporting, you have to define a formula variable in the query definition:
           1.      You are in the Query Designer. Under Key Figures, use the context menu to choose New Formula. The Formula Builder opens.
           2.      Under Formula Variables, choose New Variable from the context menu. The variables wizard appears.
           3.      Enter a name and a short text for the variable. Choose Replacement Path as the processing type.
           4.      Choose your hierarchy basic characteristic.
           5.      Choose Hierarchy Attribute as the replacement. The attribute Sign Reversal is automatically displayed.
           6.      Save your formula variable. When defining the formula variable, you get the factor 1 or –1, with which you can multiply the required key figure.
    Regards,
    Subha
    If you find it useful, pleae grant me points

  • Zero Suppression Not working in Bex Query with Formula Variable

    Hi Friends,
    I have a peculiar issue here. We upgraded from 3.5 to 7.0 recently. Some of our Bex queries have been behaving abnormally after this. In these queeries,
    we have some key figures which use formula variables (ready for input and mandatory) in 3.5. User can enter either 1 or 0. The actual key figure is multiplied to the formula variable so, the entire column gets the actual key figure value if the user enters a value '1' and the gets the value 0 if the user enters '0' in the formula variables. Zero suppression is activated on the rows and columns and this report. This technique was used successfully to show/hide a column.
    After upgrade, the same query works but, the zero suppression is not working. When the user enters a value of '0' in these formula variables, all the entries in the column for the key figure are displayed as 0 but the column is still displayed. It is like the zero suppression setting is not active at all.
    I created one of those queries in Bex 7.0 to see if that works but, the issue still exits. Have anyone come across this kind of a scenario? Please get back to me if anyone has any idea on this situation.
    Thanks and Regards
    Subray Hegde

    Which SP level are you at in BI 7? There is an OSS Note that would need to be applied if you're on lower than SP10. That note is:
    [OSS Note 964756 - Formula variables with replacement from difference in BI 7.0|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=964756]

  • Drop-Down-Box (F4 Input Help) for formula variable in BEx Analyzer (BI 7.0)

    Hi Gurus,
    is it possible to get a drop down box for a ready for input formula variable in the BEx Analyzer (not BEx Web!)?
    We want to let the users choose scaling factors 1, 1000 or 1000000 (implemented via this formula variable). In the settings of the formula variable you can only choose a default value but there seems to be no option to provide all three factors in a drop down box like the ones for characteristic value variables.
    We could prevent other entries in the variable pop up via customer exit (i_step 3) but the business is wishing an F4 input help like the ones for characteristic values.
    Thanks for your help,
    Marco

    Hi Macro,
    Its not possible to get drop down box for a ready for input formula variable. Because it is possible only for characterstic value variables but not formula variable.u donnot get any drop down box like ready for input for formula variable.
    Regards,
    Premalatha.C

  • Formula variables from BEx to WebI

    Hi,
       I have a formula variable(manual input) in a Bex Report, based on this variable only the result output is displayed using conditions.But when i create a webi report on this , the formula variable is coming as a default prompt, but the condition doesnt work.
    Thanks,
    Praveen

    Hi ,
        Can anyone please give me suggestions on this
    Thanks
    Praveen Kuamr

  • SAP Bex: How to calculate formula variable, without dragging corresponding date in the row

    Hi Experts,
    In my requirement, we should not do any changes in the BW system. I need to create a Bex query on the existing Info-set, KPI need to be calculated from the date objects.
    e.g
    Delivery date - Order date - which has been done with the formula variable in the bex, I'm getting exact value. the  problem is if I'm not dragging the Delivery date or order date in the Bex ROW, its not populating value. I'm expecting consolidated value for a month.
    It has an impact in the BOBJ system. since i'm not getting consolidated value, the number of data which is coming in BOBJ system is very huge. Hence doing calculating in the bobj will affect performance.
    Regards
    Vijaykumar

    Hi,
    i think your calculating the value form Delivery date - Order date.
    if you drag the Delivery date - Order date object to rows it will give values.
    Thanks,
    Phani.

  • What is a formula variable in bex

    hi friends,
      can anybody tell me about what is a formula variable. how can we use formula variable. give me one simple example. thankk u.
    thanks,
    sree

    Hi..
    Here is the sap link which will gives u the best about variable...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0a/cd6e3a30aac013e10000000a114084/frameset.htm.
    Here is some examples  how u can use formula variable...
    1) If u want to multiply the key figure in the data target(DSo or CUBE) with an attribute of masterdata which is used in the Data target.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc.
    2)caliculating the aging.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    3) the difference in the dates at the query level
    Re: Calculate no.years/months/days in Bex formula
    Regards....KP
    Edited by: kundan.sap on Jul 3, 2010 5:41 PM

Maybe you are looking for

  • K8N Neo3 Issues (At the end of my rope)

    The parts I have are as follows: 1x K8N Neo3 MOBO 1x Sapphire x1600 Radeon Video Card 512MB PCIE 1x AMD64 Sempron +3000 (Socket 754) 1x WD 100GB HDD 1x WD 250GB HDD 2x DRAM Master PC3200 DDR400 Memory Modules 1x DWL D-Link 11.0Mbps Wireless USB Adapt

  • White text in an accessible PDF

    When I use the Zoom–Reflow option in Acrobat on an accessible (508 compliant) PDF, all of the white text disappears into the white background since reflowing hides everything tagged as an artifact (which includes the colored backgrounds that the whit

  • Why aren't my adobe webfonts showing correctly in Chrome version 37?

    I am running Windows 7 and using Chrome version 37. My muse sites with adobe webfonts are not displaying the nice fonts. They are jagged and looks crappy. On the other hand, Internet Explorer is displaying them just fine. web sites in trouble are www

  • Whats the meaning of   Synchronous and Asynchronous Retrieval ?

    whats the meaning of Synchronous and Asynchronous Retrieval ? can you provide any example ?

  • Problems installing OEL version 6 in Virtual Box

    I am able to install only in text mode although I tried to install with desktop - X-windows and all. I tried couple of times I get the same result - i.e., text mode.