Date operators not woking as expected???

Select *
from scott
where date>'2003-SEP-01';
I want to get all records for Sep 2, 3, 4... and so on. So why does it return records with dates that are before Sep 1, that is, Aug 31, June 1, Jan25, etc... You get the idea?
I want dates that are greater than, lets say Sep 1, 03. Which is any date after Sep 1.
So what's wrong with my where clause?

You are relying on an implicit data type conversion. I would guess that YYYY-MON-DD is not the default date format for your database so Oracle has to convert the date column to a VARCHAR2 to do the comparision and as you have found out the results can be unpredictable. You will need to convert your string to a date:
select *
from scott
where date > to_date('2003-SEP-01','YYYY-MON-DD')
Steve

Similar Messages

  • Data Tracking not working as expected

    Hi,
    I have created a report on a universe which is based on a BEx Query. When I run the WebI report in InfoView saved data shown, I then select tracking and select the current data (fixed) as the reference data. I then enter a key date for the data (which effively looks at data at a point in time) and the data changes but the changes are not marked. However, the reference date at the bottom of infoview is the saved data date.
    I then refresh the data again and change the key date to a different date and changes are shown based on the data which I refreshed in the report NOT the saved data. I have had a look at the bottom of infoview and the data tracking reference date changed to the REFRESHED data. I then refreshed it again and the reference date remains as the refreshed data.
    Just to re-confirm I did select use Fixed reference data.
    Any ideas why I am having this problem?
    Thanks

    Hi,
    The key date is in the SAP BW BEx Query which the universe is created on. The WebI report is then created on that universe. The key date changes the data.
    I have just tried loading the data into SAP BW so that the data changes. I then went to the WebI report which is showing the old data and has tracking on by default when the report was created. the fixed data date at the bottom says the old date. I then refresh the new data is shown and the fixed data date changes....tracking is still not working as we expect.
    Any ideas
    Thanks

  • Date/time in LR 2.1 -- still not what I expect

    Date/time of images that I scanned and input the dates outside of Lightroom are now working better, but still not what I would call correct. If I use the Library Filter, the date selection is correct under "Date".
    This is the date that Lightroom calls "Date Time Original" in the metadata panel available on the right side. But when I select a folder and ask LR to sort based on "Capture Time", it sorts on what it calls "Date Time" not what it calls "Date Time Original". What I put in Date Time is the scan date, usually called the "Date Time Digitized". (I care when they are digitized because that indicates the quality of the scanner.) This shows up as "Date Time" in the metadata panel.
    So why is the metadata search based on "Date Time Original" and the sorting by "Date Time Digitized". Surely most people want a sort on "Date Time Original" (which is the same as LR's "Date Time" in a digital camera) not some other date. If they think some people really want the other date, then it should be a choice under sort.
    The sort field is called "Capture Time". OK, I agree, I did scan the files on that date. So in that sense it is the "capture time" but MY opinion is I "captured" them on film on the "Date Time Original" date and that is always the date I want them sorted by. The other date is just for reference in my case.
    If "Capture Time" is really what the designers of LR think I want, why is that not the date in the library filter?
    Judy

    Holy macaroni! I think I got it right this time. But from now on I'm using Integer.toBinaryString(int) ...or my own special brand of sluggish code he he. Thanks for the input though. Really appreciate it.
       public String toBinary(int innTall) { // i.e 123
            while(innTall > 0) {
                rest = innTall%2;
                innTall = innTall / 2; //i.e 61-30-15-7-3-1-0
                if(rest > 0)
                    tall = 1;
                else
                    tall = 0;
                result = result.concat(result.valueOf(tall));
            return (reverse(result));//returnerer den omvendte rekkef�lgen av bin�rtall
        //internal method for flipping a string of binary numers
        private String reverse(String sekvens) {
            char tegn[] = new char[sekvens.length()];
            while (sekvens.length() != index ) {
                tegn[index] = sekvens.charAt((sekvens.length()-1) - index);
                System.out.println(tegn[index]);
                index++;
            index = 0; //reset index
            String newString = new String(tegn);
            return newString; //toString er synderen
    }

  • Date condition not working correctly in Desktop

    Hello,
    I have two custom folders in Admin that are joined. One of the folders contains the following query:
    SELECT ORGANIZATION_ID, ASSET_NUMBER, MIN(CURRENT_READING_DATE) FIRST_READ_DATE, MIN(CURRENT_READING) FIRST_READING
    FROM EAM_METER_READINGS_V
    WHERE PREV_DESC IS NULL
    Group By ORGANIZATION_ID, ASSET_NUMBER
    I want my workbook to report the earliest meter reading that exists, based on the date that is specified in the parameters in Desktop. When I create a parameter for the date, the workbook reports the earliest reading in the database; it ignores the date restriction entered in the parameter. This is the parameter:
    First Read Date MIN BETWEEN :First Reading Date and SYSDATE
    If I include the date condition in the SQL of the custom folder the workbook functions exactly as it should. The date condition is in the SQL as the following:
    and current_reading_date between '01-JAN-2007' and SYSDATE
    Since the workbook functions correctly when the condition is coded in the SQL but not when it is based on a parameter, I assume the problem is with the parameter. Any ideas on how I may correct this?
    Thanks,
    Steve

    Thanks for the response Michael. I tried using the MIN function as you suggested, but I still am not getting the expected result. I’m not sure that I was clear in my initial problem description. I will try to provide more detail with this post.
    The reason I have two custom folders is that my original query has a nested Select statement (EAMV) and I couldn’t find a way to pass the parameter from EAMV to Discoverer. Following is the original query. I suppose the first logical questions would be, is there a way to pass the parameter to Discoverer? Would this alleviate the need for the second custom folder?
    SELECT K.ORGANIZATION_CODE "ORG" -- ORGANIZATION
    , K.ORGANIZATION_ID
    ,A.NAME "PM SCHEDULE NAME" -- PREVENTIVE MAINTENANCE SCHEDULE NAME
    --( (B.RUNTIME_INTERVAL/F.USER_DEFINED_RATE) + D.LAST_SERVICE_END_DATE) "PROJECTED READ DATE" -- USES USER_DEFINED_RATE FROM METER DEFINITION
    ,(C.LAST_SERVICE_READING + B.RUNTIME_INTERVAL) "PROJECTED READ UNITS" -- NEXT SERVICE READING DUE UNITS
    ,F.METER_UOM "UOM" -- UNIT OF MEASURE ON METER
    ,F.METER_NAME "METER NAME" -- METER NAME
    ,G.SERIAL_NUMBER "MAINT EQ NO" -- MAINTAINED EQUIPMENT NUMBER
    ,H.C_ATTRIBUTE1 "MAKE" -- MAINTAINED EQUIPMENT NUMBER - MAKE/MANUFACTURER
    ,H.C_ATTRIBUTE2 "MODEL" -- MAINTAINED EQUIPMENT NUMBER - MODEL
    ,H.C_ATTRIBUTE4 "SERIAL NO" -- MAINTAINED EQUIPMENT NUMBER - SERIAL NUMBER
    ,I.SEGMENT1 "ACTIVITY" -- ASSET ACTIVITY
    ,D.LAST_SERVICE_END_DATE "LAST READ DATE" -- DATE OF LAST PM SERVICE READING
    ,C.LAST_SERVICE_READING "LAST READ UNITS" -- UNITS OF LAST PM SERVICE READING
    ,E1.CURRENT_READING_DATE "CURRENT READ DATE" -- DATE OF CURRENT SERVICE READING (FROM METER FORM)
    ,E1.CURRENT_READING                                   "CURRENT READ UNITS" -- UNITS OF CURRENT SERVICE READING (FROM METER FORM)
    ,E1.LIFE_TO_DATE_READING "LIFE TO DATE READING" LIFE TO DATE READING
    --,(E1.CURRENT_READING - C.LAST_SERVICE_READING) "CURRENT/LAST VARIANCE" -- UNITS SINCE LAST PM SERVICE READING
    ,( (C.LAST_SERVICE_READING + B.RUNTIME_INTERVAL) - E1.CURRENT_READING ) "PROJECTED/CURR VARIANCE" -- UNITS REMAINING UNTIL NEXT SCHEDULED READING
    ,J.DESCRIPTION "LOCATION" -- OWNING DEPARTMENT DESCRIPTION OF ASSET NUMBER
    ,J.DEPARTMENT_CODE
    ,E1.DISABLE_FLAG
    ,G.CURRENT_STATUS
    ,B.RUNTIME_INTERVAL
    ,Y.SET_NAME
    ,EAMV.FIRST_READ_DATE READ_DATE
    ,EAMV.FIRST_READING READING
    FROM EAM.EAM_PM_SCHEDULINGS A
    ,EAM.EAM_PM_SCHEDULING_RULES B
    ,EAM.EAM_PM_LAST_SERVICE C
    ,INV.MTL_EAM_ASSET_ACTIVITIES D
    ,EAM.EAM_ASSET_METERS E
    ,EAM.EAM_METER_READINGS E1
    ,EAM.EAM_METERS F
    ,INV.MTL_SERIAL_NUMBERS G
    ,INV.MTL_EAM_ASSET_ATTR_VALUES H
    ,INV.MTL_SYSTEM_ITEMS_B I
    ,BOM.BOM_DEPARTMENTS J
    ,INV.MTL_PARAMETERS K
    ,EAM.EAM_PM_SET_NAMES Y
         ,(SELECT ORGANIZATION_ID, ASSET_NUMBER, MIN(CURRENT_READING_DATE) FIRST_READ_DATE, MIN(LIFE_TO_DATE_READING) FIRST_READING
              FROM EAM_METER_READINGS_V
              WHERE CURRENT_READING_DATE BETWEEN '01-JAN-2007' AND '30-JUN-2007'
              GROUP BY ORGANIZATION_ID, ASSET_NUMBER) EAMV
    WHERE A.PM_SCHEDULE_ID = B.PM_SCHEDULE_ID
    AND A.ACTIVITY_ASSOCIATION_ID = C.ACTIVITY_ASSOCIATION_ID
    AND C.ACTIVITY_ASSOCIATION_ID = D.ACTIVITY_ASSOCIATION_ID
    AND D.SERIAL_NUMBER = E.ASSET_NUMBER
    AND D.ORGANIZATION_ID = E.ORGANIZATION_ID
    AND E.METER_ID = E1.METER_ID
    AND E1.METER_READING_ID =
    (SELECT MAX(METER_READING_ID)
    FROM EAM_METER_READINGS
    WHERE METER_ID = E1.METER_ID
    AND (DISABLE_FLAG = 'N' OR DISABLE_FLAG IS NULL))
    AND E.METER_ID = C.METER_ID
    AND E.METER_ID = B.METER_ID
    AND E.METER_ID = F.METER_ID
    AND D.MAINTENANCE_OBJECT_ID = G.GEN_OBJECT_ID
    AND D.ORGANIZATION_ID = G.CURRENT_ORGANIZATION_ID
    AND G.SERIAL_NUMBER = H.SERIAL_NUMBER
    AND G.CURRENT_ORGANIZATION_ID = H.ORGANIZATION_ID
    AND D.INVENTORY_ITEM_ID = H.INVENTORY_ITEM_ID
    AND H.ATTRIBUTE_CATEGORY = 'EQUIPMENT DETAILS'
    AND D.ASSET_ACTIVITY_ID = I.INVENTORY_ITEM_ID
    AND D.ORGANIZATION_ID = I.ORGANIZATION_ID
    AND G.OWNING_DEPARTMENT_ID = J.DEPARTMENT_ID (+)
    AND I.ORGANIZATION_ID = K.ORGANIZATION_ID
    AND A.SET_NAME_ID = Y.SET_NAME_ID
    AND Y.SET_NAME IN ('MAIN','COMP')
    AND G.CURRENT_ORGANIZATION_ID = EAMV.ORGANIZATION_ID
    AND G.SERIAL_NUMBER = EAMV.ASSET_NUMBER
    AND K.ORGANIZATION_CODE = 'MCC'
    Using this query I want to show the most recent reading (current reading) and then give users the flexibility to enter an earlier date so the earliest reading as of that date will also show. For example, if they enter 1-JAN-2007 as the parameter and there was a reading taken on 2-JAN-07 and 28-JAN-07, the report should show the 2-JAN-2007 reading (in addition to the most recent reading in a separate column). Currently, everything on the report displays correctly, except for the reading based on the parameter.

  • How can I find out the date of a movie I am trying to pre-order if the date is not available/showing in the "manage pre-order" section?

    How can I find out the date of a movie I am trying to pre-order if the date is not available/showing in the "manage pre-order" section?

    Thanks so much for your reply King_Penguin. No, sadly there is not indication of the expected release date on the film, it's no where to be found. I have also tried to look in other places online, but no luck. I guess your latter statement jives more with my situation, that  being the studio/rights-holder hasn't feel inclined to provide the date.

  • Intermittent : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs.
    The first step in the wrapper is to create a Transcript file using following code
    if ($Host.name -ne "Windows PowerShell ISE Host") # Transcript does not work within ISE
    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    $path = "c:\corp\$timestamp" + "_$pid.txt"
    Start-Transcript -path $path -append
    As expected the folder contains files with timestamp & pid in name
    08/08/2013  11:00 AM            14,388 2013-08-08-11-00-01.158_1620.txt
    08/08/2013  11:00 AM            12,506 2013-08-08-11-00-01.485_936.txt
    08/08/2013  11:00 AM            12,994 2013-08-08-11-00-01.735_9328.txt
    08/08/2013  11:00 AM            12,024 2013-08-08-11-00-01.766_8624.txt
    08/08/2013  11:00 AM            13,902 2013-08-08-11-00-01.860_1756.txt
    08/08/2013  11:01 AM            15,142 2013-08-08-11-01-31.392_10120.txt
    08/08/2013  05:00 AM            14,982 _1692.txt
    However note the last file, it has a zero length date time value in the name
    The error recorded by PowerShell is
    get-date : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Corp\Powershell\DMPRun-ScheduledTask.ps1:171 char:18
    +    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    +                  ~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-date:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    IE get-date has failed and returned a zero length field as the timestamp
    Can anyone think of a good reason why get-date would fail intermittently?
    Do I have to code defensively for base Powershell functions?

    I implemented David's suggestion and now I intermittently get
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_08_55_02.ps1:15 char:1
    + import-module Microsoft.Powershell.Utility
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand
    I added a trap chain (My Powershell skills do not yet include recursive trap coding, any suggestions welcome)
    trap {
        trap {
            "Trap1"
            "Exception: " + $_
            "Error: " + $Error[0]
            "Message: " + $_.Exception.Message
            "InnerException: " + $_.Exception.InnerException
            "StackTrace: " + $_.Exception.StackTrace
            "FailedItem: " + $_.Exception.ItemName
            import-module Microsoft.Powershell.Management
            import-module Microsoft.Powershell.Security
            import-module Microsoft.Powershell.Utility
        "Trap2"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        import-module Microsoft.Powershell.Management
        import-module Microsoft.Powershell.Security
        import-module Microsoft.Powershell.Utility
    import-module Microsoft.Powershell.Management
    import-module Microsoft.Powershell.Security
    import-module Microsoft.Powershell.Utility
    trap {
        "Trap3"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        exit 1
    get-date
    Now I intermittently get ..
    Trap2
    Exception: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Error: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Message: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    InnerException:
    StackTrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew, MutexSecurity mutexSecurity)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew)
       at System.Management.Automation.AnalysisCache.CacheExportedCommands(PSModuleInfo module, Boolean force, ExecutionContext context)
       at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, Boolean found, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
    PSModuleInfo& module)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
       at System.Management.Automation.CommandProcessor.ProcessRecord()
    FailedItem:
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_09_19_52.ps1:26 char:1
    + import-module Microsoft.Powershell.Security
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand

  • 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.

  • Events in SubVi not working as expected

    Hi, I am reposting this question as my previous one didn't resulted in any satisfactory conclusion.
    I have attached my Vi's which are not working as expected. If I remove ONE subVi and its associated 3 controls and two indicators, the other one works just fine, but when I add two SUB Vis, it goes messy. I am trying to learn this way, I am sure it can be done many other ways, but please help me finding out the problem doing it this way as in my final MainVi, I would like to use 8 such sub Vis. Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Main.vi ‏11 KB
    SubVi.vi ‏12 KB
    SubVi_2.vi ‏15 KB

    Your main problem is DATA FLOW.  A loop cannot iterate until EVERYTHING in it has completed.  So, as you have it, you have to have both event structures execture before you can go back to look for the next event.  So if you insist on having these subVIs, they need to be in seperate loops.
    BTW, you can get away with a single subVI.  Go into the VI properties and make it reentrant (preallocated clone).  Then each call of your subVI will have its own memory space.  A lot easier to maintain that way.
    And I know you said you didn't want alternatives, but here's how you can do it all with a single event structure in your main loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Main_MODTR.vi ‏10 KB

  • Records are not displaying as expected.

    Hi,
    Records are not displaying as expected.
    i designed an query as
    SELECT '1. Emp Detail ' Details from dual
    UNION ALL
    SELECT empno||ename details dfrom emp
    UNION ALL
    SELECT '1. Dept Detail ' Details from dual
    UNION ALL
    SELECT deptno||dname details from dept
    UNION ALL
    SELECT '1. Location Detail ' Details from dual
    SELECT locationcode||locationname details from location
    The above query is displaying the data as follow
    EMP Detail
    Dept Detail
    Location Details
    John
    Kathy
    Prem
    IT
    Customer care
    Boston
    Texas
    but i need to display the data as follows
    EmpDetail
    JOHN
    Kathy
    Prem
    Dept Detail
    IT
    Customer care
    Location Detail
    Boston
    Texas
    Please help me on this.
    Thanks,
    Naz

    Records are not displaying as expected.Well, it certainly displays as I'd expect it to. i.e. in an undetermined order.
    If you want the output of a query to come out in a specific order then you must use an ORDER BY clause in your query, otherwise you are just querying a set of data and there is no order to it. You cannot assume that the order of the data will be the order in which you union your queries together, that's not how SQL works, as SQL is designed to work on sets of data, not on sequential rows.
    So, in your example you would want something along the lines of:
    select Details from (
      SELECT 1 as ord, '1. Emp Detail ' Details from dual UNION ALL
      SELECT 2, empno||ename details dfrom emp UNION ALL
      SELECT 3, '1. Dept Detail ' Details from dual UNION ALL
      SELECT 4, deptno||dname details from dept UNION ALL
      SELECT 5, '1. Location Detail ' Details from dual UNION ALL
      SELECT 6, locationcode||locationname details from location
    order by ord, details

  • Correct Data is not shown while opening Input Schedule

    Hi
    I am facing this issue almost in every template i create
    After saving data in a particular template in an input schedule, i reopen the template from the dynamic templates library(etools -> open dynamic template)
    But the data saved previously does not appear, instead it shows the values saved when the template was originally saved.
    How to get the data newly saved data on opening the template automatically ?
    List of options i have tried>
    Have refresh on workbook open checked (etools - workbook options) - does not work
    Have expand on workbook open checked - (works, but takes too much time to load the workbook, need not expand as the row & col expansions are quite static and only data refresh is required)
    Have tried "MNU_EANALYZE_REFRESH" macro on workbook - does not seem to work fine (although when i click on the refresh buttton on the opened workbook/sheet , new data is being fetched correctly.
    Have tried "MNU_ESUBMIT_REFRESH" (but this is not the right macro) as it gives a pop up on workbook open.
    Any possible solution to the same will be greatly helpful
    Has this been solved in any of the SAP 's Support pack versions... Im on SP03.
    -Sridhar

    Hi Sridhar,
    You are absolutely right. Refresh on workbook open does not work as expected. The only workaround is to select expand on workbook open.
    You can try another thing. you can right a macro which will run the refresh menu command when the excel is opened. and this macro will be available only to this workbook.
    Hope this helps.
    // Recent Addtion
    You can use the command
    Private Sub Workbook_Open()
    Call MyMacro   
    End Sub
    u201CMyMacrou201D is the name of YOUR macro. Call your macro which will refresh the workbook.
    Hope this will help.
    Edited by: nilanjan chatterjee on Dec 17, 2009 7:53 AM

  • Usage of aggregation operators not supported by OWB

    I want to use the WSUM operator for aggregation in an AW cube. Since WSUM is not supported by OWB I updated the corresponding AGGMAP after deploying the cube to the AW. But whenever I execute the cube load mappig the AGGMAP is overwritten to what has been originally defined in the OWB repository.
    I would expect that only deploying the cube would overwrite my manual updates but not the execution of a mapping.
    Any explanations for that?? Other workarounds to use aggregation operators not supported by OWB? Do I really have to create another AGGMAP not touched by the mapping?
    Btw, we are using OWB10gR2.

    To create the XML you can use the AWXML java api directly and get a string from the AWXML api representing the XML. This could be done from an expert and a procedure generated.
    You could hold the XML holding the alter cube and aggregation/solve definition in a procedure (in a table of VARCHARs for example), then the procedure would be deployed and executed after the cube is deployed...to deploy the metadata.
    Then the solve can be run as a post-map trigger in the map.

  • Report data is not appearing

    Hi Experts
    When we are running ZCO001 in this report data is not appearing in PLANT
    IJ01 if same report we are running forPLANT  IM01 then data is coming so
    please reslove me this  issue.
    Thanks in advance.
    Regads,
    Nagesh

    Hi,
    This is user-developed report (non-standard). Check with your ABAP team why it does not work as you expect.
    Regards,
    Eli

  • Date rules not copied into service ticket

    We are implementing a SAP CRM 2007 Service scenario with the IC Webclient.
    When creating a service ticket, a product is assigned and a service contract is automatically determined. This service contract contains a Service Profile and an Reaction Scheme.  All date types are copied into my service ticket but I am missing my durations for the items it seems like they are not assigned to the bussiness transaction. This is not what I am expecting because the item, contract, response profile and Service profile are determined.
    when creating the same type of service transaction in CRMD_ORDER and assigning the product the contract is determined and all durations are determined and assigned, based on the contract.
    Has anyone encountered this problem or a clue how to solve this
    regards,
    Remko

    Hello Buijink
    By default the service ticket only shows the dates and not the durations of your date profile.
    You will have to use the UI config tool to add Durations to service ticket.
    Here's how:
    1. Tcode BSP_WD_CMPWB - BSP WD Component Workbench
    2. Component ICCMP_BTDATE > Display
    3. Views > ICCMP_BTDATE/Dates > Configuration
    4. Click on "Show Available Fields" you will see "Blocks" folder, expand that and you will see BTDatesDurations.
    5. Copy configuration to your role config key and add BTDatesDurations.
    Once you add BTDatesDurations you will be able to see durations on service ticket.
    Regards
    Rupesh Patil

  • Scheduled Brio/IR Jobs are not running as expected in EPM 11.1.2.2

    Hi All,
    We are observing some scheduled jobs are not running as expected,they are not running on the scheduled time.
    Given below are more details.
    We have 2 Jobs running at 6:00 AM daily based on single Recurring Time Event and it is observed that this jobs are not running on time(ex: 6:06 AM EST).
    I tried verifying Consolidate Job Status in workspace admin options and the v8_RecurtimeEvent table for any miss in the 'Next Run Time',
    but they were having the scheduled date/time of run.No clue from EPM Logs.
    Interesting observation is the same jobs are running after updating the schedule time a little bit further(ex: 6:06 AM to 6:07 AM),but again after some days
    the updated job(6:07 AM ) will stop running.
    Thanks,

    Put the IR job logs in TRACE:32 mode which will give more information in the logs . Refer this document link to put in TRACE mode :http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_troubleshooting_1112200.pdf
    Thanks,
    KK

  • 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.

Maybe you are looking for

  • Can't print from IE 8 64 bit version only

    I am running windows 7, 64 home premium.  I have a HP c4599 all in one printer.  I installed all the latest drivers/software from the HP site.  I have no problems printing from any application such as word, excel, opera, etc.  I can even print from I

  • About Interface objects in Integration Repository

    Hi All,    I want to know details about Data type enhancements & Context objects in Interface Objects.Please help me. Thanks, GOPI.

  • Ios 7 javascript alert

    I have a weird issue with IOS 7 on both iPhone and iPad.  When a javascript alert box is displayed, the message is shown with an OK button.  Clicking the button does nothing.  The modal window freezes Safari and I have to close it down and reopen to

  • How to search for data on the web and return to jsp

    I need to collect data from a web site and return that data to my jsp file. The page should consist of a web page in which the user search for available flights then I conect to easyjet automatically fill in the form and return the result from easyje

  • Logitech external USB DVD reader/burner model LDR-PMD8U2LBK not recognized.

    Got a external USB DVD reader/burner Logitech model LDR-PMD8U2LBK. I plug the device, use the adapter but nothing happens. I tried to boot the computer with the driver plugged in, again, nothing. If I put a DVD in the driver, I hear the machine buffe