SAP BW Pre-calculation Server Not Working as Expected

Hi All,
It has already been 2 months since we have installed our pre-calculation servers. We have been bumping to issue with our server showing as "At Capacity" after a few runs of workbooks. Then we need to restart the service in order to resume the pre-calculation. Something really dumb is that any workbooks that failed during that time will not get pre-calculated again.
This is really bugging me as every morning when I know, there is some broadcasting, then I need to start monitoring the queue, to see if the symptoms of only a few workbooks (usually 10 workbooks) being able to calculate before I need to restart the service.
Please help as I am really in a dire situation.
David Yee

dk00111 wrote:
Ah, I forgot to cast the correctAnswer as a double. Thanks, it works now! (disregard the username change)I sense you're still misunderstanding, so I decided to follow up.
The issue isn't that you weren't casting your expression to a double before assigning to correctAnswer. That cast is implicit as an integer is automatically promoted to a double, since it is a widening conversion (see here).
What you had before was like this:
double d = 1 / 5;
System.out.println(d); //0.0In this case, we have an integer divided by an integer, and so the result is (naturally!) an integer. Since 1 / 5 is truncated to 0, that's the result of the expression.
"Casting to a double" would be this:
d = (double)(1 / 5);
System.out.println(d); //0.0But that's no different! The cast is pointless, as it happens anyway when you assign the result of the expression to d. 1 / 5 is still occurring with integer operands.
Instead, based on the fact that it worked, I'm guessing what you did was this:
d = (double)1 / 5;
System.out.println(d); //0.2 That's not casting the result of (1 / 5), it's casting 1 to a double, and then dividing by 5. It's equivalent to this:
d = ( (double) 1 ) / 5;Since now one of the operands is a double, the result of the expression is a double, so you get the expected 0.2.
You could get the same result by doing this in your code:
double correctAnswer = 1.0 / x;As the literal 1.0 is obviously not an integer, but a double, so x is promoted to a double and the division occurs on two doubles instead.

