Date value in parameter

I have datadase coulumn req_date and format is dd/mm/yyyy
In the report I have parameter as start_date and End_date
the query in the query builder looks like this
I have set a default static value as 01-01-1990 this works fine
(and unchecked the "Restrict list to predetemined value" BOX)
but if I pu for ex 21-01-1990 it errors out also 21/01/1990 errors out.
     I tried all teh values. Please help
SELECT "EMPLOYEES"."FIRST_NAME"|| ' '|| "EMPLOYEES"."LAST_NAME" "Employee Name" ,
"INFO"."REQ_DATE" "Request Date"
          FROM
"INFO" "INFO",
     "EMPLOYEES" "EMPLOYEES",
     WHERE
          "INFOS"."EMPLOYEE_ID" = "EMPLOYEES"."EMPLOYEE_ID"(+) AND
"INFO"."REQ_DATE" >= TO_DATE (:STARTDATE, 'DD-MM-YYYY') AND
"INFO"."REQ_DATE" <= TO_DATE (:ENDDATE, 'DD-MM-YYYY')
retuns
Aaaaa ddddd 08/21/2000
dddd eeeee 09/21/2004

you should use trunc() for your date:
"INFO"."REQ_DATE" Between (:STARTDATE) AND (:ENDDATE)
you can do the date format at report builder.

