Showing data 6 months greater than date parameter??

I have a request to build a set of worksheets that accept an intial parameter - Start Date in the format MMM YYYY.
When a user enters JAN 2009 - I want the worksheet to show data from Jan, Feb, Mar, Apr, May and June (2009).
Can anyone point me in the right direction please.
Regards
Mark

Have you tested that logic where you cross over between years? Say your start period is October 09. So that month value is 10. Add 6 to that value and you get 16. Which would not be right. You would want to wrap around to have the month be 4. But since 4 is less than 10, that would be a problem. That is why you would need to convert to a full date (like Rod is showing) and then add the 6 months to that date. If you test this kind of situation with your logic and it works fine, then you can ignore this posting. But your logic does look like it would have a problem with this situation, is what I am thinking.
John Dickey

Similar Messages

  • GR posting date always greater than PO document date.

    Dear SAP Gurus,
    Am working on below requirement in a support project..
    Need to ensure GR posting date always greater than in PO creation date. Only current month is open for GR posting and at present as a standard system allows to post GR any date in the current open period.
    Is there any way, we can control the same via messages without implementing any exits or badis.
    Appreciate immediate response.
    Regards,
    GM

    there is no std sap for this
    you can use user exit to ful fill ur requirement
    in that u can write a code where is u can check all PO dated in GR must be eq to or less than GR posting and document date
    hope this helps

  • Maintaine error message if posting date is greater than Sch del date in PO

    I have maintained a delivery schedule in a PO for a material
    Say PO qty 100
    Del Schedule
    10.04.09  - 60
    20.04.09 - 40
    While GRN, for 60 qty, if posting date is greater than 10.04.09, system needs to throw error.
    I want to do it for selected materials only.
    Is there a way to do this.
    Regards,
    Rakesh

    Thanx for reply
    If I use OMCQ message , it will be applicable for all GRNs and I want for a particular set of materials.
    Can one please suggest User exits / BADi for the same. I have checkd BADIs but those are based upon MSEG and EKBE table.. and i dont have any material doc no before posting the document.
    requiement is to check the delivery sch date and posting date befor posting the document is posted.
    Any suggestions welcomed.
    Reagrds,
    rakesh

  • Doc Date is Greater than Posting Date in Migo

    Hi ,
    Document  Date shouldn't be greater than Posting date in MIGO .How can I restrict it ??
    Biswajit

    Hi
    We can restrict through Define Attributes of system messages
    Settings for SYSTEM MESSAGES  - Doc Date is Greater than Posting Date in Migo in that  in that Message Type we can make the Warning Message to Error Message
    regards,
    senthil.

  • Date is greater than current time plus 24 hours

    Hi,
    may I know how to pull data from a table where date is greater than current time (+24 hours)... my date field is in the following format 15-MAR-2013 20:07:00
    I want to do something like this
    select * from table_A where date_field > (sys_date_time) +24h
    as an example, when I run a query @ 4 PM on March 26, I want to pull data that has date > 4 PM March 27
    Thanks

    >
    may I know how to pull data from a table where date is greater than current time (+24 hours)... my date field is in the following format 15-MAR-2013 20:07:00
    >
    No - a DATE column does NOT have a value in a format like that. The value is stored in an internal binary format. The format you posted might be your NLS_DATE_FORMAT or just a format you provided to display that date value.
    >
    I want to do something like this
    select * from table_A where date_field > (sys_date_time) +24h
    as an example, when I run a query @ 4 PM on March 26, I want to pull data that has date > 4 PM March 27
    >
    As others have said to add 24 hours to whatever value SYSDATE has at the time the query is executed just use 'SYSDATE + 1'.
    But there are at least two caveats:
    1. You can't really run a query '@4 PM'. You don't have ANY control over exactly WHEN the query will begin execution. The only way to control the date used is if you provide it yourself as part of the query.
    2. Your 'date_field > SYSDATE + 1' query will NOT see inserted/updated data that has not been committed. So a similar query later may return a different result set even if it appears to cover the same time period. In other words you can't reliably use a DATE column like that to pull sequential sets/batchs of data unless there is no DML occuring on the data that might affect the results.

  • Trying to do date field greater than a specified date in condition editor

    Hi All,
    I am trying to build the XML predicate in the expression editor to check that the posting date sent is greater than a specified date to determine the reciever. I can get it to validate posting date is = to specified date, but when I change the = to > it fails to properly determine the receiver, when I send a valid document.
    Below is the expression build
    (/p1:ServiceAcknowledgementConfirmation/ServiceAcknowledgement[CreationDateTime>'2007-02-03'] EX )
    has anyone done this type of check. I have it set as a date type for the expression.
    Regards,
    Chris

    Hey all,
    I tried >= 2007-02-04 and sent in that exact date. It failed. I removed > so that it is just = 2007-02-04 and it was successful. So, is >= an allowable operator?
    Thanks,
    Chris

  • From Date is greater than End Date of a BBP document.

    Hi,
    There is a BBP document created in the system which has From Date (BBP Start Date) greater than End BBP Date.
    Have any one come across this type of issue.
    Can any one tell what can be the reasons for this to happen?
    Also in this case there are no entries for the items in this BBP document in database table DFKKMOP.
    Thanks in advance,
    Hrushikesh

    Hi Hrushikesh,
    Could you please check the details at billing document level if any of them is having the bad data.
    Also, please check the data passed and the importing data for the below FM's in debug mode.
    1. START_TIME_DETERMINE
    2. END_TIME_DETERMINE
    I am not sure, but have heard about the similar issue in one of the project, but it was related with invoicing not specific to BBP.
    Let me know the data received for the above FM's, also, will check if I can get any specific details for the same.
    Regards,
    Rajesh Popat

  • Detection method - date modified-greater than issue

    Hi,
    My detection method for a file doesn't seem to be working properly. I have an application advertised to run a .cmd file and replace files in an already existing folder. So I am using the date modified of the files I am replacing. When I check the status
    of the deployment it states that the machines are already compliant even though the date modified on the file is less than the new file I am trying to deploy.
    Example:
    C:\ProgramData\Microsoft\Network\Connections\Cm\Test\test.cms (date modified 9/14/2014)
    My detection rule:
    C:\ProgramData\Microsoft\Network\Connections\Cm\Test\test.cms (Date Modified must be greater than 01.01.2015 00:00:00)
    And it is stating that it is compliant even though the detection rule should be returning false?

    Date format is seems to be correct, basically it depend on your local date format.
    Are you sure that file is exist on the client at expected location. (If file does not exist and existential rule is not added in CI then CI will return to Compliant) If not then make sure that:
    you have added existential rule in addition with value rule.
    otherwise make sure that you have selected this checkbox "Report noncompliance if this setting instance is not found."
    This posting is provided "AS IS", provides no warranties, and confers no rights. -Praveen S.

  • Greater than date

    I am attempting to pull from table using Oracle 10g. But I want to restrict my query to records with UPDATE_DATE > 8/31/2007. UPDATE_Date is a date field.
    The table name is PS_PROJECT. I can usually make queries work but I've never constructed one using a date before. Is it possible?
    I found to-date('1998/05/31','yyyy/mm/dd') but can't make it work either.
    Help please.

    to_date is the right function to construct a date. Also,
    update_date>to_date('1998/05/31','yyyy/mm/dd') should work for your requirement, if not, post please the output wiht the error message.
    If time part of your date values is irrelevant for you, you can use as well DATE literals like
    update_date > date '1998-05-31'Best regards
    Maxim

  • Graphs in the dashboard not showing values which greater than 1000 !!!

    Hello Champs,
    I have build a dashbaord using SAP BO Dashboards 4.1 SP 1.
    Architrecture is as below:
    Bex Query --> SAP Netweaver Connection --> Dashbaord --> Published on BI Portal.
    So here there is no BOE in picture.
    The problem I am facing is that, in my graphs any value which greater than or equal to 1000 is not showing up....!!!
    Strange indeed.
    In the picture one can see that at the runtime, the Tablular view is showing data, but the Graph on the left isnt, as all the values are greater than 1000. Any values lower than 1000 is appearing,
    So, does anyone have faced any such problem in such a scenario.
    Is there any setting which has to be done to publish the Dashboard on BI Portal, which I may have missed.
    Any helpfull suggestion is much apppreciated.
    Thanks.
    Pradeep Gupta.

    Hi,
    Are you calculating the value in thousands? Whats the value? Currency etc. Did you check in the text tab on what value it is?
    Arun

  • IPhoto batch change is choosing date modified rather than date created

    Hello all,
    I have a large number of MOV files which I have imported into iPhoto. I want to batch change them all, renaming them to the footage date and time.
    iPhoto has chosen the date last modified rather than date created to rename them to. When in Finder and open Inspector, it does have the correct date created.
    I can adjust date and time and tick the box to modify the original file for each one but given the quantity I have to do, I would rather the batch change pick up on the date creted. 
    Any ideas on how I can get iPhoto to do this correctly?
    I have spent some time searching online and haven't had any luck so far.
    I am using iPhoto 11 v.9.4.3 if it makes a difference.
    Thanks all
    Andrew

    iPhoto can only change the date on image files which have EXIF fields.  Movie files don't have EXIF fields so you'll need to do the job outside of iPhoto with an application that can change the file created date like  A Better Finder Attributes 5: Mac OS X Batch Date Changer for EXIF Photos, Files and Folders
    or
    File Date Changer: Change file creation and modification dates and times for Mac OS X files
    OT

  • Cell calculations showing header text rather than data

    This has to be simple, but I am stumped.
    I have added header text to a SS.  Now when I attempt to add a calculation to a cell in the SS Numbers is showing the text in the calculation rather than the cell data or cell location.
    How do I stop this?  Just want to see something like this:  =F13-(E13*4)
    but I get this
    =On Hand Now test line-(Monthly Average test line*Cal. 212 West Jackson Street)
    Numbers does put the the correct numeric result in the proper cell but I don't want to see the above.
    Tim

    select the menu item "Numbers > Preferences" then uncheck the box "Use header cell names as references":

  • How can I set the java Date not greater than the day inputed?

    When I would input the date, I don't want it to be after this day because it would violate some business logic in my program. I am allowed to input date latter than this day like yesterday, last week etc. but not after this day.....Can anyone give me a concrete example or logic on how to do this?THANKS!

    tr3k wrote:
    Can you explain it by code?I could, but I won't. I pointed you in the right direction. Now it's up to you to make the effort. Give it your best shot and post a more detailed question if you have problems.
    http://www.javaworld.com/jw-12-2000/jw-1229-dates.html
    http://www.javaalmanac.com/egs/java.text/FormatDate.html
    http://www.javaalmanac.com/egs/java.text/ParseDate.html
    http://java.sun.com/javase/6/docs/api/java/util/Date.html
    http://java.sun.com/javase/6/docs/api/java/util/Calendar.html
    http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html
    http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html

  • Cant work out greater than date .. help plz

    Hi,
    Can any one tell me why this TRUNC (SYSDATE)+ (rmt.sys_time_mon - TO_DATE ('01-JAN-1900', 'DD-MON-YYYY')) is not working.
    If i run it seperately it gives me the appropriate value. This is a date value for example the date i have is 30/12/1899 1:00:00 AM.
    Please help..
    SELECT DPN.PAS_NAME,
         PPC.PROCESS_DES_CODE,
         MIN(decode(FCD.SOURCE_FILE_NAME, NULL, 'N', 'Y')),
         MIN(PCD.END_PROCESS_CONTROL_TSTP)
    FROM DWCNTL_PAS_FILES_CODE PFC LEFT OUTER JOIN
    DWCNTL_IFACE_FILE_CONTROL FCD ON SUBSTR(FCD.SOURCE_FILE_NAME, 1,7) = PFC.FILE_NAME AND TRUNC(FCD.CREATE_TSTP) =trunc(sysdate),
    DWCNTL_PAS_NAME DPN JOIN
    DWCNTL_PAS_PROCESS_CODE PPC ON PPC.PAS_ID = DPN.PAS_ID LEFT OUTER JOIN
    DWCNTL_PROCESS_CONTROL PCD ON PCD.PROCESS_CODE = PPC.PROCESS_CODE AND trunc(PCD.END_PROCESS_CONTROL_TSTP) > TRUNC (SYSDATE)+ (rmt.sys_time_mon - TO_DATE ('01-JAN-1900', 'DD-MON-YYYY')) JOIN
    SLA SLA ON SLA.PAS_ID = DPN.PAS_ID,
    PROCESS_START PST ,
    REPORT_COMMENTS RPT,
    EDWAPPS_TIME RMT
    WHERE PFC.FILE_NAME LIKE 'U2%'
    AND DPN.PAS_NAME LIKE 'U2'
    AND PFC.PROCESS_CODE = PPC.PROCESS_CODE
    AND PPC.PROCESS_DES_CODE LIKE 'CONTRACT'
    GROUP BY PPC.PROCESS_DES_CODE, DPN.PAS_NAME,PCD.END_PROCESS_CONTROL_TSTP

    SELECT dpn.pas_name,
      ppc.process_des_code,
      MIN(decode(fcd.source_file_name, NULL, 'N', 'Y')),
      MIN(pcd.end_process_control_tstp)
    FROM dwcntl_pas_files_code pfc
         LEFT OUTER JOIN dwcntl_iface_file_control fcd
              ON SUBSTR(fcd.source_file_name, 1, 7) = pfc.file_name
              AND TRUNC(fcd.create_tstp) = TRUNC(sysdate),
    dwcntl_pas_name dpn
    JOIN dwcntl_pas_process_code ppc
    ON ppc.pas_id = dpn.pas_id
    LEFT OUTER JOIN dwcntl_process_control pcd
    ON pcd.process_code = ppc.process_code
    AND TRUNC(pcd.end_process_control_tstp) >
    TRUNC(sysdate) + (rmt.sys_time_mon-to_date('01-JAN-1900','DD-MON-YYYY'))
         JOIN sla sla ON sla.pas_id = dpn.pas_id,
         process_start pst,
         report_comments rpt,
         edwapps_time rmt
    WHERE pfc.file_name LIKE 'U2%'
    AND dpn.pas_name LIKE 'U2'
    AND pfc.process_code = ppc.process_code
    AND ppc.process_des_code LIKE 'CONTRACT'
    GROUP BY ppc.process_des_code,
      dpn.pas_name,
      pcd.end_process_control_tstpsomething wrong with your query, you are trying to left join dwcntl_pas_process_code ppc with dwcntl_process_control pcd that why oracle give error 904 because no rmt alias in that join.

  • Date Field Greater than today?

    Ok, i've been trying to figure out how to compare a date to today.  Basically i have a field which is a Valid To field.  I want to know if this is still valid by comparing it to todays date.
    The idea is fairly simple.  However, it seems that comparing dates is beyond the normal query capabilities for some reason?
    So i did some digging around, looking at what other people have tried.
    I ended up creating a customer exit variable with the following code:
    WHEN 'ZVAR_WHATEVERJUSTWORK'.
          CLEAR l_s_range.
          L_S_RANGE-SIGN    = 'I'.
          L_S_RANGE-OPT     = 'GE'.
          L_S_RANGE-LOW     = SY-DATUM.
          append L_S_RANGE to E_T_RANGE.
    When i set up the variable in Bex Query Designer, i call it ZVAR_WHATEVERJUSTWORK (technical).
    I set it to be a customer exit, however in the Details tab, i'm not sure what the variable represents.  i've tried single value (query short dumps) and i've tried Interval (query short dumps).  When i'm testing it, i'm restricting a DAT object to my variable.
    Quite frankly, i'm amazed something so simple is as complex to set up?  I honestly believe i'm making some mistake somewhere and theres really an easy way to go. 
    So i'm asking the powers that exist in the SDN forums.
    Any ideas?  what am i doing wrong? Please help
    If i've not provided enough info, please ask.

    Bryan,
    you can do it this way....
    In your query you can have
    Valid To Date|Formula Variable 1 | Formula Variable 2 | Formula 3
    Formula Variable 1 - replacement path Valid To Date - dimension should be Time
    Formula Variable 2 - Customer Exit - Sy Datum
    write the exit as
    WHEN 'ZVAR_WHATEVERJUSTWORK'.
          CLEAR l_s_range.
          L_S_RANGE-SIGN    = 'I'.
          L_S_RANGE-OPT     = 'EQ'.
          L_S_RANGE-LOW     = SY-DATUM.
          append L_S_RANGE to E_T_RANGE.
    Formula 3 - difference between 1 and 2
    here in the query you can put a condition on Formula 3 to get the desired result.
    Arun

Maybe you are looking for

  • Vendor login

    I have tried logining in to vendor portal, but it says account is disabled. There is no contact information, or information of any kind to find out why and what to do. I have tried creating a new account, but it says company name already exists.  Is

  • Selecting images for "Save metadata to file"

    To improve performance we're being "encouraged" to turn off "Automatically write changes". Which means I now have many images scattered throughout the catalog that have metadata changes of some sort on a regular basis. I agree that with the automatic

  • How do I delete this account?

    This account was made outside of my consent. For privacy reason it must deleted. Where do I go, or who do I need to contact to do so?

  • BDC Related to FB01

    Hi, This is regarding an issue related to Posting of a Document using FB01.A BDC has been created to Post the document based on the Tax A1 and the Calculation is happening pretty smmothly. Now when we use the the Tax code as A3 the posting does not t

  • Cannot see the video behind the title even though I select the option to do so, what am I missing?

    Cannot see the video behind the title even though I select the option to do so, what am I missing?