Date comparision not working in BI-Publisher in one scenario.

Hi,
Iam using sqlquery as a datamodel for BI-Publisher report. I have a requirement that the input parameters startdate and endate are Date types. When the user enters startdate and enddate and clicks on view, the report should show data which falls in between those dates.
Here is the sample query i used.
select * from
table1
where begintime >= :p_StartDate and begintime <=:p_EndDate
Here begintime is a timestamp and p_StartDate and p_EndDate are just dates. So when comparing begintime with p_StartDate/p_EndDate, i guess its taking default time from that date and because of that the comparision is failing in 1 case. i.e, In the above query, though the comparision operator is >= or <= , ultimately > or < is getting effective. So to acheive the actual result, I need to give one day more for start and end dates.
However I found a way to acheive this without adding extra day to both the dates. Here it is :
select * from table1 where
( begintime >= to_timestamp(to_char(:p_StartDate) || '00 00 00', 'DD Mon YYYY HH24 MI SS')) and
( begintime <= to_timestamp(to_char(:p_EndDate) || '23 59 59', 'DD Mon YYYY HH24 MI SS'))
But the above is working in sqleditor like jdeveloper database navigator. But not working in BI-Publisher.
BI-Publisher is throwing error saying
"ORA-01830: date format picture ends before converting entire input string"
Please help as to how to go about this problem or any alternative solution.
Thanks & Regards,
-Vijay-

Hi,
I think it will be fine to trunc the begin time since :p_StartDate and p_EndDate are just dates without time stamp
i.e:
select * from
table1
where trunc(begintime) >= :p_StartDate and trunc(begintime) <=:p_EndDate;
any problem with this.Please share the thought.
Best Regards,
mahi