Similar Messages

  • How to change the value of data supplier host parameter in PI7.1

    Hi Frnds,
    I want to change the data supplier host parameter to Hostname,when i checked in SLD Administration its pointing to local host,so i wnat to change it.
    What is the procedure to change the value to host?? i am working on PI7.1 EHP1.
    THANKS,
    Raj

    thanks

  • Oracle how to assign a date value in a parameter declaration

    How can I assign a date value to a parameter declaration in SQL?
    Here's my existing script.
    CURRENT:
    select distinct summary as "iCash EAD Error Summary",count(*)
    from AAA.BKS_ICASH_EAD_ERRORS
    where creation_date > to_date('5/26/12 8:50','mm/dd/yy HH24:MI')
    group by summary
    I'd like to assign the date I'm searching for into a parameter and use the parameter in my query.
    GOAL:
    DECLARE
    pCreateDate DATE;
    exec :pCreateDate := '5/26/12 8:50';
    select distinct summary as "iCash EAD Error Summary",count(*)
    from AAA.BKS_ICASH_EAD_ERRORS
    where creation_date > to_date(:pCreateDate,'mm/dd/yy HH24:MI')
    group by summary

    Hi,
    In SQL*Plus, you can do this:
    VARIABLE     pcreatdate     VARCHAR2 (20)
    EXEC           :pcreatedate := '5/26/12 8:50';
    SELECT    summary          AS "iCash EAD Error Summary"
    ,       COUNT (*)          AS "Total Count"
    FROM        aaa.bks_icash_ead_errors
    WHERE       creation_date  > TO_DATE (:pcreatedate, 'MM/DD/RRRR HH24:MI')
    GROUP BY  summary
    ;"GROUP BY summary" means you'll get one output row for each distinct value of summary. There's no need to SELECT DISTINCT since the GROUP BY is already making sure the rows are distinct.
    There are no DATE bind variables in SQL*Plus, so you have to use a VARCHAR2.
    If you do something similar in PL/SQL, then you can use a DATE variable. Make sure you don't call TO_DATE on something that's already a DATE.
    Edited by: Frank Kulash on Jun 26, 2012 2:01 PM

  • Dynamic Date Value for Date Range Parameter - Scheduling in BI

    Hi,
    I am New to BO Enterprise XI R3. I want to schedule the Crystal report which takes Date Range as parameter. Is any option available to calculate From Date automatically based on Current Date based on the range required?
    Currently, Parameter option accepts parameters and enterprise process the report for configured parameters. In this case, report always prints only for configured date range eventhough report generated after one month. I am expecting report has to print data for date range (eg. 1 weeks, 4 days, or any range) based on system current date.
    Thanks in Advance,
    Venkateswaran.P

    I'm am in the same situation.  I need to be able to have the date parameter dynamically change based on the current day's date when I schedule a report.  However, because this parameter comes from a Stored Procedure from the database, it cannot be modified in the Report Designer (as far as I know).  I've tried to set a default for it to use "currentdate" but it doesn't seem to take.  Anyone know if this can be accomplished in the scheduler?
    Thanks
    -Tom

  • Determine/read the value of parameter rdisp/max_wprun_time within ABAP

    Hi,
    I need to avoid program breaks caused by exceeding run time longer than defined in parameter rdisp/max_wprun_time.
    I will check the time since start of report in the critcal loop to bring the current data changes to a controlled end before getting a program break. I won't put a constant to the report, I will have a dynamical routine to avoid changes of report if the value of parameter rdisp/max_wprun_time will be changed.
    But how can I get the value of this parameter within my ABAP report? Is there a table where this value has been stored? Is there an existing function module or a method to read the value?
    Thank's a lot in advance!
    Georg

    The runtime   parameter (GET RUN TIME ) can be used to dynamically get the program run time
    DATA T TYPE I.
    GET RUN TIME FIELD T.
    WRITE: / 'Runtime', T.
    or
    U probably can store the start date and time in TVARV with some variable ( line concatenate program name + START Date + Time)
    and then use
    SD_DATETIME_DIFFERENCE
    or
    SD_CALC_DURATION_FROM_DATETIME
    Regards,
    Mithun Shetty

  • In Drill through report pass hyperlink value as parameter to another report using ssrs 2008 R2

    Hi All,
    I have one drill through SSRS report in which if I click one hyperlink in the summmary report it should be passed as parameter for detail report, like this....
    Summary:
    AccountType
    A1
    A2
    If I click A1 then that should be passed as parameter to detail report and display A1 data in detail report
    If I click A2 then that should be passed as parameter to detail report and display A2 data in detail report.
    Please give me some ideas or expression code to achieve this in using SSRS 2008R2. Its very urgent.
    Thanks,
    RH
    sql

    Thanks the folowing is my source data for the parameter I am including to the drill through
    SELECT DISTINCT
    case
    when EA_STATUS in ('E4', 'U4', 'P5', '02', '03', '04','B2','B3','B4','12')
    then CAST('Project' AS VARCHAR(15))
    else CAST('Non-Project' AS VARCHAR(15))
    end as EA_PROJECT_GROUP_DESC
    FROM TEAMS.FMPROD_V_EA
    As you can see it has only 2 values.So how do you suggest I wirte the expression to include in the report.
    The name of the parameter I will be using is EAProjectGroup.but below is the error I am getting trying to run the report
    rsMissingFieldInDataSet] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. This field is missing from the returned result set from the data source.
    [rsErrorReadingDataSetField] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. The data extension returned an error during reading the field. There is no data for the field at position 45.
    Preview complete -- 0 errors, 72 warnings
    what does the position 45 mean?

  • ADF BC: calling SDO : Value for parameter 'findCriteria' cannot be null

    We have created a service interface from an application module. That service interface contains views that have view criteria. We have included those criteria in our services.
    From my consuming application, i added a data control from webservices by providing the WSDL of the service interface. So far so good...
    When i drop the result of a function that is bound to the view criteria to my page, i have to enter four parameters:
    fincCriteria of the Object type
    areaCode of the String type, this is a parameter we added in the view criteria using a bind variable.
    languageCode of the String type, also a custom parameter of the view criteria
    findControl of the Object type
    In my bindings i can provide the value of areaCode and languaeCode but i don't have a clue what to do with findCriteria and findControl. I left them empty and then i get followign message from the server:
    <SOAPProvider><setParameters> Value for parameter 'findCriteria' cannot be null
    <SOAPProvider><setParameters> Value for parameter 'findControl' cannot be null
    <WebServiceConnectionMessages><debugExecuteFailure> Failed to execute a SAAJ interaction.

    Found some documentation on how to use the service interface from business components and as it appears you can create entity objects based upon the wsdl from the service interface.
    Does it mean that i can only use the service interface that way and that when i have for example a dot net application, it can not use that service interface?

  • Data values on Bar Chart in a BI Publisher report (11g)

    I have a bar chart that I created via the layout editor in BI Publisher 11g, and I'm displaying the data values on the chart. That part works great. However, we're noticing that the chart adds zeros to the end of the data values depending on the length of the number being passed to the chart. My data item is a number that is 5 bytes in total, with 2 decimals. If the data value is *10.10*, the data displayed on the bar chart shows *10.10*. But when my data value is *1.10*, the data displayed on the bar chart is *1.100*. And if my data value is *.10*, the bar chart displays *0.1000*. The bar chart adds zeros to the end as the number of characters to the left of the decimal decreases.
    I don't see a way to make it not do that. Has anyone else run into this, and been able to change it?

    Basically what are you trying to do :
    Attaching Mutiple Data Definition to a XML Program and deciding which one to call ased on parameter.Sorry you can not do that one Data DEfinition per Report.
    ut there is one way of doing that.
    Create multiple data defintion( mutiple programs) and then a master program something like
    IF Master Program Param1 = 'X'
    call BI Program 1
    ELSIF Master Program Param1 = 'Y'
    call I Program 2....
    End IF;

  • Setting Date value in stored procedure via jdbc

    I have a stored procedure where one of the parameters is a date value. I am trying to invoke this through jdbc with a CallableStatement. I am creating a java.sql.Date object and passing that to setDate() on the CallableStatement. When I execute the statement, Oracle always uses 00:00 for the time (hh:mm). Why can't Oracle interpret a java.sql.Date and get both the date and time values? Do I need to somehow call the Oracle function to_date(stringvalue, "yyyy-mm-dd hh:mm") to create an Oracle date value and if so how would I execute that from java through jdbc? My guess is that I can't. Any thoughts would be appreciated.

    ok this is the package header:
    create or replace package get_outvalue_test is
    type rec is record (time archive.time%type,
    value archive%type);
    type value_tab is table of rec index by binary_integer;
    procedure get_value(p_returnvalue IN OUT value_tab);
    end;
    package body :
    create or replace package body get_outvalue_test is
    procedure get_value(p_returnvalue IN OUT value_tab)
    is
    ii number;
    cursor valselect is
    select time,value from archive where u_id=5666
    and time=:block.date_item ; -- this is the return date from LOV
    begin
    open valselect;
    ii:=1
    loop
    fetch valselect into
    p_returnvalue(ii).time;
    p_returnvalue(ii).value;
    exite when valselect %notfound;
    ii:=ii+1;
    end loop;
    end;
    end;
    this is the error when i compile the package body :
    MIssing IN or OUT parameter at index
    i hope itis cleare and easy .

  • Handling Empty date value in the stored procedure call

    Hi,
    i am executing a stored procedure having date element, getting below the error for the empty date value.
    can any solve this issue?
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'WD_WRAP_PROCESS_APPMT_REQ_PR' (structure 'STATEMENT'): java.text.ParseException: Unparseable date: ""
    Thank You,
    Madhav

    Madhav,
    Can you check if you are sending blank values to the date parameter?
    raj

  • Problems inserting date values in Oracle 10g

    Hi All,
    I'm having SERIOUS problems trying to insert a simple date value in my oracle.
    I did this one million times before in xMII 11.5, but now it appears that doesn't work anymore!
    Here are some info:
    Data Server Config:
    Date Prefix: TO_DATE('
    Date_Sufix: ', 'MM/DD/YYYY HH24:MI:SS')
    Internal Date Format: yyyy-MM-dd HH:mm:ss
    In my Query Template:
    Date and Time Format: MM/dd/yyyy HH:mm:ss
    In my Transaction
    Parameter: datefromxmlformat(datenow, "MM/dd/yyyy HH:mm:ss")
    I also tried change the parameter to datenow, no success.
    I tried to change the Query Template format, no success.
    Finally, I tried to change my Date prefix & sufix, no success too.
    I really don't know what else I can do. I would appreciate some help.
    PS: I'm using xMII 12.0.1 with ojdbc14.jar
    Thanks in advance.
    Pedro Sena

    Pedro,
    The Data Server config for InternalDateFormat should be:  MM/dd/yyyy HH:mm:ss
    This is because it is used in conjunction with the DatePrefix and DateSuffix whenever you use the DateColumn or  the [SD] and [ED] tokens in a query template.
    If you are inserting a date field with an arbitrary parameter (not a date token like above) then you need to use the TO_DATE wrapper pieces around your date field string.
    The DateFormat in the query template controls the format of the StartDate and EndDate buttons in the applet toolbar if using an iChart/iSPCChart/iGrid and a time sensitive query, but when you build the string for an insert parameter you must manage the whole format yourself.
    If you really just want datenow and the xMII server time is sufficient for your insert query then you can leverage the Data Server config settings like: INSERT INTO TABLE VALUES([ED)
    This way the default query template time settings will use 'now' for the end date of the query and when the string is sent to Oracle it will actually look like:
    INSERT INTO TABLE VALUES(TO_DATE('10/19/2007 08:41:00', 'MM/DD/YYYY HH24:MI:SS'))
    Regards,
    Jeremy

  • Passing Date as IN parameter

    Hi Gurus,
    I have already searched teh discussion forums but couldn't find any solution.
    I have a SP in which I want to pass an IN parameter as Date datatype.
    While running the SP how to pas Date value as IN param?
    For eg If I need to pass 05-09-2007
    Thanks

    SQL> create or replace function f1(p1 date)
      2  return varchar2 is
      3  begin
      4   return p1||' is '||to_char(p1,'Day');
      5  end;
      6  /
    Function created.
    SQL> exec dbms_output.put_line(f1(sysdate));
    16-OCT-07 is Tuesday
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line(f1(to_date('05-09-2007','dd-mm-yyyy')));
    05-SEP-07 is Wednesday
    PL/SQL procedure successfully completed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Posting date = Value date does not work

    hi,
       this is the problem given by them,
    symptom:
    When the parameter 'Posting date is value date' is active, the posting date of all movements of a bank statement is the bank statement date and not the value date of the individual movements of the bank statement.
    other terms:
    RFEBBE00,CODA,Belgian Bank statement,PAR_VALD,FEBPDO-BEVALD,FEBBEVALD
    Reason & Prerequisites:
    The program converts the belgian bank statement format to the Multicash format.The multicash format uses the bank statement date as the posting date.
    I want to know how the logic is done so that we will get the posting date = value date and in which user exit is it written?
    Plz help me.
    Regards,
    Shalini

    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

  • How to insert date value into oracle?

    hi,
    iam reading date from xml using vb.net and inserting it into oracle table.
    the date value in xml file is in the format of "01012003".
    i want to insert into oracle table.but iam getting an error "ORA-1843: not a valid month".
    how to solve this problem.
    Any suggestions or examples...

    That's not a date. It's just a string. Convert it to a date using,
    DateTime d = DateTime.ParseExact("01022003", "MMddyyyy", null);
    or
    Dim d As DateTime = DateTime.ParseExact("01022003", "MMddyyyy", Nothing)
    and then bind it to a parameter. ODP.NET will take it from there.
    You should never be hard-coding the date literal into your SQL query.
    David

  • How to get the Date value from DB

    Hi All,
    I give one string parameter (25-Jan-07). My database table stored in some dates and values. How i'll get the all date value(25-Jan-07) and the correspong values?
    Thanks!

    SELECT *
    FROM your_table
    WHERE date_column = to_date('25-Jan-07', 'dd-Mon-yy')Why oh why oh why are you using dates with two-digits representing the year? In my opinion, this is bad and wrong. Be explicit; use 4 digits. is your "07" representing 1907? 2007? 2107?

Maybe you are looking for