Dynamic Logic without using Virtual Characteristics/Key Figures

Hi,
I am new to Bex so please do let me know if this can be done without using virtual keys or characteristics.
Logic should start processing from condition 1 to 4 sequencially.. If condition 2 is true, conditions 3 and 4 should not be processed.
<u>Conditions</u>
1. Column A if  Sales value is between  10 - 20
2. Column B if  Sales value is between  15 - 25
3. Column C if  Sales value is between  20 - 30
4. Column D if  Sales value is between  25 - 35
Scenerio 1 :
Sales value = 16
Based on this scenerio, the sales value should be displayed in column A only.

Guys,
I agree that this is a solvable problem if there are no overlapping conditions but my requirements do have them. I might have over simplify the problem or maybe there is a better way to do this. Here is the real scenario.
YTD = Year to Date Sales is the total dollar amount of sales from January 1, XXXX through the last day of the previous month.
LYTD = Last Year to Date Sales is the total dollar amount of sales from January 1, (XXXX – 1 year) through the last day of the previous month one year prior.
The order by which the logic will check each customer sites classification is as follows:
1. New Account
2. No Purchase
"A customer site is considered a <b>New Account:</b>
IF LYTD had zero sales activity
"A customer site is considered a <b> No Purchase</b>:
IF a customer site had zero sales activity in the previous 3 months
<b>AND</b> a customer site had sales activity within the report period (i.e YTD)
Jan 2007 >>>>>> $100
Feb 2007 >>>>>> $0
March 2007 >>>> $0
April 2007 >>>>> $0
Jan 2006 >>>>>> $0
Feb 2006 >>>>>> $0
March 2006 >>>> $0
April 2006 >>>>> $0
<u>Scenerio 1</u>
I run a report on the 15th of May 2007.
The first column has the <b>New Account</b> logic. Based on the 2006 sales data,  LYTD is $0 since there is no sales activity from Jan - April 2006. So the sales data will fall under the first column since the new account logic is true.
The second column has the the <b>No Purchase</b> logic. Based on the 2007 sales data, YTD is $100 since there was sales activity from Jan - April 2007. At the same time the previous 3 months (Feb - April 2007 ) has $0 sales. Based on this logic the sales data will fall under the second column since the no purchase logic is also true.
Now both the columns have data. This is the overlapping scenario I was referring to.
That is why I need to process the column logic sequentially. Once a condition is true , I need to break and move on to a new row.
Thanks
Message was edited by:
        Nigel K

