Date function giving different results for different connections

Hi there,
I am relatively new to BusinessObjects universe design, so please forgive me if this turns out to be a UTS (user-too-stupid) error.
I have created two universes. They are identical apart from the fact that they connect to different data marts (a live one and a testing one).
Within both universes there is an object with the following SQL:
CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
When  I use the universe using WEBI connected to one data mart, I correctly get a set of dates and a corresponding set of dates with the day set to 1 (e.g. 23 Mar 2005 and 1 Mar 2005), but I change the WEBI query to point to the other universe, it incorrectly sets the month to 1 and leaves the day alone (i.e. the above to 23 Jan 2005).
When I run this using MS SQL Server Management Studio as part of a query against either data mart, I get the same results for both data marts:
SELECT
  DispatchDateCalendar.date,
  CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
FROM
  DIMVolume INNER JOIN DIMIssue ON (DIMVolume.volumeKey=DIMIssue.volumeKey)
   INNER JOIN DIMCalendar  DispatchDateCalendar ON (DIMIssue.issuePublicationDate=DispatchDateCalendar.date)
WHERE
  DIMVolume.volumePublicationYear  =  2008
Has anyone got any advise on how I go about finding the cause of this problem and correcting it?
I asked our DBA who said he wouldn't know where to start looking.
Thanks in advance,
Paul

Don't have any links (oracle documentation search?). Currently the databases I work with are mostly NLS_CHARACTERSET WE8MSWIN1252 and I need to ensure that '£' and other characters are displayed correctly so a few years ago (after a little googling about the difference between windows and command line tools) I put host chcp 1252 in my glogin.sql.

