Date Range for One Week

Hai All,
Is there any possibilities to define a value set that can define date from and to between a week (say monday to saturday) ?
I have a defined a valueset to select all the date which is on Monday. My plan is to add 7 days to the selected date using the flex option to another value set.
But I am not able to accomplish it. I am geting the following error.ORA-01861 : Literal does not format string. is this correct or else is there any other option that i can use..
Regards

Have a look at [Note: 376034.1 - How to Handle New Date Formats in SQL*Plus and PL/SQL Procedures?|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=376034.1], it may be helpful.

Similar Messages

  • Date Range for a fixed fiscal year

    Dear All,
    How to write a code to fix the date range for 12months only. Example like mine selection should be between one fiscal year only.
    I have check that the date is of one year range like 1.05.2008 to 30.04.2009
    month bt 05 & 04 for one particular year. how to write the code.

    hi,
    check for the year like this.
      if v_date1(4) EQ v_date2(4).
      endif.
    this will check for the first 4 characters of the date string which is the year.
    regards,
    Peter

  • How to keep the field value in the forms for one week

    I have an application that when the user logs on to it , it shows all the documents that are in the current dept.
    the form has the following fields:
    document no
    sent date
    assigned to
    dep_LOV
    and a check box
    if a user clicks the check box and assignes the document to another dept by cliking the LOv then the assigned to field should be populated with the new value and the sent date should be today's date(sysdate). the requirment is that once the user assignes the documnet to certain depts (for example sales dept) the assigned to field and the sent date should show up in the form for one week and the user should be able to see that data in the form the next time she /he logs onto the application. the one week time is to make sure the documcnt has reached the assigned dept. after one week from today's date the updated assigned_to field and the document no should not display on the form. During the one week if the user logs on to the form again that particular document and the assigned to and sent to fields shoould be grayed out and shhould not be updatable. I will greatly appreciate any suggetion as of what to do to solve this problem. it is urgent. Pleade help

    -> so you are saying that I should have a block level post_query trigger and put the where clause in it?
    No. Post-query trigger runs AFTER the query has been executed, and it runs once for each row fetched. It is for other purposes, NOT for setting a where clause.
    -> Plus i want to be able to gray out the field once populated with the sales dept.I have come up with the following code:
    Your Set_item_instance_property is almost correct. And THAT line would go into the Post-Query trigger. This is what you might use:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> Set_item_instance_property ('docs.assigned_to',:system.trigger_record, Enabled,Property_False);</font></pre>
    Please watch your use of underscore, dashes, commas and parentheses: _ - , ( )
    The way to set your default where clause would be the following, and you should do it in the key-exeqry trigger, or someplace similar:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> set_block_property('DOCS', default_where,
    'NVL(sent_date,sysdate) >= sysdate-7' );
    Go_block('DOCS');
    Execute_Query;</font></pre>
    I used the NVL function so your select will show rows where sent_date is null OR sent_date has a value that is within 7 days prior to the current date.
    What is the field :docs.assigned_to used for? If you want to include ONLY rows that are assigned to a particular person, then your where clause might be:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> 'assigned_to = :ctrl.assigned_to and NVL(sent_date,sysdate) >= sysdate-7' </font></pre>
    and you should have a control block with the assigned_to field in it, where the user can enter a value before querying the DOCS block.

  • Date range for key date in hierarchy

    Dear Friends,
    Is there a work around for single key date restriction for time dependent hierarchy.Bcos i can only select one key date in teh report for my hierarchy so that it will take that hierarchy which falls in this date and display the result accordingly.
    But is there a way to select the date range for key date so that more than one hierarchy can be used to display my report accrding to the time range.
    Say,i have 4 hierarchies (time dependent) like v1,v2,v3,v4 and v5 for jan 08,feb 08,mar 08,apr 08 & may 08 respectively.
    In my report,i want to display the result for the time interval say mar to May.
    So my report should diplay the result according to the 3 different hierarchies for the time period i.e.v3,v4&v5.
    How do i acheive this.
    Thanks.
    ragu

    Hi
    I think we may do with the Char with text with replecement path.
    take time char as Calmonth and set the offet value as -1 and -2 and design the report and use the hierarchies in that query.
    Am not surt it willwork but better to try with this.

  • EasyDMS - search by date range for characteristics of type date

    Hi Folks,
    I have a characteristic of type date in the additional data of a DMS document. If I enter the date (for example validity date) as 08/31/2009 and search using cv04n and give a date range for the characteristic (i.e. 01/01/2009 - 12/31/2009), the search result will bring up the document.
    However, I cannot do this from the EasyDMS find function. I need to specify an exact date. This is not very helpful for user who need to find documents with a validity date between 01/01/2009 - 12/31/2009 for example. Is there a way users can search for date range in EasyDMS find function?
    Thanks,
    Lashan

    To search a date range with EasyDMS Client you have to set the registry key
    \HKEY_CURRENT_USER\Software\SAP\EasyDms\Generel\DateSearchPick to Value 0
    Then you can use the input field like in SAP-Gui. (01.01.2009-31.01.2009)
    If you set the value to 1 or the key is not defined you can only search for one specified date.
    If you don't find this key on your PC create it as dword.
    Maybe you must restart you PC for takeing effect.
    Hope this will help you.
    Regards Wolfgang

  • Find date range for sick leaves

    Hi,
    Ive been trying to get readable output from HR system.
    I have added the source data into Data Model, since i had to read the data with power query. Now i have pivot table like this:
    date        workdaY?    user
    6.3.2014    Sickleave    user1
    1.2.2014    Sickleave    user2
    2.2.2014    Sickleave    user2
    5.3.2014    Sickleave    user4
    5.3.2014    Sickleave    user1
    5.5.2014    Sickleave    user1
    16.9.2014  Sickleave    user3
    7.3.2014    Sickleave    user1
    6.5.2014    Sickleave    user1
    6.3.2014    Sickleave    user4
    Is there any possible way to get some kind of find function to sort and combine the data like this:
    user1        Sickleave    5.3-7.3.2014
    user1        Sickleave    5.5-6.5.2014
    user2        Sickleave    1.2-2.2.2014
    user3        Sickleave    16.9-16.9.2014
    user4        Sickleave    5.3-6.3.2014

    One way to do this is with a VBA macro.  The following should get you started.
    As you can see looking at the macro, the original data is assumed to be on a worksheet named HRData and starts in A1.
    The results are placed on the same worksheet but starting at cell G1.  You could easily write the results to another worksheet.
    The original data is copied to a temporary worksheet for sorting (and the temporary sheet is subsequently deleted).
    A Class Module is added so we can use a User Defined Object which has the properties of the user name, start date and end date of the vacation period.
    We then cycle through the sorted data, and create a Sickleave object and add it to a collection.  If the "previous" row has the same user, and the date is one more than the previous End Date, we add one to the previous end date; if not, we
    create a new object and start another sickleave period.
    This is the data input:
    and  here are the results:
    To enter this Macro (Sub), <alt-F11> opens the Visual Basic Editor.
    Ensure your project is highlighted in the Project Explorer window.
    First, from the top menu, select Insert/Class Module.  Highlight the new class module in the Project Explorer; click F4, and rename it to cSickLeave
    Then paste the code below into that class module:
    =======================================
    Option Explicit
    Private pUser As String
    Private pStartDt As Date
    Private pEndDt As Date
    Public Property Get User() As String
    User = pUser
    End Property
    Public Property Let User(Value As String)
    pUser = Value
    End Property
    Public Property Get StartDt() As Date
    StartDt = pStartDt
    End Property
    Public Property Let StartDt(Value As Date)
    pStartDt = Value
    End Property
    Public Property Get EndDt() As Date
    EndDt = pEndDt
    End Property
    Public Property Let EndDt(Value As Date)
    pEndDt = Value
    End Property
    Then, from the top menu, select Insert/Module and
    paste the code below into the regular module window that opens.
    To use this Macro (Sub), <alt-F8> opens the macro dialog box. Select the macro by name, and <RUN>.
    ====================================
    Option Explicit
    Option Compare Text
    Sub SickLeave()
    Dim cSL As cSickLeave, colSL As Collection
    Dim wsSrc As Worksheet, wsRes As Worksheet
    Dim wsTemp As Worksheet, rTemp As Range
    Dim vSrc As Variant, rSrc As Range
    Dim vRes() As Variant, rRes As Range
    Dim I As Long
    'set Worksheets
    Set wsSrc = Worksheets("HRData")
    With wsSrc
    Set rSrc = .Range("A1", .Cells(.Rows.Count, "C").End(xlUp))
    End With
    Set wsRes = Worksheets("HRData")
    Set rRes = wsRes.Range("G1") 'upper left cell of results
    'Sort the HRdata on a Temp sheet
    Worksheets.Add
    Set wsTemp = ActiveSheet
    Set rTemp = wsTemp.Range("A1")
    rSrc.Copy rTemp
    Set rTemp = rTemp.CurrentRegion
    With rTemp
    .Sort key1:=.Columns(3), order1:=xlAscending, _
    key2:=.Columns(1), order2:=xlAscending, _
    Header:=xlYes, MatchCase:=False
    End With
    vSrc = rTemp.Value
    With Application
    .ScreenUpdating = False
    .DisplayAlerts = False
    wsTemp.Delete
    .DisplayAlerts = True
    End With
    'create collection for results
    Set colSL = New Collection
    For I = 2 To UBound(vSrc)
    If vSrc(I, 2) = "Sickleave" Then
    If I = 2 Then
    Set cSL = New cSickLeave
    With cSL
    .User = vSrc(I, 3)
    .StartDt = vSrc(I, 1)
    .EndDt = vSrc(I, 1)
    colSL.Add cSL
    End With
    ElseIf vSrc(I, 3) = colSL(colSL.Count).User And _
    (vSrc(I, 1) - 1) = colSL(colSL.Count).EndDt Then
    With colSL(colSL.Count)
    .EndDt = .EndDt + 1
    End With
    Else
    Set cSL = New cSickLeave
    With cSL
    .User = vSrc(I, 3)
    .StartDt = vSrc(I, 1)
    .EndDt = vSrc(I, 1)
    colSL.Add cSL
    End With
    End If
    End If
    Next I
    ReDim vRes(0 To colSL.Count, 1 To 3)
    vRes(0, 1) = "User"
    vRes(0, 2) = "workdaY?"
    vRes(0, 3) = "Date Range"
    For I = 1 To colSL.Count
    With colSL(I)
    vRes(I, 1) = .User
    vRes(I, 2) = "Sickleave"
    vRes(I, 3) = Format(.StartDt, "d.m\-") & _
    Format(.EndDt, "d.m.yyyy")
    End With
    Next I
    Set rRes = rRes.Resize(UBound(vRes) + 1, UBound(vRes, 2))
    With rRes
    .EntireColumn.Clear
    .Value = vRes
    .EntireColumn.AutoFit
    .Rows(1).HorizontalAlignment = xlCenter
    End With
    Application.ScreenUpdating = True
    End Sub
    Ron

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How can I set a date range for a Date/Time Field in LiveCycle ES2?

    I need to set a specific date range for a form set up in LiveCycle ES2. Cannot see where i allows me to do that without a code entered.

    Hi,
    You can't set a start and end date for the date/time field, the best you can do is validate the range after the user has selected it.
    An alternate is to make your own date / time field, like this sample http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2013/05/an-alternative-date-p icker-for.html
    Regards
    Bruce

  • Move cloud licence to another computer for one week

    I've come away from the office with my laptop but forgotten the charger so I can't use Creative cloud on it. Is there any way I could run it from my home desktop for one week only?

    Hi,
    Yes, you can.
    On you home computer, download and install the application from creative.adobe.com website.
    On launch, it will prompt that it is already activated to 2 machines. Select the option to deactivate from already activated machines and use it on home computer.
    After a week, use the same workflow to get the application working on laptop.
    - Manish

  • Tecra S3: battery fully discharged if it's off for one week

    I´ve got a Tecra S3:
    Intel® Centrino? Mobiltechnologie Intel® Pentium® M Prozessor 760
    XP Pro/ 1024 DDR2/ 80GB/ 15.0" TFT/ DVD-Super-Multi(DL)/ Wi-Fi
    Mostly I work with ac power. Only sometimes I need the battery.
    But when I use the battery, discharge it fully.
    After that the battery is charged over night.
    When my S3 is off for one week,
    my battery is fully discharged and the S3 needs ac power.
    Is that normal?
    Why is my battery fully discharged
    if the S3 is off for only one week.

    Hi
    The fact is that battery looses the energy also if the notebook is disabled.
    Im not sure about the time and how long should it takes.
    The same thing happens on my old Satellite A50.
    I thing it depends from the battery performance and how old the battery is.

  • My iPad is trying to install an update of Pages for one week and doens't get it. Every time it begins a message " it was not possible do update now" show's up. What should I do?

    My iPad is trying to install an update of Pages for one week and doens't get it. Every time it begins a message " it was not possible do update now" shows up. What should I do? I can't lauch Pages till now.

    The best discussion of resolving the issues is found in the user tip: https://discussions.apple.com/docs/DOC-6562

  • How to keep logs for one week through sm36 jobs creation

    Hi
       As i define a job through sm36. Its logs removed next day , but its logs removed through sm37 through next days. But some of the job logs does not removed for even one week. can somebody be help me to sort it out . I want to keep job logs for one week then where i have to define it. If some job is defined which remove all these logs then where we have to define that these logs will remain for one week , because some of the job logs will remain there for one week.
    Thanks in advance
    Regards
    Ravi Kant Arya
    +91 9999530385

    Hello,
    please check the variants of the report used in the job SAP_REORG_JOBS. With the report RSBTCDEL2 you can specify very detailed how long logs should be kept for which jobs (e.g. depending on the job name or job class).
    Regards
    Christian

  • Delete the data content for one InfoObject in processchain

    Hi Guys,
    We have requirement to delete the data content for one InfoObject in processchain(daily) .We made this infoObject as InfoProvider.
    Could you please tell me is there any function module or abap program or any other alternative to do this and which can be added to processchain.
    We made this infoObject as InfoProvider.
    Thanks
    Prasanna

    just use the RSPC-maintenance screen and look for "deletion of requests from PSA" or something like that.
    Add it in the Processchain, run it...c'est tout.

  • Is this possible to already reserve 2 TB of space on a data drive for one database

    Is this possible to already reserve 2 TB of space on a data drive for one database.
    Please suggest how to do this.
    Best regards,
    Vishal

    You can either change the current filesize of current files in your database or add new file(s) whose current size is 2TB by using the ALTER DATABASE command.  If you don't have instant file initialization, adding 2TB to data files can take a long time. 
    If you are adding 2TB to log files that can take a long time whether you have instant file initialization or not.  For info on instant file initialization see
    http://technet.microsoft.com/en-us/library/ms175935%28v=sql.105%29.aspx
    and
    http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx
    In addition, there are several good links in the comments to Tibor's blog entry, especially the links to Paul Randal's blog.
    Tom

  • Getting Blue Screen --I've Only Had the HP Mini 311 for One Week

    Do you have an HP Mini 311? I have had my HP Netbook for one week and I keep receiving the blue screen.  I installed Adobe Lightroom yesterday and I received it after the install.
    Is this common with HP Mini 311s? 
    Is it worth returning to Verizon or can I get it fixed by contacting HP support?

    Try removing your sim and insert it again and make sure that its clean as well as the sim tray. insert it securely locked in place. See if it works, quick fix. If not try to use a different sim or try your sim to a different h/s. For you to be able to isolate if its with your sim or iPhone. Tricky Tips!

Maybe you are looking for

  • Web dynpro for abap how to create a customize search help in alv column

       hi:       Web dynpro for abap how to create a customize search help in alv column and put search help value into alv column?       Are there specific examples ?       thanks!!

  • Since iOS 7.1 any new music that is loaded is only 2:42 long.

    I have the full length versions on my computer and none of my older music was affected, but anything I have tried to add since the update will not go passed 2:42.(This happens once I tranfer to my iPhone 5). I have entire albums that every song is th

  • Dual monitors won't work independently

    Using win 7 ATI Raedon 4200 card. My second monitor displays only the primary desktop back ground. Followed all setup correctly please help

  • Webservice in ECC 6.0

    Hi, We are upgrading system from ECC 5.0 to ECC 6.0. All of our webservices were created in new system with SOAManager configuration. When the consumer systsem 'Cold fusion' is trying to consume one of the webservice the XML response is different whe

  • Weblogic 7 CharConversionException

    Hi! I'm having trouble with scandinavian characters used as input data for a webservice running on weblogic 7. Whenever the input data for my webservice contains international characters (ex. äö). Weblogic will give me the following Exception: java.i