Adding months to date

I need to add 6 months to current date. Also, may be days or years also. Can anyone let me know is there any function module which can be used to achieve the functionality.

Hi jimmy,
here is the code for FM "MONTH_PLUS_DETERMINE".
========================================================
FUNCTION MONTH_PLUS_DETERMINE.
*"Lokale Schnittstelle:
*"       IMPORTING
*"             MONTHS
*"             OLDDATE LIKE SY-DATUM
*"       EXPORTING
*"             NEWDATE LIKE SY-DATUM
  DATA:       BEGIN OF DAT,
              JJJJ(4) ,
              MM(2) ,
              TT(2) ,
              END OF DAT,
              BEGIN OF HDAT,
              JJJJ(4) ,
              MM(2) ,
              TT(2) ,
              END OF HDAT,
              NEWMM TYPE P,
              DIFFJJJJ TYPE P.
  WRITE:  OLDDATE+0(4) TO DAT-JJJJ,
          OLDDATE+4(2) TO  DAT-MM,
          OLDDATE+6(2) TO  DAT-TT.
  DIFFJJJJ =   ( DAT-MM + MONTHS - 1 ) DIV 12.
  NEWMM    =   ( DAT-MM + MONTHS - 1 ) MOD 12 + 1.
  DAT-JJJJ = DAT-JJJJ +  DIFFJJJJ.
  IF NEWMM < 10.
    WRITE '0' TO  DAT-MM+0(1).
    WRITE NEWMM TO  DAT-MM+1(1).
  ELSE.
    WRITE NEWMM TO  DAT-MM.
  ENDIF.
  IF DAT-TT > '28'.
    HDAT-TT = '01'.
    NEWMM   = ( DAT-MM  )  MOD 12 + 1.
    HDAT-JJJJ = DAT-JJJJ + ( (  DAT-MM ) DIV 12 ).
    IF NEWMM < 10.
      WRITE '0' TO HDAT-MM+0(1).
      WRITE NEWMM TO HDAT-MM+1(1).
    ELSE.
      WRITE NEWMM TO HDAT-MM.
    ENDIF.
    IF DAT-TT = '31'.
      NEWDATE = HDAT.
      NEWDATE = NEWDATE - 1.
    ELSE.
      IF DAT-MM = '02'.
        NEWDATE = HDAT.
        NEWDATE = NEWDATE - 1.
      ELSE.
        NEWDATE = DAT.
      ENDIF.
    ENDIF.
  ELSE.
    NEWDATE = DAT.
  ENDIF.
ENDFUNCTION.
=========================================================