Similar Messages

  • P/L A/c for a single day gives different results for different users

    Hi!
         We have SAP B1 8.81 (PL 09) in our office. P/L Account for a particular date gives different value for a single account (Other Income Account) for one user and a consistent value for all other users. The user in question is a super user and does not seem to pick a specific entry posted in the Other Income Account for that day thus giving erroneous result. I have checked the Trial Balance for that day and it gives proper result. Only the P/L account gives erroneous data. Could anyone help with the reason for this.
    Thanks
    Sreekumar

    Hi Jitin,
              Thanks for your reply.
              I tried the way you mentioned. However, the result is the same.
              The entry that I'm talking about is an automatic journal entry posted through the Outgoing Payment option.
              To make it more clear, an outgoing payment to a vendor was posted on 05/19/11 for 1,42,178.32. The check was drawn only for 71,089.16 which was the correct amount and the remaining amount (71,089.16) got posted in the Other Income account. The P/L account for this date is not picking the amount of 71,089.16 in the Other Income Account.
    Thanks & Regards
    Sreekumar
    Edited by: Sreekumar on Jan 31, 2012 5:58 PM

  • List of deployed applications. Different results for different MBean hierarchies

    Hello there,
    When I list the deployed applications, I am getting different results depending what MBean hierarchy I am querying:
    serverConfig():
    wls:/MY_WEBLOGIC_DOMAIN/serverConfig> listApplications() APPLICATION_1APPLICATION_2
    domainRuntime():
    wls:/MY_WEBLOGIC_DOMAIN/domainRuntime/AppRuntimeStateRuntime/AppRuntimeStateRuntime> ls()
    -r--   ApplicationIds                               java.lang.String[APPLICATION_1, APPLICATION_2, APPLICATION_3]
    Any idea why is APPLICATION_3 in the list?
    Thanks in advance,
    Luis
    ps: if I ask directly to the managed server:
    wls:/MY_WEBLOGIC_DOMAIN/domainRuntime/ServerRuntimes/prodGAD_1> ls('ApplicationRuntimes')
    dr--   bea_wls9_async_response
    dr--   bea_wls_cluster_internal
    dr--   bea_wls_deployment_internal
    dr--   bea_wls_diagnostics
    dr--   bea_wls_internal
    dr--   APPLICATION_1
    dr--   APPLICATION_2

    Hello Vijaya,
    Thanks for your answer, yes you are right, in my config.xml I can see that application:
      <app-deployment>
        <name>APPLICATION_3</name>
        <target>...</target>
        <module-type>ear</module-type>
        <source-path>...ear</source-path>
        <security-dd-model>DDOnly</security-dd-model>
      </app-deployment>
    But at the moment that I read your response I had already restarted the AdminServer. This re-start has solved the issue.
    Thanks,
    Luis

  • Closing an application has different results for different applications

    Hello,
    what determines if an application quits or just close when you click the red X button? For example when you close Safari, the application stays in the dock as running application even if there are no open windows left. If you close iPhoto, the application quits.
    Any idea? And is there a way to control this?
    Thanks

    If the app can do something with all windows closed, it will stay open when you Close the window. The close button closes windows. The Quit command quits applications. The application developer controls whether or not closing the last document window quits the app.
    An app will stay open as it assumes you may want to start a new document. It costs virtually nothing to keep an app open, but takes some time to open the app and make it ready to create a new document.
    iPhoto has nothing useful to do without the viewer window open, so it quits the app. Same with System Prefs. However, Text Edit, Word, etc. are ready for you to start creating a new document. Mail can receive email with no windows open.

  • VBA inserting form fields, different positions result for different users.

    I'm certianly at a loss for wrapping my head around this.
    Adobe Acrobat 9 Standard (v 9.5.4)
    Excel 2010  (VBA)
    The problem:  When I create the PDF document from Excel, I search for a string of text in order to capture the Quads for the containing rectangle.  Then I use the quads to insert a control with numeric offsets.  The problem that I am facing is that the offsets seem to be causing the controls to be in different locations for different users.  For example, when I send (-26, -2, 100, 10) {x-offset, y-offset, width, height}; the control aligns exactly where I want it.  But when another user user runs the exact same routine, or opens the PDF that I created, the fields are no longer positioned correctly.
    Is there some setting that I am missing? EDIT, SOLVED:  My Acrobat had a custom point to pixel setting.  (Preferences > Page Display > Resolution)
    Private Function makePdfControl(ByVal pdfPage As Integer, keyTerm As String, Optional ByVal keyTermLookAhead As Integer = 0, Optional ctrlType As String = "text", Optional cCoords As Variant = 0)
        'pdfPage is the target page of the document
        'keyTerm is the assembled search term: "Date Shipped >> DATESHIPPED"
        'keyTermLookAhead is the number of words assembed into KeyTerm, zero based: "Date Shipped" >>  "DATESHIPPED" >> "DATE" = 0, "SHIPPED" = 1
        'ctrlType determines the type of control to place on the form; default is text
        'cCoords carries an array of integers: x-offset, y-offset, width, and height
        txt = ""
        Dim fkt As Integer 'counter for keyTermLookAhead
        Dim matchFound As Boolean 'flag that a match has been found
        Dim maxWords As Integer 'the maximum number of words in pdfPage
        Dim coord(3) As Integer 'local array container to provide interface for cCoords
        p = 0
        matchFound = False
        maxWords = jso.getPageNumWords(pdfPage)
        Do While p + keyTermLookAhead <= maxWords 'search all words in the target page; break if not found
            p = p + 1
            For fkt = 0 To keyTermLookAhead
                txt = txt & jso.getPageNthWord(pdfPage, p + fkt)
            Next fkt
            If UCase(txt) <> UCase(keyTerm) Then 'the assembly of terms is complete, check if match
                txt = "" 'prepare "txt" for next assembly
                matchFound = False
            Else
                matchFound = True 'we've struck gold, exit the loop preserving val of "p" as the first word in the assembly
                Exit Do
            End If
        Loop
        If matchFound = True Then
            Dim qtmp() As Variant
            Dim q(7) As Double
            qtmp = jso.getPageNthWordQuads(pdfPage, p)(0) 'collect the rectangle containing the first word of the search; output is a base-0x7 array
            For a = 0 To 7
                q(a) = qtmp(a) 'collect the data
            Next a
            If VarType(cCoords) <> 8204 Then '8204 means that we've inserted an array into the Varient type var cCoords
                coord(0) = 0
                coord(1) = 0
                coord(2) = 100
                coord(3) = 15
            Else
                coord(0) = cCoords(0) 'x-offset value
                coord(1) = cCoords(1) 'y-offset value
                coord(2) = cCoords(2) 'width value
                coord(3) = cCoords(3) 'height value
            End If
            x0 = coord(0) 'x-offset var
            y0 = coord(1) 'y-offset var
            w = coord(2) 'ctrl width
            h = coord(3) 'ctrl height
            x = q(0) + x0
            y = q(7) - h + y0
            'origin point of doc matrix is lower-left corner
            'origin point of control is lower left corner of the rectangle containing the first word of the search phrase
            'offsets are placed from this point, negative x shifts to the left, negative y shifts down
            'values are in points, not pixels
            Set f = aForm.Fields.Add(keyTerm, ctrlType, pdfPage, x, y, x + w, y + h) '(uplf, lwlf, lwrt, uprt) 'add the control to the form using values passed in
        End If
    End Function
    The above function is used while looping through the pages of the created PDF document.  I am using the following function to create the document from Excel:
    Private Sub exportToPDF()
        DoEvents
        Application.ScreenUpdating = False
        Call showTabs(False)
        ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, _
                                           Filename:=pdfPathData, _
                                           Quality:=xlQualityStandard, _
                                           IncludeDocProperties:=False, _
                                           IgnorePrintAreas:=False, _
                                           OpenAfterPublish:=False
        Call showTabs(True)
        Call locateDoc
        Application.ScreenUpdating = True
    End Sub
    Message was edited by: ilivingston:  solved

    Thanks for the reply, I did spend some time working on this issue...  here is what I found...
    1)  First of all, I did have a custom Points to Inches setting in my Acrobat options...  110 vs 96.   Resetting this allowed for me to see the alignment issue that my colleagues were referencing first hand.
    As it turned out, my results were better, but still had inconsistency among different workstations.  Leading me to..
    2)  The MSFT creator uses the default printer in some way to create the PDF.  Because the different workstations were using different printers, we were getting different results.  If everyone used an HP 1320, nobody would see any difference upon creating / adding fields.
    The final solution was to change the Application.Printer to a common network printer before the export operation, and return the Application.Printer to the user default after the export completed.  This has provided us with a common ground to work upon; we are lucky to have a network printer that can be used for this purpose, as I can see this becoming non-viable in environments where this would be unavailable.

  • HT201371 In the next ios update, could we get the fingerprint function to unlock the phone and open up different apps in one swipe, using different fingers for different apps?

    In the next ios update, could we get the fingerprint function to unlock the phone and open up different apps in one swipe, using different fingers for different apps?

    This is primarily a user-to-user support forum. Following is a link for feedback/suggestions to Apple: http://www.apple.com/feedback/

  • Showing different exceptions for different ResultSetTypes??

    For the code below, I am getting different exceptions for different ResultSet types.
    ResultSet rs = stmt.executeQuery("Select * from usermaster");
    rs.absolute(3);
    rs.updateString("emailID", "newID");
    rs.updateRow();
    For ResultSet -> ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY, I am getting following exception
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid attribute/option identifier
         at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5017)
         at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4009)
         at DBConnector.<init>(DBConnector.java:56)
    For ResultSet -> ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, I am getting following exception
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]String data, right truncation
         at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5017)
         at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4009)
         at DBConnector.<init>(DBConnector.java:56)
    I am using SQL Server 2000, and JDK1.4 beta.
    I am not able to identify what is going wrong here? Please help

    ResultSet.absolute(int) is a JDBC 2.0 function,
    currently most JDBC-ODBC driver only support jdbc
    1.1,
    check your jdbc driver.
    It is so common why there is no compilation error, but
    throw exception in Production.
    RexI have JDBC2.0

  • Purchasing info records with different prices for different packaging

    Hi,
    hope, someone can help me.
    We have different prices for different kind of packaging, but all the material is bought in the same unit, i.e. kg.
    Let's say, usually you buy x kg in a drum, but sometimes you buy y (or x) kg in a bottle or in a bag.
    We won't allow variable order units. Even if we would, it's not helpful, because we always order kg.
    So the price depends on a criterion - I don't know, which to take. And we want to maintain the different prices in the info records.
    Is there a solution?

    Hi.
    I went through the history of the problem.It seems that your base unit of measure is KG.Also you have mentined that same material is used in various plants.
    You need to activate the variable ordering unit  2  in material master. This is present in the materila master Purchasing tab.Also note that this data is maintained at plant level. This will not have any impact on the materials which are presnt in the other plants.
    After activating variable order unit in materal master. You need maintains the conversion factors from Order units to Base UOM.(Eg 1 KG = 1 KG, 1BOX = 10 KG etc)
    Create inforecord for the material and maintain price in Base unit of measure.
    In PO enter the order unit as BOX system will automatically calculate the price of BOX based on the conversion factors which are maintained in the material master.
    I belive this is the simple and best solution for your requirement..
    If you have any suggestions please let me know
    Cheers
    Umakanth

  • Web Part showing different result in different regions

    Hi All,
            We have a
    stock  web-part which is integrated into our SharePoint site . And this stock web-part is showing different result in different regions .As the output of the web-part is perfect in India,US,UK and working quite opposite in Singapore,china and Malaysia.Can
    any one help me how can I solve the issue
    Samar

    Hi Samar,
    As the stock web part is a custom web part, we cannot know how it works. For this issue, I suggest you ask the web part developers or support for help.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Different aggregation for different Dimensions

    Hello,
    is it possible to have different aggregations on different dimensions.
    I have following situation:
    I have a measure per client and day.
    I'm interested in the maximum per month from the daily sums over clients.
    In the measure properties I can only choose between Maximum and Sum in general but not per Dimensions.
    To clearify what i mean here is some sample data.
    * * Client A * Client B *
    * 2014-11-28 * 7 * 8 * SUM() = 15
    * 2014-11-29 * 6 * 8 * SUM() = 14
    * 2014-11-30 * 6 * 10 * SUM() = 16 <-- monthly max
    * 2014-12-01 * 7 * 8 * SUM() = 15
    * 2014-12-02 * 5 * 12 * SUM() = 17 <-- monthly max
    * 2014-12-03 * 6 * 9 * SUM() = 15
    This data is stored in my fact table with reference to date and client dimensions.
    This example data would have to be reported as:
    /* Report on measure
    * * Measure *
    * 2014-11 * 16 *
    * 2014-12 * 16 *
    * Report on measure per client
    (max per client and month)
    * * Client A * Client B *
    * 2014-11 * 7 * 8 *
    * 2014-12 * 7 * 12 *
    Can this be achieved with SSAS? Didn't find any property for that on the measure.
    Best Regards,
    Thomas

    Hi Thomas,
    According to your description, you want to calculate different aggregation for different dimensions, right?
    Based on your scenario, I tested it on AdventureWorks cube, the query below is for you reference.
    with member [Customer].[Country].[USA & Canada] as
    Aggregate( { [Customer].[Country].&[United States],
    [Customer].[Country].&[Canada]
    member [Measures].[MaxAmount]
    as
    max([Date].[Calendar].currentmember.children,[Measures].[Internet Sales Amount])
    select {[Customer].[Country].&[United States],[Customer].[Country].&[Canada],[Customer].[Country].[USA & Canada]} on 0,
    [Date].[Calendar].[Month].members on 1
    from
    [Adventure Works]
    where [Measures].[MaxAmount]
    Here is similar thread with yours, please see:
    https://social.technet.microsoft.com/Forums/en-US/1bd493ef-f957-4fd5-916b-ee60639106c3/calculated-member-different-aggregations-on-different-dimensions?forum=sqlanalysisservices
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Making different signals for different color average of the pixcells

    Hello, everyone.
    I'll take image of paper money by webcam,
    and get the color average of the bills
    and fractionate the color average by wavelength range of each bills.
    and I want to making signal releasing time differently for different color average of the pixcells.(to fractionate the kind of bills)
    (I want different signal for different kind of bills) 
    my question is this:
    (1)How can I connect the webcam to the Labview?
    (2)How can I get the color average of paper money?
    (3)How can I make Labview program for releasing different signals which has different releasing time for each color average?

    Hi 박지성,
    you can use the IMAQ for USB Driver. See this link http://zone.ni.com/devzone/cda/epd/p/id/5030. You can also use the integrated windows dll to get your picture.
    Hope it helps.
    Mike

  • One thing I miss is being able to have different "vibrates' for different events.

    One thing I miss is being able to have different "vibrates' for different events. My BB 9700 allowed me to set short/medium/long lengths and one/two/three vibrates. It would be great to get these back on the BB Z10 again.

    All BB needs to do is offer the same notification functionality they had in OS 7.1 (I say 7.1 as they gave you control over the LED colour as well which was great), and it would be perfect.  Notifications on every other platform pail in comparison to what my 9900 could do (and unfortunately the Z10 is included in that list).
    I know it is a new OS but it isn't likey they don't know what they need to offer.
    Hopefully it comes sooner than later as this is one of those 'key' BlackBerry experiences which has been lost as part of the 'upgraded' OS.
    BB-past: 9000>9700>9800>9780>9810>9900>Z10>Q5

  • Different LOV for different rows

    Hi,
    Imagine a tabular report with a number of rows, and a select list for each row populated based on data in that row.
    I've seen a solution for this in a few threads, but I've tried to replicate it in 4.2.1.00.08 with no success
    Select list filter in a tabular form problem
    Tabular form - Different LOV for different rows
    my query includes this as a column
    APEX_UTIL.SAVEKEY_NUM(duration) durationwith another column defined as "Select List (query based on LOV)" using
    select apex_util.keyval_num d,  apex_util.keyval_num r from dualand while the duration varies, the LOV is always stagnant.
    This occurs in both classic & updateable reports (tabular forms).
    I was skeptical that it would work anyway, since I'm sure the query is resolved/bound before rendering each LOV - but that's just assuming background process logic.
    Is the only alternative solutions to use APEX_ITEM.SELECT_LIST_FROM_QUERY() ?
    Scott

    Ahh, I had only tried that on my classic report example. It only seems to have that effect on the tabular form.
    Makes me hesitant to use it with that kind of behaviour.
    When comparing normal tabular form, one set to generic, and another changed back - I saw no differences in the metadata that I would think have some form of impact on rendering behaviour
    APEX_APPLICATION_PAGE_RPT
    APEX_APPLICATION_PAGE_REGIONS -- customization/timeout_cache_after changed, component_signature had trailing 0
    APEX_APPLICATION_PAGE_RPT_COLS -- lost tabular form attributes, region had lost selector column, in fact I'm having trouble bringing it back to a point where it actually saves data.
    Scott

  • Different layouts for different pages

    hi all,
    i have created a form in which there are 5 output pages but the print preview shows only the first page out of 5.i want to go to the next page.plz help how would i do that.and  i want different layouts for different pages.
    thnks n regards,
    mukesh.

    Hi Mukesh,
    Read these lines which has been given in help.sap.com and also go through the link given below.
    Main Window on Several Draft Pages :
    if you want the pages on which a table with items is printed to have different layouts. Height and position of the main window may differ on the different pages, but the width must remain the same throughout.
    [Main Window|http://help.sap.com/saphelp_nw70/helpdata/en/b1/243fdabeee11d4b633006094192fe3/content.htm]
    Regards,
    Sravanthi

  • How to  use data function using characterstics variable for calculation on

    how to  use data function using characterstics variable for calculation on  attribute as key figure

    Hi Gayatri
    Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
    In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
    This essentially means, IF A = B THEN C ELSE D
    The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
    IF PART_NUMBER < 'SDK00' THEN pay_amount
    ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
    ELSE pay_amount + 100
    This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
    DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
    In English this can be read as follows:
    IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
    Best wishes
    Michael

Maybe you are looking for

  • Changing a document class to an imported class

    Hello everybody! My following document class is working fine. But, when I want to import it instead of using as a document class, it reports an error "1067: Implicit coercion of a value of type Class to an unrelated type flash.display:DisplayObject."

  • Showing image instead of flash for mobiles?

    I am just wondering if it is possible to show an image instead of flash content for mobiles? I want to allow the adobe sniffer to do its thing when it is people using pc and mac browsers and direct them to the plug in page to download the flash playe

  • How can i delete messages on iMessage and have them STAY GONE?

    How can I delete messages from my iPhone and have them STAY GONE and not have them show up on my computer or iPad? Same thing, how can I delete from any of these and have them NOT show up on the other devices? If I delete on one, it stays on the othe

  • Help please...U2 Ipod  wont play when selected

    my u2 ipod wont play certain sonds, its not on shuffle and i click certain songsand i can see it going past the one i want on its own and it starts playing a totally different one, Ex: i selected Back Then and it played Bang Out help i need help my i

  • Same songs synching each time despite no changes?

    Each time I sync my iPhone I see between 11 to 15 songs being synched. However, my songs/playlists haven't changed. To reproduce the bug I do the following: 1. Dock the iPhone, synch it. 2. Select "eject". 3. Repeat step 1. Has anyone else noticed th