KE30 Report differs when run at two different times

Hello,
I have an issue where a KE30 report is executed for a closed period occuring more than 6 months ago.  When the report was run at the beginning of November, it had particular values for figures.  When the report was run at the beginning of November, for the same exact month, some of the values are the same while others are different.
I drilled into the line items and sorted by Created On date to see if any documents were created from November to December, but unfortunately no documents were created. 
I'm not sure where else to look, is there a historical view that I can drill into then do a comparison to determine where the difference is?  Any help would be greatly appreciated.

Hi Johnnie
I assume the important bit is the bit within the second fix:
"New Forecast" = Consumption * "Bias %";
The way you have your fix statement set up it is looking at level 0 members in your Appliances and Batteries dimensions (I'm reading your post as if they are separate dimensions). I assume your issue is that the one piece of data is at level 0 interesections of appliances and batteries but the other piece is not possibly at level 0 of one dimension and level 1 or higher of the other, Bias% being the one at the higher level?
If that is the case then I think you need to look at a way of getting from the level 0 member to the correct intersection point(s).
Have you had a look through the technical reference at functions like @PARENTVAL, @ANCESTVAL or the multidimensional options for the same @MDPARENTVAL and @MDANCESTVAL, it sounds like your formula needs to be something along the following lines
"New Forecast" = Consumption * @PARENTVAL(Appliances, "Bias%");
What the above would do differently to your original code would be to get the Bias % value from the parent of the current level 0 member of the appliance dimension being calculated. While this might not be exactly what your requirement is hopefully it will steer you in the right direction.
Hope this helps
Stuart

Similar Messages

  • Reports fail when run against a different data source

    Hello,
    We have a VB.NET 2008 WinForms application running on Microsoft .NET 3.5. We are using Crystal Reports 2008 runtime, service pack 3 -- using the CrystalDecisions.Windows.Forms.CrystalReportViewer in the app to view reports. In the GAC on all our client computers, we have versions 12.0.1100.0 and 12.0.2000.0 of CrystalDecisions.CrystalReports.Engine, CrystalDecisions.Shared, and CrystalDecisions.Windows.Forms.
    Please refer to another one of our posted forum issues, u201CCritical issue since upgrading from CR9 to CR2008u201D, as these issues seem to be related:
    Critical issue since upgrading from CR9 to CR2008
    We were concerned with report display slow down, and we seemed to have solved this by using the Oracle Server driver (instead of either Microsoft's or Oracle's OLEDB driver).  But now we must find a resolution to another piece of the puzzle, which is:  why does a report break if one data source is embedded in the .rpt file is different than the one you are trying to run the report against, in the .NET Viewer?
    Problem:
    If you have a production database name (e.g. "ProdDB") embedded in your .rpt file that you built your report from and try to run that report against a development database (e.g. "DevDB") (OR VICE VERSA -- it is the switch that is the important concept here), the report fails with a list of messages such as this:
        Failed to retrieve data from the database
        Details:  [Database vendor code: 6550 ]
    This only seems to happen if the source of the report data (i.e. the underlying query) is an Oracle stored procedure or a Crystal Reports SQL Command -- the reports run fine against all data sources if the source is a table or a view).  In trying different things to troubleshoot this, including adding a ReportDocument.VerifyDatabase() call after setting the connection information, the Crystal Reports viewer will spit out other nonsensical errers regarding being unable to find certain fields (e.g. "The field name is not known), or not able to find the table (even though the source data should be coming from an Oracle stored procedure, not a table).
    When the reports are run in the Crystal Reports Designer, they run fine no matter what database is being used; but the problem only happens while being run in the .NET viewer.  It's almost as if something internally isn't getting fully "set" to the new data source, or something -- we're really grasping at straws here.
    For the sake of completeness of information, here is how we're setting the connection information
            '-- Set database connection info for the main report
            For Each oConnectionInfo In oCrystalReport.DataSourceConnections
                oConnectionInfo.SetConnection(gsDBDataSource, "", gsDBUserID, gsDBPassword)
            Next oConnectionInfo
            '-- Set database connection info for each subreport
            For Each oSubreport In oCrystalReport.Subreports
                For Each oConnectionInfo In oSubreport.DataSourceConnections
                    oConnectionInfo.SetConnection(gsDBDataSource, "", gsDBUserID, gsDBPassword)
                Next oConnectionInfo
            Next oSubreport
    ... but in troubleshooting, we've even tried an "overkill" approach and added this code as well:
            '-- Set database connection info for each table in the main report
            For Each oTable In oCrystalReport.Database.Tables
                With oTable.LogOnInfo.ConnectionInfo
                    .ServerName = gsDBDataSource
                    .UserID = gsDBUserID
                    .Password = gsDBPassword
                    For Each oPair In .LogonProperties
                        If UCase(CStr(oPair.Name)) = "DATA SOURCE" Then
                            oPair.Value = gsDBDataSource
                            Exit For
                        End If
                    Next oPair
                End With
                oTable.ApplyLogOnInfo(oTable.LogOnInfo)
            Next oTable
            '-- Set database connection info for each table in each subreport
            For Each oSubreport In oCrystalReport.Subreports
                For Each oTable In oSubreport.Database.Tables
                    With oTable.LogOnInfo.ConnectionInfo
                        .ServerName = gsDBDataSource
                        .UserID = gsDBUserID
                        .Password = gsDBPassword
                        For Each oPair In .LogonProperties
                            If UCase(CStr(oPair.Name)) = "DATA SOURCE" Then
                                oPair.Value = gsDBDataSource
                                Exit For
                            End If
                        Next oPair
                    End With
                    oTable.ApplyLogOnInfo(oTable.LogOnInfo)
                Next oTable
            Next oSubreport
    ... alas, it makes no difference.  If we run the report against a database that is different than the one specified with "Set Datasource Location" in Crystal, it fails with nonsense errors 

    Thanks for the reply, Ludek.  We have made some breakthroughs, uncovered some Crystal bugs and workarounds, and we're probably 90% there I hope.
    For your first point, unfortunately the information on the Oracle 6550 error was generic, and not much help in our case.  And for your second point, the errors didn't have anything to do with subreports at that time -- the error would manifest itself even in a simple, one-level report.
    However, your third point (pointing us to KB 1553921) helped move us forward quite a bit more.  For the benefit of all, here is a link to that KB article:
    Link: [KB 1553921|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]
    We downloaded the tool referenced there, and pointed it at a couple of our reports.  The bottom line is that the code it generated uses a completely new area of the Crystal Reports .NET API which we had not used before -- in the CrystalDecisions.ReportAppServer namespace.  Using code based on what that RasConnectionInfo tool generated, we were able gain greater visibility into some of the objects in the API and to uncover what I think qualifies as a genuine bug in Crystal Reports.
    The CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable class exposes a property called QualifiedName, something that isn't exposed by the more commonly-used CrystalDecisions.CrystalReports.Engine.Table class.  When changing the data source with our old code referenced above (CrystalDecisions.Shared.ConnectionInfo.SetConnection), I saw that Crystal would actually change the Table.QualifiedName from something like "SCHEMAOWNER.PACKAGENAME.PROCNAME" to just "PROCNAME" (essentially stripping off the schema and package name).  Bad, Crystal...  VERY BAD!  IMHO, Crystal potentially deserves to be swatted on the a** with the proverbial rolled-up newspaper.
    I believe this explains why we were also able to generate errors indicating that field names or tables were not found -- because Crystal had gone and changed the QualifiedName to remove some key info identifying the database object!  So, knowing this and using the code generated by the RasConnectionInfo tool, we were able to work around this bug with code that worked for most of our reports ("most" is the key word here -- more on that in a bit).
    So, first of all, I'll post our new code.  Here is the main area where we loop through all of the tables in the report and subreports:
    '-- Replace each table in the main report with new connection info
    For Each oTable In oCrystalReport.ReportClientDocument.DatabaseController.Database.Tables
        oNewTable = oTable.Clone()
        oNewTable.ConnectionInfo = GetNewConnectionInfo(oTable)
        oCrystalReport.ReportClientDocument.DatabaseController.SetTableLocation(oTable, oNewTable)
    Next oTable
    '-- Replace each table in any subreports with new connection info
    For iLoop = 0 To oCrystalReport.Subreports.Count - 1
        sSubreportName = oCrystalReport.Subreports(iLoop).Name
        For Each oTable In oCrystalReport.ReportClientDocument.SubreportController.GetSubreportDatabase(sSubreportName).Tables
            oNewTable = oTable.Clone()
            oNewTable.ConnectionInfo = GetNewConnectionInfo(oTable)
            oCrystalReport.ReportClientDocument.SubreportController.SetTableLocation(sSubreportName, oTable, oNewTable)
        Next oTable
    Next iLoop
    '-- Call VerifyDatabase() to ensure that the tables update properly
    oCrystalReport.VerifyDatabase()
    (Thanks to Colin Stynes for his post in the following thread, which describes how to handle the subreports):
    Setting subreport connection info at runtime
    There seems to be a limitation on the number of characters in a post on this forum (before all formatting gets lost), so please see my next post for the rest....

  • I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring.

    I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring. One phone is for work and one is for private and I don't need both phones to ring from one call. It's bizarre.......is this supposed to be like this? If so where can I turn it off?? And while we are at it iOS8 has installed iBooks on both of my phones and iTunes won't let me uninstall it. I don't need or want iBooks on my phones.

    Hi,
    There are two easy fixes to this.
    One, you can set up Family Sharing, in which you can have two different iCloud Accounts, yet still share the same apps, music, media etc.
    Two, go to Settings and turn-off "Handoff". This can be found under the General page.
    Hope this helps!

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • If have two different Mac mini at two different locations. Both are running Lion. Connecting my iPhone 4G

    Hello,
    I have two different Mac Mini at two different locations. Both systems are running Lion.
    One of the Mac Mini systems connected to my iphone G4 as well as Ipad 64-Wifi, work perfect to sunchronise. ( IO5 is present)
    I would like to run the changes i made with cloud to the other Mac mini system, but this doesn't work.
    Any one to help me?
    Tnx Hans

    Winston, CH.
    Tnx for the fast reply, but where do i find the setting for iCloud system preferences?

  • HT1296 How do you sync iphone and PC when you have two different iphones/users?

    How do you sync iphone and PC when you have two different iphones/users in house? I just tried to sync my iphone and cancelled sync becauase I saw it was updating my phone with my husband's apps! How do I make it so that sync can distinguish between my and my husband's phone?

    I sync two iPhones and an iPad with one iTunes library on the same computer and each device has different content. Each device has its own sync preferences with iTunes. You can transfer the same music and apps to each device or different music and apps.
    Are you sharing the same Apple ID or iTunes account?

  • I would like to import two different cf cards from two different cameras into the same project/folder and have them be in order of the times they were taken, is there a trick?

    I would like to import two different cf cards from two different cameras into the same project/folder and have them be in the order of the times they were taken, any ideas on how to do this?

    Just import them normally and sort the project by date. They will fall into place. If you tried this and it isn;t happening then make sure the data and times on the two cameras are identical and make sure you are sorting by date and time and nothing else.

  • Kernel Panic when run virtual machine same time on VirtualBox and Parallels Desktop

    Hi,
    Like as the title of thread: "Kernel Panic when run virtual machine same time on VirtualBox and Parallels Desktop"
    Please help me, below is report: http://pastebin.com/YpX13MYc
    Version Parallels Desktop:  8.0.18608
    Version VirtualBox: 4.2.16
    Thanks alot!

    It may also be one of these:
    com.kerio.kext.kvnet    8.1.1
    com.nvidia.CUDA 1.1.0
    at.obdev.nke.LittleSnitch       2.5.3

  • Can I have Safari running on two different desktops?

    I want to run two instances of Safari on two different desktops so that I can run a genealogy program with my tree on one and another person's tree on the other for comparison. When I try to launch Safari on a desktop other than the one containing my program, it immediately leaps to the one where Safari is already running. Is there a way to get round this? Am I missing something? I suppose I could launch the second instance of the program from Camino or Firefox but I'd rather use Safari if it's possible.

    Yes you can do this.
    Safari should not be assigned to a space.
    Make sure of this by control-clicking on the Safari dock icon and following the options arrow.
    What you do next depends upon whether you have "When switching to an application...." checked or unchecked in System Preferences, Mission control.
    If that his unchecked and you want a new Safari window in desktop 2, make sure Safari is in front, then ask for a new window. (Note: if Safari is already in front and you click on its dock icon it will interpret that as a request to go to another desktop with a safari window.)
    Alternatively, create a new window in any desktop then drag it to the desktop of interest after invoking MC.
    charlie

  • Report which reads data from two different systems

    Hi experts!
    By any chance, would be possible to create a report which is able to read from two different cubes and two different systems at the same time?
    Kind regards.

    Good afternoon Raul,
    It should be possible to create a multiprovider on the two different cubes from the two sources
    systems and report on this.
    Best Regards,
    Des

  • App works differently when connected to two very similar databases

    Hi,
    I have a simple oracle forms application that runs oracle reports. I also have two very similar datasbes one is for a test envrionment and the other is for a conversion environment. I have been connecting to the test one from the start but recently have tried connecting to the conversion environment.
    Some of the reports return blank results from the conversion environment that returned values in the test environment. when I run the queries from the reports in the conversion envronment in SQLPLUS they return the same values as the test environment. Does anyone know why this might be happening?
    Gerald

    I ran this report from the reports builder application.
    the report only gets two parameters passed to it. I ran it connecting to database one and database two for exatly the same report. Database one works fine but database two says that there is a problem with the paramaters passed to the report.
    Is it something with the system parameters and how they are getting passed to the report, is there something that I need to set up on database two regarding the reports server setup?

  • Java application behaving differently when run from netbeans

    Hi,
    When i run my program from netbeans it receives packets from ip addresses which are not in my subnet
    but when i run it from outside netbeans it doesn't receives packets from ip addresses which are not in my subnet.
    Can anybody explains why my application is showing different behavior when run from netbeans and when run independently?
    Thanks.

    Bingo! My script started the rmiregistry and continued on to start the servers. Apparently, it was too quick. I put a 10 second delay after the rmiregistry startup and all is working as it should.
    Thanks for your help. You get the Duke dollars if I can figure out how that works.

  • List Format Different When Run In Background...

    Hi Guys,
    When I run a report in the Foreground my List displays normally.  It is worth knowing that this list has 36 Columns (36 added to the Field Catalog).
    But, when I run it in the background (F9), it seems to "wrap"/"split" the columns...  The last few colums are sent to the next line so my field catalog is actually displayed over 2 lines!!!
    When running the Report in the background (F9) I did choose the "Properties" button and I set the Rows to be 65 and the Colums to be 255 under the "Format" Parameter.  This does not change anything...
    We recently upgraded to ERP6.0. I wonder if it is some kind of SAP Standard that changed???
    Please advise - Point will be rewarded for usefull awnsers.
    Christiaan

    Tks, But it is still not working.
    I think it is SAP Standard not to go over the 255 limit when run in the background.  My list DEFINATELY has more than the 255 limit...
    Here is my statement:
    REPORT /bsa/rp_purchaseorder_analysis MESSAGE-ID /bsa/mm LINE-SIZE 400.
    This does not work.  When I use F9, it gives a message : "Formatting is set to X_65_255".  I run this WITHOUT overriding and it does not work.  I also ran this overriding the settings...  I made the columns 400 and it did not work.
    I dont think it is possible????
    tks
    Christiaan

  • How to Protect two Apps running on two different Hosts using same OAM serve

    Hi All,
    I am new to OAM. I am trying to configure SSO for an Application using OAM 11g server which is already protecting another Application(Oracle EBS) on a different host.
    Oracle EBS application uses the Oracle EBS Access Gate to collect the credentials.
    Now what should I do to protect the second application say APP2. Should I require to install a new OHS instance and new Webgate for this purpose ? or can i use the one already used by EBS application ?
    Please reply me soon
    Thanks,
    Prabhu

    You may use the same OHS instance by creating additional reverse proxy filter for your application 2.
    Or create another instance of OHS and configure webgate, OAM policies for your application 2.
    All the applications configured with OAM will be configured for single sign on and no special configuration needs to be done.
    Here are my comments to your questions:
    1) Can you tell me why we should have different OHS and Webgate to protect the 2nd application ?
    - As per best practices, you should have different OHS instances (+webgate) for different applications. But you may also configure the same OHS for multiple applications.
    2) If we have different OHS and Webgate, then the same OAM session will be shared between the applications ? Basically the user will navigate from the first application to the second application by clicking a link on the first application's page. Will the OAM_REMOTE_USER header be passed on to the second application in this case?
    - Yes, if you have different OHS and Webgate, then the same OAM session will be shared between the applications.
    To pass the header variables to any application, add the variables in the application's OAM authorization policy responses.
    3) By default OAM 11.1.1.3 sets the userid to the OAM_REMOTE_USER? or we should manually set a response header ?
    - To be on a safer side, set this header on the authz policy's response tab and put the vallue as $user.userid

  • Window Size is different when running a 6i Form in 9i

    Hello,
    I was having a window size that has some window chopped off, when running the 6i developed Web form in 9i. I was running the form from my PC using the 9iAS Instance.
    Any info. is appreciated.

    Is your window getting chopped because of the size of the applet window? If so, change height and width parameters in formsweb.cfg, or pass them in the URL.

Maybe you are looking for

  • E4200v2 bricked after 1 month of use.

    I purchased an e4200v2 to replace my old WRT160n which I have been using for years with no issues. Last night the e4200 crashed on me when I went to reset the router I noticed the CISCO light was blinking very slowly and I had no network connection.

  • Acrobat Pro 10.1.1 MsAccess 2010 64 bit

    I'm positive I trialed Acrobat Pro X and it worked in microsoft access 2010 64bit. I have since purchased APX only to discover there is no acrobat tab in msaccess.  I've tried repatching APX and re-installing.  I can only find documentation indicatin

  • I am getting entity ref not referenced..end with ';' delimeter for the below code

    <mx:Image click="{navigateToURL(new URLRequest(' http://www.facebook.com/group.php?gid=149134532537&ref=ts'))}">

  • ABAP dump CONVT_NO_NUMBER

    Hi, One of our program is going into dump in production server giving convt_no_number error.  Inside the form the value is calculating by the program and storing it in a variable which is declared as INT4. This value is moved to another variable whic

  • ITunes store is unavailable please try again later

    I have been through all the trouble shooting steps, I have downloaded the current version of itunes, made sure my windows updates are current (windows 7), made sure the correct ports are available and reset the hosts file. I cannot log into the Itune