Similar Messages

  • With SPD adding 1 month to date not working?

    I have a calculated column [1stDayofMth] =DATE(YEAR([Start Date]),MONTH([Start Date]),1) which appears to be working fine.
    My SPD WF uses the [1stDayofMth] column and does a few calculations to find the next 2 months 1st days
    [Month 1 Resume Date] = [1stDayofMth] + "1 Months" 
    [Month 2 Resume Date] = [1stDayofMth] + "2 Months"
    These dates are used to pause the workflow. The problem when I log the results to history these calculations are not the 1st day of the next month on some list items?
    eg (text from workflow history)
    1stDayofMth="11/1/2014 12:00:00 AM"
    Month 1 Resume Date="11/30/2014 11:00:00 PM"  |  Month 2 Resume Date="12/31/2014 11:00:00 PM"  |  Month 3 Resume Date="1/4/2015 11:00:00 PM"
    The [1stDayofMth] column is set to "Date Only" and is showing as only the date, my logging was set to show the String and I can see the time is included as well. Is this the cause?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    As a band-aid I inserted a 2nd add for 2 hours to the date which will move it from the 30th at 11:00pm to the 1st at 1:00am. 
    I haven't done a lot of digging but it looks like the issue of adding 1 month to the 1stDayofMonth is only occurring on months with 30 days?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Is there a completely reliable method of adding months to a date in ABAP?

    Does anyone know of a completely reliable and consistent ABAP function module that can be used to add months to a date.  One that will always get the correct last day of the month when requested to add 1 month to the last day of the previous month.  Something as reliable as using the ADD_MONTHS function in Oracle SQL.  I don't want to use any of the specific 'get last day of the month' function modules since the start date may not necessarily be the last day of a month.
    In the past I have trusted the following.  Now they have betrayed me. 
    MONTHS_PLUS_DETERMINE  
    Correctly provides 28.02.09 when adding 1 months to 31.01.09.
    Incorrectly gives me 28.03.09 instead of 31.03.09 when adding 1 month to 28.02.09
    RP_CALC_DATE_IN_INTERVAL and RP_CALC_DATE_IN_INTERVAL_SG
    Both incorrectly give me 01.03.09 when asked to add 1 month to 31.01.09.
    Both incorrectly give me 28.03.09 when asked to add 1 month to 28.02.09.
    We're on ECC6.

    >
    Suhas Saha wrote:
    > Hello Christine,
    >
    > Did you check the method ADD_MONTHS_TO_DATE of the class CL_HRPAD_DATE_COMPUTATIONS ?
    >
    >
    > *     Adds No. of Months to Date
    >       TRY.
    >           CALL METHOD cl_hrpad_date_computations=>add_months_to_date
    >             EXPORTING
    >               start_date = sy-datum
    >               months     = l_v_month
    >             RECEIVING
    >               date       = l_v_date.
    >         CATCH cx_hrpa_violated_postcondition .
    >       ENDTRY.
    >
    >
    > I dont have any idea how ADD_MONTHS function in Oracle SQL works, though ):
    >
    > Hope this helps.
    >
    > BR,
    > Suhas
    That also sometimes works.....but adding 1 month to 28.02.2009 gives me 28.03.2009 and adding 1 month to 29.02.2008 gives me 29.03.2008.
    This is how to use ADD_MONTHS in Oracle SQL - a bit naughty since you have to use native SQL to do it but it ALWAYS seems to work.  I pass a date, month number and + or - into the function module.
    * For use with class based exception CX_SY_OPEN_SQL_DB.
    DATA:
      ex_check_os       TYPE REF TO cx_sy_open_sql_db,
      ex_check_rs       TYPE REF TO cx_sy_native_sql_error,
      ex_result(200)    TYPE C,
      ex_text           TYPE STRING,
      lv_new_date       TYPE datum,
      lv_old_date       TYPE datum,
      lv_months         TYPE I.
      lv_old_date = iv_date.
      lv_months = iv_months.
      IF iv_sign = '-'.
         lv_months = lv_months * -1.
      ENDIF.
      TRY.
        EXEC SQL.
          SELECT to_char(add_months(to_date(:lv_old_date,'YYYYMMDD'),:lv_months),'YYYYMMDD')
          INTO :lv_new_date
          FROM sys.dual a
        ENDEXEC.
        CATCH cx_sy_native_sql_error INTO ex_check_rs.
        ex_text = ex_check_rs->get_text( ).
        ev_error_message = ex_text.
        ev_return = 4.
      ENDTRY.
      ev_return = 0.
      ev_date = lv_new_date.

  • HR -- adding year with date and month

    Hi all,
    Can any one let me know what is the logic for adding Year with date and month in HR.
    ex: 01.10.2008   from this date it should be 2 years.
    thnks
    joshi.

    Hi
    u can add days to the date directly ....
    if u have the date V_DATE of type sy-datum u can add directly number of days to get disired date ..
    v_date1 =  v_date + 365 .
    hope it helps ..........

  • Month calculations: DATE() vs EDATE()

    In a recent topic (Challenge to get a date correctly), I mentioned using the DATE function to calculate a date that is (for example) one month later than a given one. Specifically, if cell A1 contains the given date, then I suggested using this formula for a date one month later:
    =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
    Yvan Koenig suggested instead using the simpler EDATE formula, here equivalent to:
    EDATE(A1,1)
    There is, as it turns out, more than simplicity in favor of Yvan's approach. While one might expect the two formulas always to produce the same results, they do not! This is easily seen by constructing the following three column table with a column header:
    1. In cell A2, enter the last day of the first month of this year (January 31, 2008 in the U.S. system, for example). In the cell below it, enter the last day of the second month of this year (Feburary 29, 2008, for example).
    2. Next, select both cells & use the circular fill handle, drawing down to fill the column with a year or so of last-day-of month values.
    3. Select cell B1 (a header cell) & enter in the formula bar & press return:
    =DATE(YEAR(A),MONTH(A)+1,DAY(A))
    4. Likewise, in cell C1 enter:
    =EDATE(A,1)
    Note that the B & C column values are sometimes the same, sometimes not. The same results occur if the "1" in both formulas is replaced with another number of months.
    What seems to be happening is the 'MONTH(A)+n' expression uses the number of days in the month of the "A" cell value as the basis for the 'n months later' calculation, which is not the convention usually used for such things as billing cycles. The EDATE formula follows the normal convention, & is thus the preferred choice for almost all uses imaginable ... unless perhaps you are the one being billed.
    This also applies to 'YEAR(A) + n' calculations.
    So, it would seem that any calculation involving the DATE(year, month, day) form with an arithmetic operator in the year or month element should be used only with great care, if at all.
    BTW, the comments about the month unit of calendar time having "no real purpose today" in http://www.cl.cam.ac.uk/~mgk25/iso-time.html may be of interest.

    I'm aware of the blue warning triangle appearing in these "overflow" situations; however, even when it does not, the results may be different -- for example, with a starting date of January 31st, adding one month in my long formula produces a month argument that is in bounds but (for 2008) yields a date 2 days later than with the EDATE method.
    I don't view this so much a bug as a consequence of the vague nature of the "n months later" or of the "month offset" concept. As the cited scholarly article points out, the concept of the months of the year are of somewhat obscure mystic origins, & there lengths were arbitrarily set, often for reasons more political than practical. Between the 1st & 28th day of any month, the concept is unambiguous -- it is the same numbered day in the other month, but for the 29th through 31st day of the month it is not, depending on the starting month.
    From what little I have been able to discover from casual research, the EDATE results are the standard more by custom than by any well-defined rule: what we mean by the offset references the first, last, or some near-the-end-of-the-month day number, whichever seems the most suitable at the time.
    I do not have Excel on my Macs, but since the functions are similar, I would be interested in learning how that application behaves with this table.

  • SharePoint 2013 Workflow Email Reminder 3 month, 1 month, due date email reminders

    Hello, 
    I am trying to create a list workflow in SharePoint Designer 2013. 
    Basically, there's a column called "Revision Date" that will trigger the workflow to send a 3 month (before), 1 month (before) and day of email reminder (based on the date entered in the column "Revision Date").
    I step up the workflow using stages for the 3 month before, 1 month before and actual revision date.
    Example, if I change the item's revision date to today (4/8/2014), it will trigger the last part of the workflow and send an email saying that the Procedure is due today (and logs in the history that "3 Month Reminder NOT Sent" and "1 Month
    Reminder NOT Sent").
    If I enter the item's revision date as 3 months before (ex. 7/8/2014), it will start the workflow and send an email saying that the Procedure is due in 3 months (and logs in the history "3 Month Reminder Sent" and waits for the 1 month reminder
    date to push forward with the rest of the workflow...)
    However, if I set the item's revision date to 1 month before (ex. 5/8/2014), it will send the 3 month reminder email then the 1 one reminder email. I can't get it to skip the sending of the 3 month email and use the "Else" is Stage: 3 Month-- <Wait
    for 1 month date (Vairable:Date4) then log "3 Month Reminder NOT Sent">.
    Any ideas on what I am missing to trigger the Stage: 1 Month without sending Stage: 3 Month first?

    In case anyone is looking for the same information...
    I was able to simply "fix" the workflow by adding a loop and a 30 day pause.
    So the workflow will now "pause" until the variable date then send out the email reminder which then then repeat every 30 days until the actual revision date.
    Seems to be working in test.
    Thanks!

  • Load monthly excel data in xcelsius

    Hi,
    I have 12 month of data for 35 KPI in excel sheet which needs to be updated every month when new data comes.
    I need to design a dashboard in xcelsius, can you please help me how can i design the architecture for this dashboard so that when excel sheet will be updated every month then data automatically refresh in dashboard.
    Any help or document with basic knowledge of architecture design will be appreciated.
    Thanks & Regards,
    Ram Krishna

    Hi Ram,
    Check the below threads, same thing disscussed:
    How to Dynamically Refresh data in Xcelsius 2008
    Update Excel sheet data automatically or Import Excel sheet automatically
    Regards,
    Javed

  • How to make a report to display next 18 months of data with when user select a particular month from the filter in power pivot tabular model.

    Hi,
    i have a  dimension table  with month_key having values (201201,201202,201203.......202011,202012) and month name ( Jan 12, feb 12,......NOV 20, Dec 20)  and a fact  table with columns (month_key ,measure_types, Amount)
    My requirement is to create a power pivot report  in which when a user select a month from the filter, the report should display the (selected month+18 ) month's data against each type . when JAN 12 is selected ,the jan 2012 +18 = june 2013
    , month name should be populated with months till june 2013 only .
    i tried creating calculated column"END DATE " in the fact table with  dax expression to calculate the 18th monh from the current month  as below 
    month_key END DATE
    201201       201306    
    201202       201307      
    and thought of filtering the table with month key <= ENDDATE but it is not working as expected. could you please guide me on this ? Is there any time intelligence function that serve the purpose . Iam using  excel 2010
    ..hence could not do any calculation on the report side also. please suggest .
    Thanks in advance                                                                                                                                               

    Do you need to show the measure calculated for those 18 months as a total on 1 row, or do you need to select a single month and then display on row filters 18 distinct rows?
    The first is trivial as driezl has suggested.
    The second will require a second calendar table.
    I created this example workbook for a coworker who had a similar problem. You will have to use the disconnected table as your filter and pull your related table onto the rows.
    Finally, the easiest way to deal with the sort of date arithmetic you need to do is to restructure your date table to have a series of "Sequential" fields. These fields should be the number of units of time since the beginning of your calendar.
    For example, consider a calendar starting on January 1, 2010. For January - December 2010, [MonthSequential] = 1, 2, ..., 12. For January - December 2011, [MonthSequential] = 13, 14, ..., 24, and so on, incrementing by 1 for each sequential month in time.
    Assuming you have this set up in your date tables (one related to your model - DimDate - and one disconnected - DisconDimDate) your measure would look like this:
    18 Month Measure:=
    CALCULATE( [Measure]
    , FILTER( DimDate
    , DimDate[MonthSequential] >= MAX( DisconDimDate[MonthSequential] )
    && DimDate[MonthSequential] <= MAX( DisconDimDate[MonthSequential] ) + 18
    Please review this example along with the workbook I have linked above.

  • Problem while adding a new data source for the demo for mapviewer...

    hello,
    i use oracle 10g enterprise edition. i imported the necessary dump files and get the necessary scripts worked. i want to see the demo results in mapviewer. for that, i have to add a datasource. the XML code in order to realize this purpose is:
    <?xml version="1.0" standalone="yes"?>
    <non_map_request>
    <add_data_source
    name="mvdemo"
    jdbc_host="c-0y5wp0jvd2bf8"
    jdbc_port="1521"
    jdbc_sid="mvdemo"
    jdbc_user="!mvdemo"
    jdbc_password="tiger"
    jdbc_mode="thin"
    number_of_mappers="3" />
    </non_map_request>
    i press the submit button. then it wants me to enter a username and password. the default is admin/welcome. then i see this result on the browser:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
         <oms_error>
    Message:[MapperConfig] eşleme verileri kaynağı eklenemiyor.
    Sat Feb 26 02:29:19 EET 2005
    Severity: 0
    Description:
         at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.java:583)
         at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.java:315)
         at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
         at oracle.lbs.mapserver.oms.doPost(oms.java:409)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    </oms_error>
    by the way, the error message on the application server screen:
    05/02/26 02:29:16 INFO [oracle.lbs.mapserver.MapServerImpl] adding a map data sr
    c [name=mvdemo]
    05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] java.sql.SQLException: G/╟ istisn
    as²: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :137)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :174)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :286)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:31)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:120)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] connecting to database using jdbc
    thin driver...
    05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/╟ istis
    nas²: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :137)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :174)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :286)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:31)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:136)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/╟ istis
    nas²: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :137)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :174)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :286)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:31)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:136)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    05/02/26 02:29:19 ERROR [oracle.lbs.mapserver.core.MapperConfig] java.lang.Illeg
    alArgumentException: Error creating NativeOracleDataSource.
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:196)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    if someone could help about what to do, i would be grateful..

    when defining a data source through the admin web page, don't add '!' in front of the password.
    ! is needed only when configuring a data source in the mapViewerConfig.xml file.

  • Process/Production Order WIP Reverse on Month starting date with postiing d

    Hi Experts,
    Is it possible to reverse the WIP of Production/Process Order at month starting date eg. 01/07/09. Posting date & Document date should be: 01/070/09.
    In my current project production is batch management system. Some of the batches start at month ending days (Eg. 29/06/09) for we calculated WIP at dated: 30/06/09.
    My Client wants to reverse that WIP next day, month starting hours Eg. 01/07/09 but while reversing the WIP system is posting the WIP reversing doc. posting date is 31/07/09.
    Same batch which started production on 29/06/06 is closed at 03/07/09 as well as goods received same date. FG Stock A/c updated in accounting books.
    At the same day If I print my trail balance system showing the Stock value double (WIP stock as well as FG stock)
    First Month
    Eg. Process Order WIP at 30/06/09                              : 50000/-INR
    Second Month
          WIP Reversal Posting date:31/07/09 by system     : 50000/-INR
          FG Stock received at 03/07/09                               : 50000/-INR
    If I Print Trail Balance on 03/07/09 system shows        : 1, 00, 000/-INR (based on Posting date)
    Which is wrong..
    Please tell me the way for Change the Posting date of WIP reverse document. OSS guys are replying as consulting issue. 
    I am waiting for your valuable reply.
    Thanks & regards
    Bhagiradha

    In KO88, CO88 Select Menu bar Extras-> Posting date
    Enter Posting and execute
    Thanks for Rajesh (SAP Labs)
    Thnaks & Regards
    Bhagiradh

  • Can I sign up for a month of data with Verizon without auto renewal and how long can I go without using my sim card before it is deactivated?

    When I checked out Verizon's data plans online, the only option I saw that did not involve automatic renewals was the option to pay $5 for a day of 300 MB. The other options (e.g., $20/month for 1GB) all appeared to involve automatic renewals every month unless I go in and cancel the plan. However, during a chat, a Verizon representative told me that auto renewal of the prepaid plans is an option that can be avoided, it just isn't listed in the online information. Has anyone found a way to only sign up for one month of data without having to cancel the next payment?
    Also, when I looked online at a site that compared data plans, it stated that one needed to use the Verizon network every 4 months or else the sim card would be permanently deactivated. But in a couple of online discussions, the limit was listed as being 3 months. Verizon told me 6 months. Does anyone know which is currently correct?
    Finally, I have heard that if the sim card does become deactivated, Verizon tends to insist on making one buy a new one with a regular data plan and not the prepaid options.Has anyone had any experience with this?

    GeekBoy.from.Illinois thank you for replying. I tried the Verizon support forum, but before I can ask a question there I need to register, and the first step in registering is entering my mobile phone number. Since I don't have a Verizon phone, I can't register and, therefore, can't ask any questions. I did look through previous questions and answers, but it only confirmed that Verizon employees do not give out consistently correct information. I guess I will try talking or chatting with two of three more of them and hope that whatever the majority answers are will be the correct ones.

  • Month to Date and Year to Date Scenarios

    <b>Dear SAP BI Gurus,
    Can anyone please give me guidance how to create a Month to Date and Year To Date Scenarios (Variables perhaps?) for 0SRR_CF_C1?  The date is in decimal and not DATE format…  I’m assuming the reason for this is to get the Time variance….  Nonetheless, I’d like to create a MTD and YTD scenario for reporting.
    Much Thanks
    Philips Manalaysay</b>

    Hi,
    You should take a look at the blog and doc below.
    /people/vikash.agrawal/blog/2006/10/17/enable-trend-reporting-150-by-manipulating-variable-value
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Regards,

  • Month-to-Date and Year-to-Date values in Query

    Hello experts,
    One of our BI reports has the following requirement: the user should be asked for the report date. After the user inputs the date, the report shows the key figures in three different "flavors": one is the values for that date, the second one is the cumulate values from the first day of the month of the report date to the report date itself, and the third is the cumulate values from the first day of the year of the report date to the report date itself.
      I created my report date variable based on 0CALDAY. Then I searched for SAP-exit variables that would help me achieve this, but could not really find any, except for 0P_ABO10, 0P_ABO11, 0P_ABO12 variables, all of them have as description "Start of Key Date Year". I tried creating a few selections in which the dates taken were defined as a range from each of these variables to the report date variable (for the year-to-date values), but I got the error "Variable 0P_ABO10 could not be substituted". I also got this error for the other two variables. And I could not find any SAP-exit variables like "Start of Key Date Month", in order to do the Month-to-Date part. My next try was to use the field "Key Date" with a variable in it, instead my own report date variable based on 0CALDAY, but it gave me the same errors.
    I searched the forums and found a few threads that looked useful, like
    First and Last day of month and
    1st day of month / 1st day of week variables
    However, they require some ABAP coding, and I do not know where to place the code (actually, I do not know where to work with ABAP code), and I also believe that I would have to do some changes to it.
    Any suggestions?

    Hi Pedro,
    You have to create customer exit in T_Code: CMOD
    1. Create a Z project
    2. Select RSR00001 as enhancement type.
    3. Go into include ZXRSRU01
    4. create a code like
    Here A is your variable based on 0calmonth with type customer exit and B is variable for 0calday.
    Try to write logic for your case taking this as example.
    WHEN 'A'.
        IF I_Step = 2.
          Loop at I_T_VAR_RANGE into L_T_VAR_RANGE where VNAM = 'B'.
            Concatenate L_T_VAR_RANGE-LOW(4) '001' into D1.
            Concatenate L_T_VAR_RANGE-LOW(4) '012' into D2.
            Clear L_S_Range.
            L_S_Range-low = D1.
            L_S_RANGE-high = D2.
            L_S_RANGE-sign = 'I'.
            L_S_RANGE-opt = 'BT'.
            Append L_S_Range to E_T_Range.
          ENDLOOP.
        ENDIF.
    If you want exact code I can help you in that.
    Thanks,
    Kams

  • Last 6 months of data from current date

    Hi Experts,
    I have a requirement in WebI to display last 6 months of data based on current date.Actually I have a column called "Employee Contract Start date" in my report.Suppose the end user executes the report today,then he should be able to see the Employee's data whose contract started today and in the last 6months from current date.
    Also I have dimension object name "Employee Contract Start Date".
    Please be noted that I am getting the data from Bex Query and I am working on BO 4.1 version.
    I have Objects "Calender day" , "Cal.year/Month" , "Calender month" , "Employee Contract Start Date" in the BEx Query.
    Could anyone please propose me, what are the ways to meet this requirement?

    Hi Cris,
    We can get the 6 Months date in webi.
    Check the below blog , will help you.
    http://scn.sap.com/community/businessobjects-web-intelligence/blog/2014/01/21/time-variablesdimensions
    Regards,
    Javed

  • Using SQL stored procedures How to get the list of .rar files from e:\Tempbackup directories from the different remote desktop windows server and delete the .rar files which contains the current month and date

    Concept:
    Every month i need to find the list of .rar files from the
    E:/TempBackup directory from the different environments (remote desktop servers) and i need to delete the current month
    .rar files alone from the respective (E:/TempBackup) directory. below is example files structure inside the
    E:/TempBackup.
    example:
    zDROP_2014_08_31_Backups.rar
    zDROP_2014_09_31_Backups.rar
    zDROP_2014_10_31_Backups.rar
    from the above list i need to delete the zDROP_2014_08_31_Backups.rar(current month) file alone and also logs should be capture for this deletion.
    key words for this are zDROP and Current month and date.
    i need a stored procedure for this concept. could you please help on this.

    Hello,
    You can schedule an operating system task (Control Panel -> Schedule task) to either call a batch file or a PowerShell script.
    Please read the following resources for examples:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/61373719-fffb-4d94-bdbe-7d8ed8620b44/delete-filesfolders-on-remote-servers-using-powershell?forum=winserverpowershell
    http://www.networknet.nl/apps/wp/archives/943
    http://jeffwouters.nl/index.php/2011/10/powershell-script-to-delete-files-older-that-a-week/
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • To upload an Excel macro settings into an ABAP program.

    Kindly suggest me if there is any FM in SAP that can read the file with .bas ext containing the Excel macro settings. As the requirement is to read the macro settings into the SAP program and use these settings for the new Excel sheet that will be cr

  • Headphones only play in one ear

    My Apple headphones started only working in one ear on my iPhone 4s. I tried the headphones in other devices and they work fine. I tried different headphones on my phone and they do work in both ears. However they do not work with the device that I u

  • My iPad will not send emails, what am I doing wrong?

    My iPad will not send emails, can anyone help me?

  • JDeveloper deletes email shape

    This is becoming very annoying for me. The BPEL designer in jDeveloper keeps deleting the contents of an email shape. I can drag and drop an email shape onto my orchestration, specify the fields and build the BPEL project, i can then deploy it and it

  • Return Device

    I recently renewed a 2 year contract, I got my new device on January 1 of 2013, I got the phone I had because I heard no plans of the Nokia Lumia 920 coming to Verizon, I recently heard a few days after my month to "try out my new device" that the No