Need current date embedded in scheduled request parameter

Hi Experts,
Need current date embedded in scheduled request parameter
I have a concurrent program
This is scheduled to run every day.
One of the requests has a parameter that I need to set with the current date (YYYYMMDD), I tried fnd_standard_date, date value sets in the parameter..
I tried using a SQL Statement (select to_char(sysdate, 'YYYYMMDD') from dual), but it appears to only run this when the request if first submitted and not on subsequent resubmissions. So the date never changes.
The box is checked to "Increment date parameters each run" but since this is a date value in a regular parameter, it is not getting incremented.
Any ideas how I can get this value to change every day?
Please help it's very urgent.
With Regards,
Kumar.

Hi,
Please see if the following documents help.
Note: 861953.1 - Request Set Date Parameters Are Not Defaulted As Per Setup
Note: 339849.1 - Unexpected Behavior Using Increment Date Parameter Each Run
Regards,
Hussein

Similar Messages

  • Mdx query to get the last date of every month if the month is current month need current date..

    i have a scenario where i need the data of last date of every month and if the month is current month need current date data...
    is it possible using MDX...

    Hi Shashi,
    According to your description, you want to return the last day for each month except current month, right?
    In MDX, we can use ClosingPeriod function to return the member that is the last sibling among the descendants of a specified member at a specified level, here is a sample query for you reference.
    with member [measures].[a]
    as
    ClosingPeriod ([Date].[Calendar].[Date],[Date].[Calendar].currentmember).name
    select {[measures].[a]} on 0,
    [Date].[Calendar].[Month].members on 1
    from
    [Adventure Works]
    And then use the IIF function to evaluate if the month is current month. Please refer to the links below.
    http://msdn.microsoft.com/en-us/library/ms145584.aspxhttp://msdn.microsoft.com/en-IN/library/ms145994.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Each time have the current date in autmatic scheduling

    Hello,
    I'm scheduling some jobs automatically and I have a question.
    Sometimes I need to enter a date (E.g. To create Dunning Letters). How can I make sure it will for each run take the 'current date' and not the date I enter when I run the request for the first time entering the recurrence?
    Should I just leave the date field blank?
    Regards,
    Stijn

    It will depend on how the code has been written!!
    If you would like to always take current date, then you should leave the date field blank the first time and process should interpret blank date as current date and process the data

  • Need current data and time stamp in Java mapping

    Hi All,
      I am doing the scenario as file to mail. so here i am using java mappings for sending the file in mail attachment.
      I have done my java mappings and its executed successfully. File is going successfully to third party.
      Business wants date and timestamp in subject line.
    Currently i am using mail subject line as EDI File. 
    But business needs the date and time in the subject line after EDI File as EDI File <yyyymmddhhmm>.
    So my requirement here is adding the date and timestamp.
    Can any one suggest how can write java code to acheive.
    Thanks
    Bhaskar
    Thanks,
    Bhaskar

    Hi Bhaskar,
    >   Business wants date and timestamp in subject line.
    1. Add the import statments at beginning
    import java.util.Date;
    import java.text.SimpleDateFormat;
    2. Add these statments to get timestamp and Concatenate the subject line with string currentdate.
    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm");
    String currentdate = sdf.format(new Date());
    subjectline = subjectline.concat(currentdate);
    Regards,
    Sunil Chandra

  • CUIC 9.1.1 Report scheduling issue - getting data only for current date

    Hi,
    CUIC : 9.1.1
    ICM: 9.0.3
    Description:We have CUIC publisher and Subscriber deployed in Cisco UCS C series server. When we schedule a report in Subscriber, we are getting data of current date even we schedule for old dates. Eg. If I schedule a report for yesterday, getting output as today's data. This is applicable for all the historical reports.
    There is no such issue in Publisher.
    Regards,
    Alag

    Try this...
    {TableName.DateField} < DateAdd("d", -2, CurrentDate)
    HTH,
    Jason

  • Current Date in yymmdd format which also a Date

    Hi,
    I need current date in yymmdd format which also a Date not a String.
    Please help,.
    Thanks in advance.
    Murali

    MuraliIBM wrote:
    When i trying to load my date in to some fucntion whcih is accepting date only, then am getting below error. So i need a date representation instead String.
    Cannot convert a value of '100607' from type java.lang.String to DATE at field STARTDATE
    Regards
    MuraliThen read the API docs for SimpleDateFormat (which was suggested in the first reply). When you have the String "100607", then you have a String, not a Date, you use SimpleDateFormat to create a Date using that String as input. Then, you use PreparedStatement and its setDate method, using that Date (or, rather, a java.sqlDate created using getTime from that java.util.Date created by SimpleDateFormat) to execute your sql.

  • Dynamic variant creation, Current date "-NNNN" *(4 digit number)*

    Hi,
    Is there any way of creating "-NNNN (4 digit number)" for dynamic date calculation in variant variables?
    I need to set 4 digit number in the "DLFL to Change Date (Old ver: To Change date)" field but system only allow total 4 digit including +/-.   I'll be using the "Current date +/- ??? days" option to set date dynamically.
    In order to set deletion flag for PM orders older than 6 years, I need "Current date -2190".
    Or is there other way to set it as MONTH when calculating the change date?
    I'm using PM order initial archiving job whose report name is RIARCORV.
    Thanks in advance,
    Alex
    Edited by: Alex Kwon on Jul 16, 2009 2:44 AM
    Edited by: Alex Kwon on Jul 16, 2009 2:45 AM

    Alex,
    I dont think its possible to do the same using the variant functionality. You will have to do some workaround to accomplish the same by either using other fields like Order number.You could also look at enhancing the code implicitly in the RIARCORV program, if you are in ECC6.0 or above versions.
    Regards
    Narasimhan

  • Is there any method to stop rescheduling of the PO Need By date from ATP if there is any holiday specified in shipping calender. The requirement is to update the schedule ship date on Sales Order but the lead time of  Purchase Order should not increase

    We are currently not able to manage schedule ship date proposed by ATP when our warehouse is closed. For example , we would like that ATP doesn't propose any schedule ship date for the first of May , which is a non working day in France. The constraint is that we don't want our purchase need by date to be impacted by the process.
    I tried to closed one day in FR1 calendar and, after testing with order management, it appears that ATP didn't propose the closed day, so that's fine, but, our purchase order lead time was increased of 1 day and this is not what we expected.
    Can you help us to find the right process.
    Thanks

    Hi Sandeep,
    when we try to Rescheduled out the PO and the request is errored out the with the error:-
    Start of log messages from FND_FILE
    reschedule fails
    old date in planner workbench: 19-MAY-11
    new date: 07-JUN-11
    header: 417474
    line: 605652
    po number: 2049031859
    shipment no: 1
    The need by date/promised date in the source instance is not the same as the need by date/promised date in the destination instance.
    In the source instance,
    The need by date is 19-MAY-11, and the promised date is 19-MAY-11
    End of log messages from FND_FILE
    ---------------------------------------------------------------------------

  • Current date parameter in concurrent program is not not taking current date

    Hi All,
    I have scheduled one concurrent request running very day @21:30 ,one of the parameter passed is current date ,which defined as default value at the time of defining concurrent program.Surprisingly its taking next day date as parameter.Can someone help me resolving this issue.
    From where this current date is taken.
    When I am logged in unix as oracle user and executing following query I am getting follwoing results
    SQL> alter session set nls_date_format='MM/DD/YYYY HH24:MI:SS';
    Session altered.
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 07:40:11
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:40:20
    date
    Tue May 25 07:40:35 SAUST 2010
    When I logged in unix as applmgr user:
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 04:41:17
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:41:19
    date
    Tue May 25 07:41:04 SAUST 2010
    Unix level date is correct and sysdate is also correct in both cases.
    But current_date when logged in s applmgr user is wrong,is this reason for the issue.
    If so how can I change it
    Version : 11.5.10.2
    Database : 10.2.0.4
    OS : AIX 5.3
    Thanks in advance

    Hi;
    Please check below and see its helpful:
    Scheduled Request Set Using 'Current Date' In Parameters Will Set Parameters One Day Out [ID 242654.1]
    The parameter Argument 2 (GL DATE) does not select the Current Date when schedule [ID 250431.1]
    Regard
    Helios

  • Getting Rolling Date for a request in scheduled request set

    Hi All,
    I have a request set and autoinvoice runs as a part of this request set , autoinvoice has parameter default Date and when I schedule this request set , I have to fill this parameter (eg:07/07/2006) as this is mandatory parameter. However when I schedule this request set , I find that now reques set runs autoinvoice everyday with default date parameter having same value ie 07/07/2006 even though I have setup request set correctly ie I have supplied current date as default value for this parameter in request set.
    Can anybody tell me how do I get rolling date for a Autoinvoice request which fires as a part of scheduled request set running everyday.

    Hi Robert,
    This is an AOL problem. Please post your query in the AOL forum to get better replies.
    Regards,
    Swapna.

  • OWL with Default Set containting Current Date as query parameter

    Hello Everybody,
    I have a custom BO which mainly consists of a name and a time period (start and end date).
    Now I'd like to create a Default set like
    "Give me all objects with today between start and end date."
    I already tried the following:
    Filling a field using UI-Scripting:
    $data.UIState.Today = $controller.DateTimeUtils.DateNow;
    Copy the field into the search parameter
    executing the query with this search parameter.
    However, I using this approach, I only managed to search for objects matching exactly todays date, but not using greater/lower comparators.
    Furthermore I also searched for a field transformation giving me the current date but did not succeed.
    Does anyone have any ideas how to achieve this or how to get one of the above ideas to work?
    Best regards,
    Ludger

    Hello Ludger,
    That`s what I expected: The fields do not define the interval.
    Therefore you need to define it by yourself via this "less or equal".
    What you can do in the UI Designer at the query definition is to provide an interval
    For the field "CurrentDate" provide
    - SelectOption = "between"
    - Low Value = your start date
    - High Value = your end date
    - Select Option = "include"
    HTH,
        Horst

  • Embedding a "Current Date" field in a pdf document

    To assure people work to the latest authorized version of a procedure, we let them access a protected pdf version on our Intranet. They can print a copy for use, but the copy is valid ONLY for the date printed, which is shown in the footer of each page. The "current date" field is updated when the document is opened by way of a Java script that reads:
    var f = this.getField("Today");
    f.value = util.printd("mm/dd/yyyy", new Date());
    (Obviously, "Today" is the field's name.)
    If a person were to open the same document three days later, that later date would be embedded.
    All this worked well when we were using Acrobat 5 and Reader 5. Now, to keep up with the times, we've upgraded to Acrobat 8 and Reader 8 on many PCs. However, the "current date" field still works for those still using Reader 5 but doesn't work for those using Reader 8.
    What I'm wondering is whether the scripting has changed for Acrobat 8. I can't find anything in the Acrobat support documents for Java scripting, but I may not know what I'm looking at.
    Thanks,
    Jerry Holt
    [email protected]

    The problem has been solved!!!
    The form field, the accompanying script, and most documents' security were set up in Adobe 4.0. However, in Adobe Reader 7 or higher, "no changes" means "no changes," so the form field script was blocked.
    By setting Compatibility to "Acrobat 7.0 or greater," I could choose the "Change Allowed" option: Filling in form fields and signing existing signature fields.
    Then, all I needed to do was to confirm that the JavaScript "Today" was still applied, and the current date was immediately filled in.
    Thanks for the questions and suggestions.

  • Scheduled ship date not taking PO need by date

    1. Please consider following case -
    a. Sales order is created for org UK for item A for 10000 qty 24-Mar-2011 with order request date as 29-Mar-2011.
    a1. There is no on-hand in UK for item A.
    a2. The item lead time for item A, as defined in UK org in item attributes’ Lead times tab, is as following -
    a21. Pre-processing time - 4 days
    a22. Processing time - 20 days
    a23. Post-Processing time - 1 day
    a3. A standard purchase order for item A is created for 15000 quantity on 25-Mar-2011 with Need by date as 10-Apr-2011.
    a4. The ATP rule that is attached to the item, is having Purchase orders checked, under supply sources.
    Observation : Before purchase order creation, the scheduled ship date on SO was 28-Apr-2011 (item lead time of 25 days).
    Then the PO is created as in point a3 and ASCP plan was run. The sales order line for item A is unscheduled and Rescheduled, the scheduled ship date becomes 25-Apr-2011.
    Questions :
    1.     Why did the scheduled ship date change to 25-Apr-2011?
    2.     What all things it is taking into consideration?
    3.     As per our understanding, the scheduled ship date should have been changed to PO Need by date. But this didn’t happen. Is our understanding flawed?

    Hi Sandeep,
    when we try to Rescheduled out the PO and the request is errored out the with the error:-
    Start of log messages from FND_FILE
    reschedule fails
    old date in planner workbench: 19-MAY-11
    new date: 07-JUN-11
    header: 417474
    line: 605652
    po number: 2049031859
    shipment no: 1
    The need by date/promised date in the source instance is not the same as the need by date/promised date in the destination instance.
    In the source instance,
    The need by date is 19-MAY-11, and the promised date is 19-MAY-11
    End of log messages from FND_FILE
    ---------------------------------------------------------------------------

  • How to set Default value of a parameter  to display Current Date

    I need to display the Default value for my parameter 'As of Date' which is of datatype Date as Current Date[DD-MON-YYYY].
    How can I do This??

    As Tamir-L pointed out, there is no direct way to do this, but there is a workaround:
    First, create a new parameter, but do not base it on any item. Give the parameter a default value of "Today".
    Then, create a condition like:
       (    :myParam = 'Today'
        AND <date_item> = sysdate)
    OR (    <date_item> = to_date(:myParam, 'DD-MON-YYYY'))Where :myParam is the parameter you created, and <date_item> is the item you are comparing against.
    To make things a bit more bulletproof, you could create a calculation that returns sysdate when the parameter is 'Today', a date when the to_date is successful, and NULL when the to_date fails, and use the calculation in the condition.

  • Default Date parameter to current date

    Using Crystal Reports 2008 version 12.1.0.892
    I have a Stored Procedure for the report that among others requires a StartDate and EndDate parameter.
    It appears that I can not easily/simply set the default for this parameters to the current date.
    In the properties dialog for the parameter the Default value appears to be just a text field.  I can type in a value, but I can not make it always have the current date selected.
    This report also has an End Date that we would like to have default to the current date(no time) plus one day.
    We can do this using Reporting services, but I can not find a way to do this as easily in crystal reports. What am I missing?
    Thanks

    Well here's a little quick tip for reports have to be scheduled and require date parameters. I've used this on lots of reports...
    For the bulk of our scheduled reports, the user typically wants to see data for either the current month or the previous month. For example management may want a production report scheduled to run at the end of every week for the current month so that they can track month to date progress. They will also want the same report run on the 1st of the month for the previous month so that they have a final monthly total.
    Here's how I do it with just one report...
    1) Create a text parameter called {?DateRange}
    2) Give it 2 static LOVs... Current Month & Previous Month
    3) Build out the SQL Command (I use a lot of them... Most of our vendors aren't nutty about clients adding SPs to their DBs)
    4) Drop in the following block of code at the top of the SQL Command...
    DECLARE @DateRange CHAR(15)
    DECLARE @BEG DateTime, @END DateTime
    SET @DateRange = '{?DateRange}';
    IF @DateRange = 'Current Month' SET @BEG = DATEADD(mm, DATEDIFF(mm,0,GETDATE()),0)
                                                   ELSE SET @BEG = DATEADD(mm, DATEDIFF(mm,0,GETDATE())-1,0);
    IF @DateRange = 'Current Month' SET @END = DATEADD(ms,-5,DATEADD(mm, DATEDIFF(mm,0,GETDATE())+1, 0))
                                                   ELSE SET @END = DATEADD(ms,-5,DATEADD(mm, DATEDIFF(mm,0,GETDATE()), 0));
    5) Modify the WHERE clause of the SQL to pull dates between @BEG AND @END
    6) Add the DateRange parameter in the Parameter List of the Command.
    At this point the user has just 2 date range options... Current Month & Previous Month.
    From there you can upload to the CR Server and schedule it.
    Jason

Maybe you are looking for