Similar Messages

  • Pre-Cal Program not working as expected

    Ok, my Pre-Cal teacher asked us the following question, and said that we can make a computer program to solve it if we want. So the question is:
    If your calculator reciprocal button (1/x) breaks, you can use a sequence of 4 trig and arc trig function butons to replace the reciprocal button. What is that sequence?
    So I made the following program, to test all of the possibilities (in an admittedly very inefficient way), and print out the correct one.
    public class Test
         public static void main (String[]args)
              int num = 2;
              int cnt = 0;
              double correctAnswer = 1/num;
              double x;
              int temp;
              String[] funcs = new String[4];
              boolean isSolved = false;
              while(!isSolved)
                   x = num;
                   for(int y=3; y>=0; y--)
                        temp = (int)(Math.random()*6+1);
                        if(temp==1)
                             x=Math.sin(x);
                             funcs[y]="sin";
                        else if(temp==2)
                             x=Math.cos(x);
                             funcs[y]="sin";
                        else if(temp==3)
                             x=Math.tan(x);
                             funcs[y]="tan";
                        else if(temp==4)
                             x=Math.asin(x);
                             funcs[y]="arcsin";
                        else if(temp==5)
                             x=Math.acos(x);
                             funcs[y]="arccos";
                        else if(temp==6)
                             x=Math.atan(x);
                             funcs[y]="arctan";
                   if(correctAnswer-.0025<=x && correctAnswer+.0025>=x)
                             isSolved =true;
                   if(++cnt %1000==0)
                        System.out.println(cnt);
              System.out.println(funcs[0] + " "+funcs[1] + " "+funcs[2] + " "+funcs[3]);     
    }A few side notes:
    int num can be anything, I just set it to 2 for simplification purposes.
    int cnt is just used so I can see how many times the while loop has been running.
    At this point, I don't want the answer to the question as much as I want the program to function properly.
    It's a basic program, yet I can't figure out why it doesn't work. Even if the while loop runs 13,000,000 times it still doesn't get the correct answer, any ideas?

    dk00111 wrote:
    Ah, I forgot to cast the correctAnswer as a double. Thanks, it works now! (disregard the username change)I sense you're still misunderstanding, so I decided to follow up.
    The issue isn't that you weren't casting your expression to a double before assigning to correctAnswer. That cast is implicit as an integer is automatically promoted to a double, since it is a widening conversion (see here).
    What you had before was like this:
    double d = 1 / 5;
    System.out.println(d); //0.0In this case, we have an integer divided by an integer, and so the result is (naturally!) an integer. Since 1 / 5 is truncated to 0, that's the result of the expression.
    "Casting to a double" would be this:
    d = (double)(1 / 5);
    System.out.println(d); //0.0But that's no different! The cast is pointless, as it happens anyway when you assign the result of the expression to d. 1 / 5 is still occurring with integer operands.
    Instead, based on the fact that it worked, I'm guessing what you did was this:
    d = (double)1 / 5;
    System.out.println(d); //0.2 That's not casting the result of (1 / 5), it's casting 1 to a double, and then dividing by 5. It's equivalent to this:
    d = ( (double) 1 ) / 5;Since now one of the operands is a double, the result of the expression is a double, so you get the expected 0.2.
    You could get the same result by doing this in your code:
    double correctAnswer = 1.0 / x;As the literal 1.0 is obviously not an integer, but a double, so x is promoted to a double and the division occurs on two doubles instead.

  • BW Pre Calculation server

    We are planning to install the BW pre calculation server in our landscape. As per the OSS note 744127 and the installation documentation, the pre calculation server should be installed on any of the client(Running windows 2000 and higher). We have BW systems running only on Unix environment. Could you please suggest:
    1) What is the best way to install the BW pre calculation server where SAP and database instance is running on AIX Unix system.
    2)If the installation is possible only on windows client, then do we need to keep the client machine running all the time? What happens when the client is unavailable.
    Thanks in advance!!

    Yes, Pre-calculation server can be run only on Windows Environment. In a producttion scenario you will not run it on a User PC, but on a Windows server which will be available most of the times.
    See the attached document from Prakash for more information on this topic.
    https://service.sap.com/~sapidb/012003146900000085752006E/HowtoInformationBroadcasting.pdf

  • Pre-Calculation Server

    Dear All,
    We are planning to install Pre-Calculation server in our Project , so please suggest us the following.
    1. Is Pre-Calculation server useful with the BI 702 & Business Objects in the Land scape.
    2. If we need to install the Pre-Calculation server , will we need any licence.
    3. What are the system requirments to Install the Pre-Calculation server.
    4. How it is useful if we are doing the Broadcasting from Busin
    Please suggest us.
    Thanks & Regards,
    Kiran Manyam

    Hi,
    Please check the below link for details on PreCalculation Server. It could be a good starting point.
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/70ef26c5-079a-2b10-f397-892d781e8bcb
    Also check the relevant notes mentioned in the bottom of the page
    1236773   BI 7.X Precalculation - General Information & Limitations
    1461398   BW 7.X(7.20) Precalculation - General Info. & Limitations
    Regards,
    Vasanth

  • Incorrect workbook results using pre-calculation server

    Hi,
    I encounter problem running BW 3.5 workbook (Excel 2007) using pre-calculation server.  The results show incomplete data, mostly of the time missing characteristic values.  However, it works for one of the report.
    Appreciate sharing of experiences. Thanks.
    Regards,
    Chen

    Hi,
    Thanks for the suggestions.  I have tested with new workbooks inserted with new queries, and those are running OK manually. The workbook does not exceed 65k rows or 255 columns.
    I discovered one of the workbook showing correct results except for calculation using function %A, so I suspect there is missing setting in Excel 2007 that has caused the macro not working properly.
    Anything to share ?
    Regards,
    Chen

  • Information Broadcaster Pre-Calculation Server

    We just upgraded to version 3.5. I have a need to broadcast workbooks to several users. I setup a test precaluation server on my PC. I am not sure exactly what the function of these server. Are the workbooks actualy stored on this "server" or the BW Server. Does anyone know what functions the pre caluation server does. Also is there any suggestion of where folks locate this in their production landscape. It seem to only run on a windows environment. Any insight would be greatly appreciated.
    Thanks,
    Steve

    Steve,
    To calculate an excel workbook, BEx analyzer is launched and reports are run.  This is done on the pre-calculation server.  The pre-calculation service interacts with the desktop, launches analyser, runs the reports, saves the excel workbook on the server which is then broadcasted.
    For a production environment, recommend running this on either a dedicated windows based PC or a shared server.  It should be up at all times otherwise the boradcast will fail.
    Aneesh

  • Refresh Workbook on Pre-Calculation Server .

    Hi,
    I am using Pre-Calculation server to broadcast the workbook  through Email.
    But the workbook is not getting Automatically refresh on Pre-Calculation server.
    I had also done the setting for 'Refresh Workbook On Open' in workbook setting.
    Please help me to solve this issue.
    Thanks in Advance.
    Vaibhav

    Hi,
    Please check following notes.
    1027807 Workbook not refreshed properly, during precalculation
    1074272 Error in the precalculation server (read long text first)
    Regards,
    Amit

  • Pre calculation server installation

    Hi all,
    we installed pre calculation server on client machine which is having OS WINXP.but there is a problem in starting the sap precal server instance in the local sysytem.can anybody help in this.
    regards,
    sekhar

    i resolved myself

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • Some Calculations are not working in Discoverer 10g after upgrade from 4.1

    Hi Gurus,
    We are recently upgraded Oracle Discovere 10g from 4.1, some calculations are not working in Discoverer 10g. I appreciate if you could fix below calculation(s) in 10g.
    CASE WHEN TRUNC("Expenditure Item Month") = '31-JAN2007' THEN SUM(Wtd Qty A) WHEN TRUNC("Expenditure Item Month") = '28-FEB-2007' THEN SUM(Wtd Qty A) WHEN TRUNC("Expenditure Item Month") = '31-MAR-2007' THEN SUM(Wtd Qty A) END
    Thanks & Regards
    Vikram

    Sabra,
    Not sure exactly what this might be... there could be an issue there.
    Please make sure that you review the upgrade.log. Are there any errors / warnings?
    Also, you might wanna peek the Metalink Note:262623.1 - Master Note for OracleAS Portal Upgrade Issues, where you'll find some nice things where to start looking at.
    Later you may wanna open a Service Request into the Oracle Support.
    I hope it helps...
    Cheers,
    Pedro.

  • Force encryption on SQL Server not working?

    Hello Everyone,
    I'm running SQL Server 2008 64-bit. I've installed a self-signed cert on the box and set  "Force Encryption"  and restarted SQL server. 
    I setup a client machine to trust the authority of the cert installed on the server. When I connect to that SQL server from SSMS from a client machine and select the "encrypt connection" option in the client Connection properties, SSMS correctly complains
    that the cert on the server does not match the computer name I asked to log into . This is because, although the cert is trusted, the dns name dos not match the CN in the cert <- Perfect, exactly what I am expecting.
    When I connect to the same SQL server from the same client but  UNCHECK "encrypt connection" on the client, I'm able to login. Considering I've checked the "Force Encryption" on the server, the server should have rejected the connection. Why not?
    Ameer Deen

    Hi all,
    We are implementing a Merge Synchronization solution which involves three SQL Servers located on three Azure locations worldwide and one on-premises location. We need to secure communications between all servers. We are evaluating the encryption of all server
    communications through SSL:
    http://technet.microsoft.com/en-us/library/ms191192.aspx
    When we configure one server (let’s call it server A) to accept only encrypted connections (with Force Encryption=Yes) we still can connect from other server (let’s call it server B) that do not have the certificate installed. We would expect the server
    B to fail in the attempt of connect as server A should only accept encrypted communications and those should need the certificated to encrypt/decrypt everything (commands and data).
    We have also review the following forum post that is very similar to this one:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bde679d9-ff83-4fa7-b402-42e336a97106/force-encryption-on-sql-server-not-working
    In all cases the Microsoft answer is:
    “When the
    Force Encryption option for the Database Engine is set to YES, all communications between client and server is encrypted no matter whether the “Encrypt
    connection” option (such as from SSMS) is checked or not. You can check it using the following DMV statement”
    When we run the provided DMV statement to check if encryption is enabled:
    -- To check whether connections are encrypted between server and clients
    SELECT encrypt_option
    FROM sys.dm_exec_connections
    We get “TRUE”. So theoretically encryption is enabled.
    Then:
    Why can we run SQL statements against server A from server B (with SSMS) without any certificate?
    Are we wrong when we expect server A to refuse any client that do not have the right certificate?
    How can server B, without any certificate, decrypt the data encrypted by server A?
    Our intention is to encrypt all server in the same way so all of them will accept only encrypted communications. We are assuming that the Merge Agent will be able to communicate with the Publisher and the Subscriber through this encrypted environment. May
    anyone please confirm ti?
    Thanks for your help.
    Best Regards
    Benjamin Moles

  • Yahoo outgoing mail server not working.

    My yahoo outgoing server not working on iPod touch or iPad it says apple.smtp.yahoo failed...incoming is ok so far...this outgoing mail failure just started about a couple of days back....anyone else having this problem?????what should I do?rediffmail account does not get set up either so just unable to use any of my emails. :(

    Hello, and welcome to the Discussions.
    I get 100% success pinging mail.adelphia.net, and if at your home venue where Adelphia is your ISP, then I think no separate Authentication is required. Port 25 would be the proper port. However, if you are not at home, and the provider of internet connection limits you to using only authenticated SMTP then you would not able to use mail.adelphia.net as the Outgoing Server.
    Are you at the venue where Adelphia is the ISP?
    Ernie

  • TS2621 why my outgoing mail server not working after ios 6 upgraded

    why my outgoing mail server not working after ios 6 upgraded

    Ask your carrier to send you the settings over wifi and then install them that way.
    I'm on giffgaff and I used the giffgaff app from the store to sort this out.
    Overall though I must say Apple has let itself down on this as why isn't something written in the ios script that keeps the original settings??
    Very Poor indeed and I held off using Apple products for years for this very reason!!

  • TCP Window sizing not working as expected for Windows server 2008 R2 SP1

    Hi ,
    TCP window size is not working as expected. It is varying . Aplied the hotfix suggested by Microsoft and set the multipliccation factor as 1.The window size is not getting auto tuned based on the client machine. The data transfer rate is getting degraded.
    Please help.
    Thanks,
    Pro1962

    Hi,
    I think window auto-tuning is enabled.
    You can disable it by running the following commend.
    netsh interface tcp set global autotuninglevel=disabled
    Hope this helps.

  • Subtraction of two key figures normalized to result not working as expected

    Hello SAP Community!
    I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
    In order to explain the problem I am facing please analyze below text:
    1) Let's assume I have below data:
    LOAD MONTH  PLANT    MATERIAL HORIZON MONTH     FORECAST UNITS
    200805         PLANT-A  MAT-1            200805         510,235.00
    200805         PLANT-B  MAT-1           200805          74,240.00
    200805         PLANT-A  MAT-1           200806         438,721.00
    200805         PLANT-B  MAT-1           200806          74,240.00
    200805         PLANT-A  MAT-1           200807         356,981.00
    200805         PLANT-B  MAT-1           200807          74,240.00
    200806         PLANT-A  MAT-1           200805               0.00
    200806         PLANT-B  MAT-1           200805               0.00
    200806         PLANT-A  MAT-1           200806         510,235.00
    200806         PLANT-B  MAT-1           200806          74,240.00
    200806         PLANT-A  MAT-1           200807         438,721.00
    200806         PLANT-B  MAT-1           200807          74,240.00
    2) Then, assume I have a comparison report, restricted by load month for two months May and June 2008 (filter restricted by two month variables) with FORECAST units spread accross columns for whole horizon (two months also in this case).
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Comparison Units (June 2008) 510,235.00  438,721.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Comparison Units (June 2008)  74,240.00   74,240.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    3) Now, let's suppose we want to know the proportions (%) of Base vs Comparison units, so
    we normalize forecats to results an we get the below report:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    4) Finally, let's suppose we want to know the deltas (differences) of Base vs Comparison
    units, for both number of units and %. The report now look as below:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  1.77%       2.74%
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %  -1.77%      -2.74%
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    5) PROBLEM:
    In my report, the "Delta base vs. comp. units %" is not working as expected and
    calculates number of units just as "Delta base vs. comp. units" does instead of calculating the % difference.
    So my report looks as follows:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  71,514.00  81,740.00 <<<WRONG!!
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %       0.00        0.00
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    The formulas are:
    a) Delta base vs. comp. units %
      Delta base vs. comp. units % = Comparison Units % - Base Units %
    b) Delta base vs. comp. units
      Delta base vs. comp. units = Comparison Units - Base Units
    The KFs
    - Comparison Units %
    - Base Units %
    Are RESTRICTED key figures (restricted to Base and comparison month variables) which
    are setup as:
    1) Calculate Result As:  Summation of Rounded Values
    2) Calculate Single Value as: Normalization of result
    3) Calculate Along the Rows
    The KFs
    - Delta base vs. comp. units %
    - Delta base vs. comp. units
    are FORMULAS setup to:
    1) Calculate Result As:  Nothing defined
    2) Calculate Single Value as: Nothing defined
    3) Calculate Along the Rows: user default direction (grayed out)
    Thanks for the time taken to read in detail all of this. Long text but necessary to understand what the problem is.
    Any help is highly appreciated.
    Thank you.
    Mario

    Hi,
    The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
    I hope this will solve your issue.
    Regards,
    S P.

Maybe you are looking for

  • Csv/excel not showing vertical .  it is displaying horizontally plus

    hi i have this code that displays html, pdf or csv/excel download. htmll report and pdf is ok but the csv/excel download displays/ works but it shows accross instead of down. on my html to csv it is not dispalying vertically /down and it shows the ht

  • BPM scenario:single sender message type and multiple receiver message types

    Hi, I am doing a scenario in which i have a single file which may contain different record types say type A,B,C. I want to separate all records of type A, all records of type B, also all records of type C into different files. so i will have 3 files

  • File- rfc- soap- rfc

    Hi I have a scenario  File to rfc it has to update the rfc table & the same file request has to call soap after updating the rfc table & the response from soap has to update rfc again.... I have designed bpm 1)Receive step asyc to receive the file 2)

  • Photos from computer have lines running through them on iphone???

    I have had no trouble getting my photos of my cute little baby girl from my computer to my iphone. However it is useless b/c there are weird lines running through all the photos making it impossible to view the photos. I thought this would be a great

  • New P1006 won't feed paper

    My new P1006 laser printer won't feed the paper in....after a paper jam.  I have followed the procedure in the on-line manual.  Any ideas out there?