Itemizations Calculation - CK13N with 0CO_PC_PCP_03 or 0CO_PC_PCP_30

Hi all,
I have a request to bring into BW the itemization calculation as it is in transaction CK13N.
I  have activated the datasources 0CO_PC_PCP_03 and 0CO_PC_PCP_30 but it is not working as I expected.
I would like to have the different costs per cost component view (Direct material, direct cost, TIC...) but with the 2 datasources I always have the total value only for the material and not for the rest of components...
I am new at CO extraction and I don´t know if these are not the suitable datasources for the data I am looking for or is there anything I am doing wrong?
Thanks in advance for any input.
Regards,
Elena

Hi,
We are in same request of loading data. Can you let us know how to bring all plant,material data to BI.
What is the selection condition that best suit these infopackages to get the data to BI.
Thanks,
Arun

Similar Messages

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • No entry found in table TTXD Calculation procedure with TAXCR

    Hello,
    Transaction FB01 F-02 and is sending me the following error, "No entry found in table TTXD Calculation procedure with TAXCR Message no. TAX_TXJCD106" requires me to turn jurisdiction code.
    What I can do to avoid this problem?
    Regards,

    Hello,
    You need to make sure the basic configuration is in place first, because I saw in my plain SAP environment, Costa Rica doesn't have a tax procedure assigned. I'm not familiar with Tax in CR as well. However, general rule of thumb for tax posting:
    1. SPRO general settings - Set countries - Define countries in my SAP Systems
    Assign the tax procedure TAXCR in country CR
    2. SPRO FI global settings (New) - tax on sales/purchases - Basic settings - assign country to calc procedure
    3. Define Tax Jurisdictions - TAXCR
    4. Then Specify structure for tax jurisidiction code for TAXCR (This is the config content for table TTXD)
    Regards,
    WH

  • Calculated view with input parameters

    Hello there.
    I've created a calculated view with input parameters, which I am going to call  it  'VIEW_A'.
    This view has been working just fine.
    But now I have to create another calculated view and import the last one(VIEW_A) in a projection.
    But I got a error when trying to see the data content. 
    It says :
    Error: SAP DBTech JDBC: [2048]: column store error: search table error:  [6968] Evaluator: syntax error in expression string;expected TK_ID,parsing '"DT_DOC_MES_ANO" >= [here]and "DT_DOC_MES_ANO" <='
    At the 'Problems' panel it says the all the input parameters are unmapped.
    What Am I doing wrong?  Sorry but I am kind new at SAP world.

    http://scn.sap.com/message/15489475Hello Tiago,
    Could you please let me know if you're able to resolve your issue, I'm getting the similar error when I'm passing alpha numeric values as parameter via my SP.
    Thanks for your help in advance!
    Regards,
    Sathish

  • Custom Calculation terminated with Essbase error 1200685 in POV

    I'm trying to improve the efficiency of an ASO calculation script by limiting the scope of the calculation using a filter within the POV.
    When I do this, I get an error that says MDX error: A symmetric set expression is expected. Custom Calculation terminated with Essbase error 1200685 in POV.
    Using a similar filter in an mdx query I can see that I should be updating approximately 5000 data points. That query returns data in less than a minute. If I remove the filter, the calc will run over 16 hours and not complete (I've killed it at that point). [FI - Begining Balance Calc] is a calculated member, which is dependent on other calculations. I'm thinking that the calculation is churning for all of the potential member combinations regardless of sparseness of the data.
    Error 1200685 is not documented in the Essbase Error Message guide. Any ideas on this anyone?
    calc_1.txt contains:
    [FI - Beginning Balance Stored] := [FI - Beginning Balance Calc];
    execute calculation on database REVFCTA.REVFCTA with
    local script_file "E:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\app\REVFCTA\REVFCTA\calc_1.txt"
    POV "FILTER(CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN({[Y.2011]},{[SEG.S0001]}),
    {[FORECAST]}),
    [ASSET TYPE].Levels(0).members),
    [FUND_INVESTOR].levels(0).members),
    [OZ_FUND].levels(0).members),
    {[PER.2]}), NOT ISEMPTY([FI - Beginning Balance]))"
    SourceRegion "({[FI - Beginning Balance Calc]})";
    This is the mdx query:
    SELECT
    {[FI - Beginning Balance Calc]} ON COLUMNS,
    FILTER(CROSSJOIN(CROSSJOIN([FUND_INVESTOR].Levels(0).members,
    [ASSET TYPE].LEVELS(0).MEMBERS),
    OZ_FUND.[OZ_FUND].LEVELS(0).MEMBERS), NOT ISEMPTY([FI - Beginning Balance]))
    ON ROWS
    FROM [REVFCTA.REVFCTA]
    WHERE ([Y.2011],[PER.2],[SEG.S0001],[FORECAST])

    I don't think it's so much that it no longer applies in current versions as that people don't understand that it only ever applied if you had multiple conditions testing more than one dense member.
    I still think that...
    FIX("Dense1", "Sparse1")
         Do something to Dense1
    ENDFIX
    FIX"Dense2", "Sparse1")
         Do something to Dense2
    ENDFIX
    ...is often going to be slower than...
    FIX("Sparse1")
         IF "Dense1"
              Do something to Dense1
         IF "Dense2"
              Do something to Dense2
    ENDFIX
    ...unless the subset of blocks is small enough that caching (Essbase or OS) results in the "Sparse1" blocks not having to be read from / written back to disk twice.

  • How to calculated the with out quntity strecter cost estimate

    dera sir &mams
    how to calculated the with out quntity strecter cost estimate.
    thankes regards

    Dear Battikala,
    Please post your questions in an understandable way without any spelling mistakes.
    Regards
    Madhusekhar Gupta

  • Error while creating a BO Universe (using IDT) on top of SAP HANA Calculation View with Input Parameters

    Hi All..
          We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
    in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
    SELECT *
    FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
    'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
    'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
    'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
    'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
    While validating the above code we are getting an error.
    I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
    Thanks in advance.

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • AP Tax Calculation issue with SINGLE TAX vs TAX GROUP

    Hi Gurus,
    i need your help on below, please advise!!
    i have to calculate ap VAT tax on AP invoice,
    (Rounding = nearest, precession=2, tax calcualtion= Include tax)
    if i calculate 5% is the tax rate, then the tax amount is 0.47cents,this is in case of single tax calculation.
    here my requirement was i need calculate 2 Taxes(TAX A AND TAX B (Rates are 5 AND 5%)
    EG:
    Invoce Base amount = 10 dollars
    in case of single tax = 5/105 * 10 = 0.4761 cents(this is 48cents in apps with rouning nearest and precession 2)
    tax mode = Include tax
    In case of tax group = Tax A and Tax B = 5 + 5 = 10%, when i calculate this in apps its showing 45cents and 45 cents as tax A and B
    why this tax caluclation is different with single tax and tax group.
    tax code actual amount tax amount remaining amount
    single tax 10 0.4761 10 - 0.48cents = 9.52 cents
    tax group 10 45+45=90 cents 9.10 cents
    Please Help !!!
    Thanks,
    Satish

    Hi Vineeth,
    This is Kathy from BSI Support.  I wanted to make sure that you understood that the TF80 Like Reciprocal flag was made available in TF90 for testing purposes only.  This was meant as a tool for customers to be able to compare their TF90 results to their TF80 output, to insure a successful upgrade.  This funcitonality, however, was never intended to be utilized going forward.  There have been significant changes implemented in BSI TaxFactory 9.0 regarding multi-state withholding (also known as reciprocity).  There is information available on our website that explains these changes.  If you log onto our website, please look under the "Whats New" section for an explanation of reciprocal functionality in BSI TaxFactoryu2122 9.0
    If you have specific scenarios that you need help with, please contact us and we will be happy to assist you.
    Regards,
    BSI Support - Kathy

  • Calculation of With Holding Tax amount

    Hi,
    We are using the WHT which has the Minimum amount limit as 700 at the Paying document,
    The issue is
    there is a  Paying document which clears 4 MM Invoices (Documents are coming from MIRO)
    2 MM Invoice with less than 700 amount and other 2 MM Invoice with more than 700 amount, 
    the  system is calculating the WHT for only 2 documents which are having amount less that 700 while the payment document is generated. 
    Can any one please suggest whether the  WHT should be calculated for only 2 which have amount more than 700
    OR  it will get deducted for all the 4 MM as the Total of the paying document is more that 700.
    Note : The Accumlation type in the WHT is No accumlation.
    Looking for a positive riposte.
    Thanks
    Manish

    It has to calculate for 2 docs more than 700 if you select no accumulation & "Minimum Check" Min base amount check at doc invoice level

  • Calculation of with holding tax

    The requirement goes like this.
    We have to first remove the with holding tax data from the vendor master.
    And created 1 KR(amount : 1000) & 1 RE(amount : 2000) document type.Also we posted both the above invoice documents in one Z1 clearing document.
    Then add the with holding tax information in vendor master.
    Then we executed the report RFWT0020 for that vendor and the document number.Its updating WITH_ITEM table with only the KR total(1000) under WT_QSSHH field.Its not considering RE total.
    I debugged the program RFWT0020 and found a function module FI_WT_GET_P_WITH_ITEM which performs the with holding tax calculation.When i checked the function module,its fetching from global memory.
    Is there any user exit or BADI for this.We are using 4.7 version.
    Please suggest how can i update the correct with holding tax amount in WITH_ITEM table.

    Hi,
    i´ve used this badi for MM (incoming invoices):
    MRM_WT_SPLIT_UPDATE
    Best regards.

  • Calculation view with input parameters

    Hello there.
    I got a calculation with that expects 2 input parameters.
    But now I have to created another calculation view that import this calculation view.
    How can I pass these 2 parameters using sqlscript?
      My script so far
      cv1 = CE_CALC_VIEW("_SYS_BIC"."calc_1",["CR"],'"COMPANY"=''7000''');
    I must pass 2 parameters in this  "_SYS_BIC"."calc_1" table

    Hi Tiago,
    as I am aware, you cannot pass input parameters to CE function.
    You can try using regular SQL syntax:
    SELECT "CR" FROM "_SYS_BIC"."calc_1"
    WHERE "COMPANY" = 7000
    (PLACEHOLDER."$$PARAM_1$$" => VALUE_1,
    PLACEHOLDER."$$PARAM_2$$" => VALUE_2)

  • Calculated Column with simple math for price comparisons

    Hi all,
    I want to calculate a price difference from today's price versus the price of 5 days ago.
    Please help me with a best practice for that. Is the use of calculated column in a calculation view the right approach? How can the price field of 5 days ago be addressed? Ideally 5 should be a constant which should be able to be changed to 6 or 7 for further simulations.
    Thanks for any help.
    Guenther

    Hi Patter ,
    For the above requirement we don't need a calculation view to be created. Check the code below, I am re creating the scenario with an INNER JOIN.
      CREATE COLUMN TABLE "METALS_ONE_GEN"."TEST_TAB" (ID INTEGER,DATES DATE,PRICE INTEGER);
      INSERT INTO "METALS_ONE_GEN"."TEST_TAB" VALUES ( 1 , '2014-03-10',50);
        INSERT INTO "METALS_ONE_GEN"."TEST_TAB" VALUES ( 1 , '2014-03-15',50);
        INSERT INTO "METALS_ONE_GEN"."TEST_TAB" VALUES ( 1 , '2014-03-25',100);
        INSERT INTO "METALS_ONE_GEN"."TEST_TAB" VALUES ( 1 , '2014-03-20',80);
        INSERT INTO "METALS_ONE_GEN"."TEST_TAB" VALUES ( 1 , '2014-03-30',75);
        INSERT INTO "METALS_ONE_GEN"."TEST_TAB" VALUES ( 1 , '2014-04-04',150);
        INSERT INTO "METALS_ONE_GEN"."TEST_TAB" VALUES ( 1 , '2014-04-9',450);
    select A.DATES,
           A.PRICE,
          ( B.PRICE - A.PRICE )
           from "METALS_ONE_GEN"."TEST_TAB" A
           INNER JOIN "METALS_ONE_GEN"."TEST_TAB" B
           ON
        B.DATES = ADD_DAYS(A."DATES",5) ;
    Looks like, the JOIN operation is more optimized than the Calculation view in this case . Depends on the data , JOIN type may very .
    Sreehari
    Message was edited by: Sreehari V Pillai

  • Question about calculation example with Query Designer

    Hi guys,
    I have to calculate within columns and rows and I am not familiar with the settings in Query Designer that could be done to achieve the results.
    For example:
    Payments----
    Delay -
    Weighted Delay
    1000USD--10 days--
    10000
    2000USD--20 days--
    40000
    3000USD--xxx--
    50000 (this is the sum row)
    The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    Has anybody an idea how the sum row can be calculated separately?
    Thank you for suggestions!
    Edited by: saplaz on Jul 13, 2010 8:47 AM
    Edited by: saplaz on Jul 13, 2010 9:08 AM

    Hi,
    Assuming you have the Payments Infoobject in the rows and WD Infoobject in the columns; Delay as a formula object.
    > Payments----
    Delay -
    Weighted Delay
    > 1000USD--10 days--
    10000
    > 2000USD--20 days--
    40000
    > 3000USD--xxx--
    50000 (this is the sum row)
    > The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    You may try this workaround of using
    NODIM( SUMCT(WEIGH_DELAY) / SUMCT(PAYMENTS) )
    on a formula variable. (In this case, the assumption is you have not static type-restricted the rows/cols) If you find any hinderances in the default approach, you may check this out as a formula & insert this at the cell editor level.
    If not, use a simple formula variable; here define the replacement path as 0(N) for your Payments. (N being the # of digits)
    Use a simple calculation:
    SUMGT(WD)/FV
    But you may not get an result o/p in the last row, as the values are not linked (sans relation with Payments). as it will return a X for the delay in the Result row.
    Pls. let me know know if this works or some sample o/p if the initial assumption was wrong.
    Thanks,
    Arun Bala

  • Strange double calculation result with JDK 1.4.2

    Hi,
    I've written a small benchmark to test the power of a Sharp Zaurus PDA. Wanting to compare it with my workstation, I ran it on the PC with JDK1.4.2 Beta and was really surprised to discover that the double calculation of Pi gave a non-correct result: Pi = 3.1413934230804443!!!
    I've tried to isolate the bug without success at the moment. It only happens when run from the Zjb program in JDK1.4.2, either from the command line or from Eclipse.
    The result is correct when run with JDK1.4.1, JDK1.4.1_01, JDK1.1.8 that are also setup on the PC. I extracted the faulty loop and executed the sniplet, but the result is OK. I added the previous lines (running the Ackerman function to test recursivity and stack management): still OK, from Eclipse and command line.
    I think the problem must be a configuration one on my computer: a 2xPII 350, Win2K SP3. Perhaps the 1.4.2 JVM is using an old library... I can't imagine that the Beta JVM would have such problem.
    Or there is a bug in the program which make the stack or the FPU registers break, but I can't find where: all other platforms I tested gave correct results.
    Could someone with a JDK1.4.2 installation test my program and post what were the results for the Pi calculation?
    The 10KB source is available on http://www.alterna.tv/zjb/Zjb.java
    Thanks.

    Yes, it was the Pentium, at the time when 100MHz was top speed...
    My CPUs are supposed not to suffer from that old disease.
    But if it were the case, new JVM can't drop software patches like this. Today, Intel started again the release of the new P4 at 3GHz, after adding a software patch for the hardware defect they had detected...
    I post the code for my small program here as my Web site is frequently down this week:
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Color;
    import java.awt.Dialog;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Frame;
    import java.awt.Graphics;
    import java.awt.GridLayout;
    import java.awt.Label;
    import java.awt.List;
    import java.awt.Panel;
    import java.awt.TextField;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.math.BigInteger;
    * Zjb: Zaurus Java Bechmark
    * @author GenePi
    class Zjb
         extends Frame
         static Zjb _mainWindow;
          * Number of benchmark runs.
         private final TextField _runs;
          * Results list
         private final List _results;
          * Wait, program is thinking...
         private final Label _wait;
          * Start button
         private final Button _start;
          * Benchmark running
         private volatile boolean _running = false;
          * Layout the main window.
         Zjb()
              super("Zaurus java benchmark 1.0");
              setLayout(new BorderLayout());
              // Input fields
              Panel top = new Panel(new GridLayout(1, 0));
              top.add(new Label("Number of runs"));
              _runs = new TextField("1");
              top.add(_runs);
              add(top, BorderLayout.NORTH);
              // Results list
              _results = new List();
              add(_results, BorderLayout.CENTER);
              // Start button
              final Panel bottom = new Panel(new FlowLayout(FlowLayout.RIGHT));
              _wait = new Label();
              bottom.add(_wait);
              _start = new Button("Start");
              _start.addActionListener(new ActionListener()
                   public void actionPerformed(final ActionEvent evt)
                        if (!_running)
                             // Clear previous results and start benchmark.
                             _results.clear();
                             _start.setLabel("Stop");
                             _wait.setText("Running...          ");
                             bottom.validate();
                             _running = true;
                        else
                             _start.setLabel("Start");
                             _wait.setText("");
                             _running = false;
              bottom.add(_start);
              // Quit button
              final Button quit = new Button("Quit");
              quit.addActionListener(new ActionListener()
                   public void actionPerformed(final ActionEvent evt)
                        System.exit(0);
              bottom.add(quit);
              add(bottom, BorderLayout.SOUTH);
              // Exit when main window closes
              addWindowListener(new WindowAdapter()
                   public void windowClosing(final WindowEvent evt)
                        System.exit(0);
              Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
              setSize(dim);
              validate();
          * The benchmarks
          * @param runs Number of runs
         private static void runBenchmarks(final int runs)
              long start;
              long end;
              long totalStart;
              long totalEnd;
              // Integer arithmetic
              start = System.currentTimeMillis();
              totalStart = start;
              int resultInt = 0;
              for (int i = 0; i < runs; i++)
                   resultInt = ackerman(3, 9);
                   // resultInt = ackerman(3, 7);
              end = System.currentTimeMillis();
              _mainWindow._results.add("Integer arithmetic: " + ((end - start) / 1000.0) + " s [Ack(3,9)=" + resultInt + "]");
              if (!_mainWindow._running)
                   return;
              // Float and double
              start = System.currentTimeMillis();
              double resultDouble = 0.0;
              for (int i = 0; i < runs; i++)
                   resultDouble = 0.0;
                   for (int j = 1; j < 1000000; j++)
                        resultDouble += 1.0 / ((double) j * (double) j);
                   System.out.println("resultDouble=" + resultDouble);
                   resultDouble = Math.sqrt(resultDouble * 6.0);
              end = System.currentTimeMillis();
              _mainWindow._results.add("Double arithmetic: " + ((end - start) / 1000.0) + " s [Pi=" + resultDouble + "]");
              if (!_mainWindow._running)
                   return;
              // Big operations
              start = System.currentTimeMillis();
              BigInteger resultBig = new BigInteger("1");
              for (int i = 0; i < runs; i++)
                   resultBig = fact(3000);
              end = System.currentTimeMillis();
              _mainWindow._results.add("Infinite arithmetic: " + ((end - start) / 1000.0) + " s [3000!=" + resultBig.toString().substring(1, 20) + "...]");
              if (!_mainWindow._running)
                   return;
              // Strings
              start = System.currentTimeMillis();
              String resultString = null;
              for (int i = 0; i < runs; i++)
                   final String alphabet = " qwertyuioplkjhgfdsazxcvbnm0789456123./*";
                   StringBuffer buf = new StringBuffer();
                   for (int j = 0; j < 100000; j++)
                        int pos = j % alphabet.length();
                        buf.append(alphabet.substring(pos, pos + 1));
                   resultString = buf.toString();
              end = System.currentTimeMillis();
              _mainWindow._results.add("Strings: " + ((end - start) / 1000.0) + " s [" + resultString.substring(1, 20) + "...]");
              if (!_mainWindow._running)
                   return;
              // Drawing
              start = System.currentTimeMillis();
              for (int i = 0; i < runs; i++)
                   final int size = 200;
                   Dialog dialog = new Dialog(_mainWindow, "Drawing...", true);
                   dialog.add(new TestPanel(dialog));
                   dialog.setSize(size, size);
                   dialog.show();
              end = System.currentTimeMillis();
              _mainWindow._results.add("Drawing: " + ((end - start) / 1000.0) + " s");
              if (!_mainWindow._running)
                   return;
              // File copy
              start = System.currentTimeMillis();
              String resultIO = "OK";
              loopIO:
              for (int i = 0; i < runs; i++)
                   final String tempName = "/tmp/Zjb.tmp";
                   try
                        BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(tempName));
                        for (int j = 0; j < 1000000; j++)
                             out.write((byte) j);
                        out.close();
                        BufferedInputStream in = new BufferedInputStream(new FileInputStream(tempName));
                        for (int j = 0; j < 1000000; j++)
                             int r = in.read();
                             if ((byte) r != (byte) j)
                                  resultIO = "Failed";
                                  System.err.println("Content mismatch at " + j);
                                  break loopIO;
                        in.close();
                        new File(tempName).delete();
                   catch(IOException ioe)
                        resultIO = "Failed";
                        System.err.println(ioe);
                        break loopIO;
              end = System.currentTimeMillis();
              _mainWindow._results.add("Files I/O: " + ((end - start) / 1000.0) + " s [1MB written/read/deleted: " + resultIO + "]");
              totalEnd = end;
              _mainWindow._results.add("");
              _mainWindow._results.add("Total: " + ((totalEnd - totalStart) / 1000.0) + " s");
          * Utility functions: Ackerman function
          * @param m
          * @param n
         private static int ackerman(final int m, final int n)
              if (m == 0)
                   return (n + 1);
              else if (n == 0)
                   return (ackerman(m - 1, 1));
              else
                   return ackerman(m - 1, ackerman(m, (n - 1)));
          * Factorial of big numbers.
          * @param n
          * @return
         private static BigInteger fact(final int n)
              final BigInteger one = new BigInteger("1");
              BigInteger num = new BigInteger("1");
              BigInteger fact = new BigInteger("1");
              for (int i = 2; i <= n; i++)
                   num = num.add(one);
                   fact = fact.multiply(num);
              return fact;
          * Benchmark entry point.
          * @param args Command line arguments
         public static void main(String[] args)
              _mainWindow = new Zjb();
              _mainWindow.show();
              synchronized (Zjb.class)
                   while (true)
                        try
                             Zjb.class.wait(500L);
                        catch (InterruptedException ie)
                             // Wake
                        if (_mainWindow._running)
                             try
                                  runBenchmarks(Integer.parseInt(_mainWindow._runs.getText()));
                             catch (NumberFormatException nfe)
                                  _mainWindow._runs.setText("1");
                                  runBenchmarks(1);
                             _mainWindow._running = false;
                             _mainWindow._start.setLabel("Start");
                             _mainWindow._wait.setText("");
    class TestPanel
         extends Panel
          * The dialog containing the panel.
         private final Dialog _dialog;
         TestPanel(final Dialog dialog)
              _dialog = dialog;
         public void paint(final Graphics g)
              Dimension dim = getSize();
              g.setColor(Color.white);
              g.fillRect(0, 0, dim.width, dim.height);
              for (int i = 0; i < 1000; i++)
                   Color color = new Color((int) (Math.random() * Integer.MAX_VALUE));
                   int x = (int) (Math.random() * dim.width);
                   int y = (int) (Math.random() * dim.height);
                   int width = (int) (Math.random() * dim.width);
                   int height = (int) (Math.random() * dim.height);
                   g.setColor(color);
                   g.fillRect(x, y, width, height);
              g.setColor(Color.white);
              g.fillRect(0, 0, dim.width, dim.height);
              for (int i = 0; i < 1000; i++)
                   Color color = new Color((int) (Math.random() * Integer.MAX_VALUE));
                   int x = (int) (Math.random() * dim.width);
                   int y = (int) (Math.random() * dim.height);
                   int width = (int) (Math.random() * dim.width);
                   int height = (int) (Math.random() * dim.height);
                   g.setColor(color);
                   g.fillOval(x, y, width, height);
              // Hide dialog when finished
              _dialog.hide();
    }

  • MDX Calculated Member With Multiple Conditions

    I need to create a calculated member in my cube that spans multiple dimensions. A current calculated member looks like this:
    [Employee Hours Category].[Utilization Category].[NON-PTO], [Measures].[Employee Hours]
    This calculated member returns all the hours an employee worked that are not PTO.
    I need to select employee hours but with multiple conditions:
    - [DIM BILL STATUS][Bill Status] equals 0
    - [Employee Hours Time Category].[Time Category] equals "Client Facing"
    - [DIM PROJECT].[Client] isn't like "Olson"
    I know this is probably pretty easy, but I'm horrible with MDX!
    Thank you!!
    A. M. Robinson

    Thank you...
    Your answer looks good but I was actually able to figure out most of it, but still looking how to incorporate a FILTER into the MDX. I would like to FILTER like this:
     FILTER ([DIM Project].[Client].[Client].Members , 
                 NOT InStr([DIM Project].[Client].CurrentMember.MEMBER_NAME, "Olson")
    Heres the MDX I have so far that is working fine:
    ([Employee Hours Time Category].[Time Category].&[Client Facing],
       [DIM BILL STATUS].[Bill Status ID].&[1], [Measures].[Employee Hours])
    Do you just wrap the whole MDX in the filter, and if so, how would that be formatted?
    A. M. Robinson

Maybe you are looking for

  • Gopro 2.7k export quicktime animation codec custom 22gb mov file?

    Adobe support told me to export using quicktime <animation codec <custom 2704 x 1536 res for my gopro 2.7k and it turned into a 22.5 gb mov file. (not even 2 minutes long!!!!) What do I do next? I mean I cant upload that to youtube. (well I could) I'

  • Purchase offsetting account

    My Client belongs to Spain, so for external reporting there have to show Purcahse Account and Purchase offsetting Accounts. Now my question is , I exectived T.Code MC$4 to get the PO, GR, IR value and i am comparing the MC$4 Value with GL account by

  • ORA-01678  parameter log_file_name_convert

    Hi, in my init.ora file I have : LOG_FILE_NAME_CONVERT=("s:\ORADATA\DB1","u:\ORADATA\DB2","u:\ORADATA\DB1","u:\ORADATA\DB2") And I receive this error : ORA-01678: parameter log_file_name_convert must be two strings, a pattern and a replacement Do you

  • PHP/MySQL Date display format

    Can someone help me out here. I am trying to format my date. My MySQL is a "datetime". How ever I would like to display only the month, day, year like so "Jan,15,2007" Here is my current code, what should I add to make it do what I want. <?php echo $

  • Elements 7 does not recognize photos on my camera

    I just downloaded the trial version of Elements and did the update. When I try to load KDC files from my Kodak Z980 camera Elements tells me that there is nothing on my camera. I'm having trouble finding any software that recognizes my photos from th