Similar Messages

  • Date format not working in XML Publisher

    Hi,
    We have applied a date format while formatting the report layout using the Template.
    The same is not getting reflected.
    The output is as follows : 5/1/2006 0:0:0
    i.e date with time stamp.
    We require DD-Mon-RRRR format.
    The same has been tried using the Text Form Field Options.
    When applying the same for Number it works . But in case of Date it does not.
    Can anybody who has worked on the same, let us know the appropriate way to do the same.
    Thanks,
    Angelica.

    XMLP does not recognized the field as date. The only format recognized as date is
    YYYY-MM-DDThh:mm:ss+HH:MM
    So, either make the data model to return dates in the above format, and then apply date formatting in XMLP, or do the job on the data model side and return the string in the desired final format (which, again, then will be string, not date for the XMLP)

  • Scheduling is not working in BI Publisher

    Hi all,
    I am trying to schedule the report on BI publisher it's giving the following error:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS:no appropriate service handler found
    The Connection descriptor used by the client was: localhost:1521:xe (I am using oracle database 10g and obiee 10.1.3.2).
    I have followed the instructions provided in the link "Exploring Advanced Features of Oracle Business Intelligence Publisher"
    Created mail server as instructed in the link ...
    Problems are:
    Unable to connect incoming and outgoing mail servers. I have used my machine host name i.e user as both incoming and outgoing server (u.ser.com)
    also Scheduled jobs are not working in BI publisher.
    Please let me know the solution for the above problem.
    regards
    chandra kanth.

    gurus,
    pls answer the above one, as i am unable to proceed further.
    regards
    chandra kanth.

  • Dashboard link is not working from BI Publisher

    Dashboard link is not working from BI Publisher. Please let me know How to fix this problem.

    Please somebody guide me.
    Dashboard link is working fine from the Apps Server Machine. But the link is not working from other machines. Do I need to setup machine.domain:<port_number> any where.
    Thanks,
    Vara

  • Javascript is not working in the published file

    Hi ,
    I using the javascript in the captivate 5.5 to generate the text from variable in the textbox. It is working when I press the F12 button, But it is not working in the Published file.
    I called the function in the button and I written the script in the slide.
    Please let us know how to proceed..
    Thanks
    Sathish BC

    This is the Script I used in the captivate 5.5 and I called the text using variable in the text box.
    var objCP = document.Captivate;
    function valText()
    var a  = objCP.cpEIGetValue('A');
    var b  = objCP.cpEIGetValue('B');
    if (b>=5)
    objCP.cpEISetValue('B',0);
    GetAryVal(b);
    objCP.cpEISetValue('rdcmndGotoFrameAndResume', objCP.cpEIGetValue('currSlide'));
    function GetAryVal(e)
    var a1  = objCP.cpEIGetValue('Txt');
    var b1 = a1.split("#");
    var c1 = b1[e-1].split("$");
    objCP.cpEISetValue('C', c1[0]);
    objCP.cpEISetValue('D', c1[1]);
    valText();

  • DOCUMENT SETTING that ALLOW FUTURE POSTING DATE does not work in PL34

    Hi Expert,
    I am now using SAP B1 2005B (7.40.252) sp:00 pl:34 and realised that the ALLOW Future Posting Date was not working. 
    I still can remember while I was using pl:11 at B1 2005A, there is no such problem and wish to know when can the bug fix up? in which sp/pl?
    Wish to hear goods news ASAP .
    Thank you.
    Joan.

    Basically can you please clarrify your requirement as to what you want to change ..what I understand you would need to change the code for ABAP - RFEBBE00
    Value Date code in the above abap
            IF PAR_VALD = 'X'.
              MOVE C2-VALDT TO HLP_VALDT.  "  VALUE DATE
             write hlp_valdt to umsatz-budat dd/mm/yy.
            ELSE.
              MOVE C8-BALDT TO HLP_BALDT.
              MOVE HLP_BALDT TO HLP_VALDT.
            write hlp_valdt to umsatz-budat dd/mm/yy.
            ENDIF.
               MOVE HLP_VALDT(2) TO UMSATZ-BUDAT.
               MOVE HLP_VALDT2(2) TO UMSATZ-BUDAT3.
               MOVE HLP_VALDT4(2) TO UMSATZ-BUDAT6.
    Regards
    Anurag
    Message was edited by: Anurag Bankley

  • The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    Hi there,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    Additionally, you may want to try completely disabling and re-enabling restrictions.
    -Griff W.

  • The Open URL or File function is not working when I publish as a exe?

    The Open URL or File function is not working when I publish as a exe.  I have tried putting the exe in the same location as the files with no luck.  How do I get the buttons to function properly with a exe file.

    Have you set the Publish folder as a trusted location in Flash Global Security?
    If not, please read this post:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    It may explain your issue.

  • Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Are you in an area where there is no coverage?
    You can try a reset, hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    If that doesn't help, then yOu'll need to contact Sprint again.

  • Comments Not Working on Website - published to non-.mac server

    Hi there. I've read on a few non-apple sites of users having trouble with Comments and some other functions of their websites, built in iWeb, not working when they publish to a non-.mac server. I've built my website in iWeb, published via CyberDuck to a BlueHost server -- but now users can not post comments on my blog.
    Has anyone found a way to fix this issue??
    It seems incredibly pointless to even now have my own domain. I'm super close to giving up on iWeb all together because of this ridiculous issue.
    Thanks in advance.
    www.kellerowski.com

    Unfortunately, blog comments are a MobileMe only feature along with the hit counter etc.
    You have to publish to MobileMe if you want these features.
    There are workarounds however. If you want to continue to use an iWeb blog, then you can use a third party comments feature. Take a look here http://www.intensedebate.com. It is free to set up on the site and all you then do is copy and paste the code into an html snippet on the page you want comments to appear in whatever format you want them.
    Your other option is to ditch iWeb and if it is just a blog you want, use something like http://www.wordpress.com. This is free and you don't need a domain name and the blog is published on WordPress servers.
    Your other option for a blog is http://www.posterous.com.
    The iWeb blog system is not that good, so you might look into changing if a blog is what you want rather than a website.

  • HT1976 my cellular data is not working , how do i fix it

    my cellular data is not working
    when i turn it on it doesnt show
    but ym wirless network works
    i need help.
    thanks

    My cellular data stopped working when i update my iphone 5c to ios7.1 any help please

  • My touch screen on my iPhone is not working correctly. I touch one part of the screen and another part responds. Is the there any way to solve this problem?

    My touch screen screen is not working properly.  I touch one App or icon and an different App/icon opens.  It is an ultra sensitive touch screen, any idea on how to solve this issue?

    Yes!  Stop using the charger!  My husband noticed it was worse when plugged in. One apple guy told me "restore" ... I did all that and it did not help. After I stopped using the charger, it stopped messing up. I used my husband's charger and all is well. 
    Later, an apple employee told me to bring in the charger for a trade in, because they had a recall on some of them.
    I haven't traded it yet, but I plan on it.
    Good luck!  Let me know!

  • My wireless keyboard and mouse do not work on my All-In-One computer?

    Q.: My wireless keyboard and mouse do not work on my All-In-One computer?
    A.: If your wireless keyboard and mouse do not work even after changing the batteries, please try re-syncing them by following these steps.
    1. Make sure the computer is on, plug in the USB receiver. Push the button on the USB receiver until it flashes blue.
    2. While the receiver is still flashing, press the red connect button on the keyboard (Make sure the batteries are installed). The USB receiver should stop flashing after pressing the button on the keyboard. It may take up to 8 seconds to sync.
    3. Repeat the same process for the mouse. Push the button on the USB receiver, then press the connect button on the mouse (Make sure the mouse is on).
    Note: This applies to all MSI All-In-One computers that include the ES500W wireless keyboard and SW130 mouse.

    "This machine has an added 4 USB ports, could this be causing a problem?
    It definitely could be the source of the problem. Perhaps the PCI card was bumped loose during shipping?
    Have you tried removing the card? That's where I would start.
    Keep us posted.

  • ITunes download is extremely slow or not working, am I the only one experiencing this, iTunes download is extremely slow or not working, am I the only one experiencing this

    iTunes download is extremely slow or not working, am I the only one experiencing this, iTunes download is extremely slow or not working, am I the only one experiencing this?

    I do not have a solution, just the same complaint.  ***!  !    I just used the iTunes store 2 weeks ago and now, after reviewing everything they asked for including ID/Pass/ Account Info etc.  I can't even get into the store.  I have tried asking at the Mac store and it has all been to no avail.  I was perfectly happy with iTunes before all of this ********... seriously what is the issue with iTunes?  They ask me to upload a new version (with no system specs anywhere that I can find on the page)  and then say it can't utilized because of system inadequacy.  It is exceedingly frustrating.

  • My new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    my new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    Try an SMC Reset. (System Management Controller)
    Shutdown>unplug from power for ten minutes>press and hold in the power button for ten seconds>startup again.
    Also try a PRAM Reset. (Parameter RAM)
    Shutdown. At the bootup chime, hold down CMD-Option-P-R together, wait for two more chimes, total three, then let go of all keys to finish booting,
    If this doesn't do it, run the Hardware Test in Extended
    http://support.apple.com/kb/ht1509

Maybe you are looking for