Similar Messages

  • ABAP error in virtual characteristics & key-figures BADI

    Hi experts,
    I created a BADI for feeding a virtual characteristicand when I launch the query, this message appears:
    Subroutine call failed: The index specified had the value 6.288, which was either too large or too small
    An exception with the type CX_SY_DYN_CALL_ILLEGAL_FORM occurred, but was neither handled locally, nor declared in a RAISING
    Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    I have already read all the threads on the subject: I checked the OSS note 1248583. We already are on BI7, support package 20. I checked the OSS note and all the changes listed already exist on my system.
    Did any of you face this situation ?
    Thanks in advance.
    Etienne
    Here is the code of the BADI compute:
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
    Fields-symbols
      field-symbols:  type ANY.
    Variables
    DATA: w_ZPL15 TYPE /BIC/OIZPLCASH.
    DATA: w_ZCPTCASH TYPE /BIC/OIZCPTCASH.
    E
        assign component P_CHA_0G_CWWKOS of structure C_S_DATA
          to .
    GNC
        assign component P_CHA_TESTACONT__ZGNC of structure C_S_DATA
          to .
    EPL
        assign component P_CHA_ZPL of structure C_S_DATA
          to .
    CL3
        assign component P_CHA_ZCUSLV_03 of structure C_S_DATA
          to .
    CC
        assign component P_CHA_ZCPTCASH of structure C_S_DATA
          to .
    On récupère le compte Cashsolve
    *w_ZPL15 =  = w_ZCPTCASH.
    ENDMETHOD.

    Hi gentlemen,
    My problem still remains.
    Here is the definition of the different objects:
    In attributes
    P_CHA_ZCPTCASH Instance Attribute Private Type I
    In source code
    field-symbols: <l_ZCPTCASH> type ANY.
        assign component P_CHA_ZCPTCASH of structure C_S_DATA
          to <l_ZCPTCASH>.
    DATA:l_local TYPE I.
    l_local = '999999'.
    <l_ZCPTCASH> = l_local.
    D.sanders, I don't exacxtly understand what you suggest. Could me help me please ?
    Thanks
    Jacques

  • Using Non cumulative key figure in Real time cube

    Hi gurus,
    I have used non cumulative key figure in a real time cube and when i tried to enter some data using RSINPUT ,it is giving an error and the data is not getting saved.
    Can anyone please tell me how to use the Non cumulative key figure in the Real time cube .
    Thanks in advance
    Regards,
    Ravikanth

    Hi Ravi,
          Please make sure that when you use a non cumulative key figure iun your real time info cube, then choose a time reference characteristic for that key figure.
    Then, this time reference characteristic applies for all the non-cumulative values of the InfoCube and must be the u201Csmallestu201D of the time characteristics present in the InfoCube.
    For more detaisl, refer to the [http://help.sap.com/saphelp_nw70/helpdata/en/39/100c38e15711d4b2d90050da4c74dc/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/39/100c38e15711d4b2d90050da4c74dc/frameset.htm]
    Thanks & Regards,
    Balajee.

  • The use of restricted key figures in real time scenario

    Hi all,
    Please let me know the use of restricted key figures in real-time business scenarios....plz someone explain it with <b><u>example</u></b>...
    Also, can restricted keys be defined globally with same infoprovider...???????????
    Your response is thankfully acknowledged,
    thanks and regards,
    shalini.

    Hi,
    You can restrict the key figures of an InfoProvider for reuse by selecting one of more characteristics. The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures or key figures that are already restricted. Which means you can define and use them globally in reporting for a particular infoprovider.
    Example:
    You have to show the sales for different product typessay 1, 2, 3, 4, 5, 6, for a company code.
    now you can define a RKF with company code and sales keyfigure.
    In the report, in columns, you use this RKF in new selection and restrict it with product type in 6 diff columns.
    New Selection.
    Restrict it with RKF
    Restrict it with product type 1.
    similarly for others..
    Hope this helps you....

  • Apple wireless keyboard won't let me delete without using the fn key.

    My apple wireless keyboard won't let me delete in indesign without using the fn key. Is there a key command that I accidentally hit that causes that or something? I've never had this happen before. It isn't happening in any other program, just indesign cs4. Has anyone had this happen and how do I fix it?

    I figured it out. My keyboard shortcut set in indesign was corrupt. I went back to the default set and created a new set and the delete key started working again.

  • Problems in using a calculated key figure in the Clustering Model

    We have a problem in using a calculated key figure in the clustering model. With the limitation of the standard, in the Field tab, each calculated key figure cannot be selected from the selection screen directly. According to the SAP help, we have to use a dummy infoobject for a calculated key figure.
    Are there any other ways to use a calculated key figure without using a dummy infoojbect?

    Hi,
    Make use of aggragation property of the keyfigure, for summing the values of that KF.
    Regards,
    Rajkandula

  • How  use non cumulative key figure and noncumulative key figure screenshot

    how  use non cumulative key figure and noncumulative key figure screenshot

    Hello,
    Please see this docs for Non-Cumulative and Snapshot scenario,
    [How to Handle Inventory Management Scenarios in BW (NW2004)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
    [Non-Cumulative Values / Stock Handling|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8dfe6-fe1c-2a10-e8bd-c7acc921f366]
    Thanks
    Chandran

  • How can i reject incoming calls in lock screen , without using ON/OFF key ??? (in iOS 7.0.2)

    how can i reject incoming calls in lock screen , without using ON/OFF key ??? (in iOS 7.0.2)

    You can't. Either tap the Sleep/Wake button or just let the call to continue to ring.

  • Table fields used for basic key figures in report writer/report painter

    Does anyone know how I can find which <u>table field</u> is actually being used for SAP defined <b>basic key figures</b> in report writer report? For example, <b>HSL</b> is a basic key figure for income statement, library 0F1, report 0F-GUVV. It only shows data is coming from table GLFUNCT. How does the report writer program knows which fields to select? What is the logic behind the basic key figures?
    Any advice is appreciated!!
    Minami

    I have now resolved this issue.
    I had to manually update TablesT804B and T804F. 
    I've added entries to T804A in the past without the need to update T804B or T804F manually so it appears that the way these tables work together has changed following an upgrade or application of support packs.
    Regards
    Mel

  • Problem in using formula when key figure is commulative

    Hi all ,
    I am problem in generating the report when we use the  of cummulative key figure to the formula..
    consider the following senerio..
    Date      KF1 KF2 KF1(C) Kf2(C) Formula (KF1(C) - KF2(C)
    5.10.2005 1   2   1       2      -1 (wrong result)
    6.10.2005 3   4   4(1+3)  6      -1
    7.10.2005 5   6   9(4+5)  12     -1
    System is taking the actual KF1data is subtracted with KF2 data it not taking cummulative data, Actually my requirement i want to subract the cummulative data between two key figure (ie KF1(c)-KF2(c))
    My Required Output:
    Date      KF1 KF2 KF1(C) Kf2(C) Formula (KF1(C) - KF2(C)
    5.10.2005 1   2   1       2            -1 (Correct)
    6.10.2005 3   4   4(1+3)  6            -2 (4-6)
    7.10.2005 5   6   9(4+5)  12           -3 (9-12)
    pls let through the lights on the above issues.
    with Regards,
    Hari

    Hi Murali..
    Thanks a lot, now i got a proper output and working fine..
    what i did yesterday was i have creted a two key figure as a cummulative key figure ..
    and when i try to subtract two cummulative key figure system is subtracting with actual key figure and hence i got wrong result.
    Today i did same thing, only diffence is i made the third formula key figure as cummulative ..
    With regarsds,
    Hari

  • Characteristic used as a key figure

    Hi,
    I have a characteristic (TRANSACTIONID) with many attributes. The NARATIVE is one of its navigation attribute (is a characteristic char(30) ). For some transaction the NARATIVE may contain a description, but for others it can contain a TAX value.
    In my reports I have to use this characteristic as a Key figure and also to use currency translation to show this key figure in other currency.
    I tried with replacement path but it didn't work.
    Is it possible somehow?
    Thanks a lot in advance,
    Dragos

    Thanks a lot for your answers,
    I tried in Query Design but I cannot make this possible.
    I have added a new key figure in the cube and made a transformation between that characteristic and this key figure.

  • APO DP - use of standard key figure 9ADPDANT

    I am using APO DP V5.
    I want to use standard key figure 9ADPDANT as part of loading of data into APO via the BW data mart.
    I see that 9ADPDANT has data type FLTP (floating point). If I am loading data into this key figure from, for example, an external source file, in what format should I be holding this source data?
    Thanks,
    Bob Austin

    Shibu,
    If I am uploading 9APDANT from a source spreadsheet to a target InfoCube, can the source values have a simple decimal format, which will be auto converted to floating point format?
    Thanks,
    Bob.

  • Using formulas from Key Figure Schemas

    We'er using a scheme formula from a key figure scheme to calculate a key figure for CO-PA.
    What will happen if we change the formula in R/3?
    Will we need re-import all the CO-PA data again into BW?,
    or will the new formula be copied into BW?
    BR/
    Martin

    At least historical data won't be updated, but from the time at which change was made, new formula results will be loaded to bw

  • Error when Using a Calculated Key Figure

    Hi,
    I am having a problem using calculated key figures (CKF's). I am not getting any errors
    when i am creating them but when i pull the same into the report it is giving an error
    SUB FORMULA not available. Can you please advise how to fix this issue.
    Thanks
    Rashmi.

    Hello Rashmi,
    thius is a known issue. The procedure from note 1238872 can be useful:
    Download the BI 7.0 front-end add-on for SAP GUI 7.10, Support Package
    700 from the SAP Service Marketplace.
    Then save the calculated key figures in the InfoProvider (left-hand side
    in the Query Designer):
        o  Select the calculated key figures in the InfoProvider.
        o  Save the calculated key figures using the context menu
        o  or in the properties of the calculated key figures (right-hand
           side in the Query Designer).
        o  If other calculated key figures are used in a calculated key
           figure, save them as described above.
        o  For safety reasons, also save the query definition.
    If the calculated key figure was saved correctly, the system does not
    issue any error messages when you check the query definition (by
    choosing "Menu -> Query -> Check").
    Cheers,
    Ricardo

  • Dynamic SQL without using SQL

    I have a variable that contains a formula, eg.
    V_FORMULA varchar2(200) := '5 * 50 + 200';
    I want to assign the result of the formula into another variable, without using a DB call with SQL.
    eg.
    V_RESULT number;
    V_RESULT := DBMS_surprise_package(V_FORMULA);
    I want V_RESULT to be 450 after the statement is executed.
    Is that possible?? Is there such a package in PLSQL?
    I think the Forms NAME_IN package did something similar.

    970779 wrote:
    I guess I'll just have to rewrite it using execute immediate with bind variables to stop the shared pool getting filled up with thousands of these statements, since none of you have a non-db solution.Write your own if the expressions are simple enough...
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    l_formula varchar2(200) := '5 * 50 + 200';
      3    l_result  number := 0;
      4    tok       varchar2(100);
      5    op        varchar2(100);
      6    function get_token(str in out varchar2) return varchar2 is
      7    begin
      8      tok := trim(regexp_substr(str,'^[0-9]+|[^0-9]+'));
      9      str := trim(regexp_replace(str,'^([0-9]+|[^0-9]+)'));
    10      return tok;
    11    end;
    12  begin
    13    loop
    14      tok := get_token(l_formula);
    15      exit when tok is null;
    16      if tok in ('*','+','-','/') then
    17        op := tok;
    18      else
    19        case op when '*' then l_result := l_result * to_number(tok);
    20                when '+' then l_result := l_result + to_number(tok);
    21                when '-' then l_result := l_result - to_number(tok);
    22                when '/' then l_result := l_result / to_number(tok);
    23        else l_result := to_number(tok);
    24        end case;
    25      end if;
    26    end loop;
    27    dbms_output.put_line(l_result);
    28* end;
    SQL> /
    450
    PL/SQL procedure successfully completed.:D

Maybe you are looking for