Add +1 to a date in any format ?????????

Hello All,
       I want to add +1 to a date .
But it's working only when the format is ddmmyyyy.
I want to get the same output for all the date formats.
Is there any function Module for this ?
Regards,
Deepu.K

Hello All,
          Thanks for ur replies.
But in my case I can't use sy-datum.
I have a format which I need to check every time.
i.e for once it may be ddmmyyyy and next it will be mmddyyyy and so on.
I want to take this format as input and add +1 to it.
I don't know in which format it will be.But I should check for the format and then add +1 to it.
Is it possible ?
If yes can anyone help me out ?
Regards,
Deepu.K

Similar Messages

  • Can't load dates in any format

    Hello everybody I have the following problem:
    After i have upgrade from Standard Edition1 to Enterprise Edition for trying to solve the localization problem in the Presentation (i needed Greek) all the mappings that inserts dates to my cubes from external tables (CSV) or the flows that i put a date as an input don't work as the system complains for incorrect format error: "CursorFetchMapTerminationRTV20007 ORA-01843: not a valid month". I have tried all the possible combinations of a date format but still nothing. The Server lam running the OWB has nls_language= Greek at session parameters while at database parameters is nls_language = American. I have tried also to alter the session during the transformation (Alter Session set nls_language = Greek, set Nls_teritiory= Greece) and it diddn't work either.
    Thnx in advance
    Lex

    Dear Detlef,
    This was very helpfull! The process flows and the mapping seems to run ok again! Only one thing left now. I use sql script to run the mappings which looks like that:
    DECLARE
         temp_ok     INTEGER;
    begin
         temp_ok := owb_owner.WB_RT_API_EXEC.RUN_TASK('REP_USER_LOCATION', 'PLSQLMAP', 'DIAXEIRISTIKH_ARXH_MAP_K1', *'PAY_DAY=01/01/2008,'*, ',', 0, 1);
         IF temp_ok = 2 THEN
         RAISE_APPLICATION_ERROR(-20001, 'WARNING DURING EXECUTION OF THE MAPPING');     
         ELSIF temp_ok = 3 THEN
         RAISE_APPLICATION_ERROR(-20002, 'ERROR DURING EXECUTION OF THE MAPPING');     
         END IF;
    end;
    The bold parameter is the input parameter of the mapping. I use PAY_DAY as varchar2 and then I use to_date() again.
    It seems that this isn't the proper way to input a string cause it returns error. I used PAY_DAY='01/01/2008' or PAY_DAY="01/01/2008" or PAY_DAY=/'01/01/2008/' with no results.
    Do you know something about that, or just a way to import a string?
    thnx in advance,
    Lex.

  • Error in exporting data to any format after user has cancelled the request

    Hi all
    I have a scenario with crystal report when open from SAP B1 for which I need your expertise guidance.
    The situation is as follows.
    After I enter parameters to a report, its opens up. When I export the data to pdf, the data is correct.
    Now, I press the refresh button on the report. Now the parameter screen opens up but I dont change any values, and press CANCEL.
    If I export my report (which has been open since the first time I opened from SAP screen), the data exported is different (The data shown on report is different).
    After running the SQL profiler, I observed that the crystal report is actually executing the procedure with NULL PARAMETERS when I CANCEL and export the data though the parameters passed to the already open report is different.
    Any inputs to solve the above problem is really appreciated.
    Environment----
    SAP B1 version 2005B, patch 41
    Crystal report version 9
    VB 6
    Thanks
    Rashmi

    Please note;
    This forum is dedicated to topics related to custom application development or deployment with Crystal Reports in .Net. This includes full versions of Crystal Reports as well as those versions of Crystal Reports bundled with Microsoft Visual Studio .Net.
    As you do not appear to be using Crystal Reports, please repost to a correct forum.
    Ludek

  • Conversion of user date to system format

    i have a problem in conversion of user date.
    i use a function module in which the user have to give the date as input. he can give the date in any format like MM/DD/YYYY or DD.MM.YYYY etc . how to convert the given date into the system date.

    hi,
    use FM CONVERT_DATE_TO_INTERNAL
    cheers,
    sasi

  • How to save data model design in pdf or any format..?

    how to save data model design in pdf or any format..?
    i ve created design but not able to save it any mage or pdf format

    File -> Print Diagram -> To PDF File

  • Date search with any format in oracle

    Hi Friends
    i have Problem with the date format In Db i have column with message (VARCHAR2)
    like.
    Admin~Assigned ~01-08-2013 03:12:35~ [email protected]
    Admin~Assigned ~01-AUG-2013 03:12:35~TEXT [email protected]
    Admin~Assigned ~01-JAN-13 03:12:35~text [email protected]
    Admin~Assigned ~01-07-13 03:12:35~TEXT [email protected]
    I enter only date in varchar2 any format '01-AUG-2013' .it will give the all output.
    How do i do that. Pls help me
    Thanks

    I had to deal with crappy data like yours many times. And its always a pain. We always expect for a magical generic solution. But there is never one such solution
    This is the best I have got.
    Lets consider this is your table.
    SQL> select *
      2    from t;
    STR
    Admin~Assigned~01-08-2013 03:12:[email protected]
    Admin~Assigned~01-AUG-2013 03:12:[email protected]
    Admin~Assigned~01-JAN-13 03:12:[email protected]
    Admin~Assigned~01-07-13 03:12:[email protected]
    We can split your data into columns like this.
    SQL> select regexp_substr(str, '[^~]+', 1, 1) col1
      2       , regexp_substr(str, '[^~]+', 1, 2) col2
      3       , regexp_substr(str, '[^~]+', 1, 3) col3
      4       , regexp_substr(str, '[^~]+', 1, 4) col4
      5       , regexp_substr(str, '[^~]+', 1, 5) col5
      6       , regexp_substr(str, '[^~]+', 1, 6) col6
      7    from t
      8  /
    COL1                 COL2                 COL3                 COL4                 COL5              COL6
    Admin                Assigned             01-08-2013 03:12:35  TEXTMGMT             INSERT            [email protected]
    Admin                Assigned             01-AUG-2013 03:12:35 TEXTMGMT             UPDATE            [email protected]
    Admin                Assigned             01-JAN-13 03:12:35   textMGMT             DELETE            [email protected]
    Admin                Assigned             01-07-13 03:12:35    TEXTMGMT             INSERT            [email protected]
    Now the problem is you have the date value (COL3) in various format. That's messed up. To convert a string into a date format the first thing you need to know is the format of the string. Basically how the string is represented as date. Without knowing that there is no way you can convert a string to date. Said that now you need to device a method to convert string input having various date formats into a date value.
    Below is a function that does that. But the problem is that you need to define the possible date formats in that. I have defined 10 date formats (No magic there ).
    SQL> create or replace function convert_as_date
      2  (
      3    p_date_string varchar2
      4  ) return date
      5  as
      6    type l_dt_fmt_tbl is table of varchar2(100) index by pls_integer;
      7    l_dt_fmt_list l_dt_fmt_tbl;
      8    l_ret_dt date;
      9
    10    function check_date_format
    11    (
    12       p_str varchar2
    13     , p_fmt varchar2
    14    ) return date
    15    is
    16      l_dt date;
    17    begin
    18      l_dt := to_date(p_str, p_fmt);
    19      return l_dt;
    20    exception
    21      when others then
    22        return null;
    23    end;
    24  begin
    25    l_dt_fmt_list(1)  := 'dd-mm-yyyy hh24:mi:ss';
    26    l_dt_fmt_list(2)  := 'mm-dd-yyyy hh24:mi:ss';
    27    l_dt_fmt_list(3)  := 'dd-mm-rr hh24:mi:ss';
    28    l_dt_fmt_list(4)  := 'dd-mon-yyyy hh24:mi:ss';
    29    l_dt_fmt_list(5)  := 'mon-dd-yyyy hh24:mi:ss';
    30    l_dt_fmt_list(6)  := 'dd-mm-yyyy';
    31    l_dt_fmt_list(7)  := 'dd-mon-yyyy';
    32    l_dt_fmt_list(8)  := 'yyyy-mm-dd hh24:mi:ss';
    33    l_dt_fmt_list(9)  := 'yyyy-mon-dd hh24:mi:ss';
    34    l_dt_fmt_list(10) := 'yyyy-dd-mm';
    35
    36    for i in 1..l_dt_fmt_list.count
    37    loop
    38      l_ret_dt := check_date_format (p_date_string, l_dt_fmt_list(i));
    39      exit when l_ret_dt is not null;
    40    end loop;
    41
    42    if l_ret_dt is null then
    43      raise_application_error(-20001, 'Invalid date: Specified format not supported');
    44    end if;
    45
    46    return l_ret_dt;
    47  end;
    48  /
    Function created.
    Once you have this you can do the following.
    SQL> var input_val varchar2(100)
    SQL> exec :input_val :=  '01-AUG-2013 03:12:35';
    PL/SQL procedure successfully completed.
    SQL> with my_tbl
      2  as
      3  (
      4  select regexp_substr(str, '[^~]+', 1, 1) col1
      5       , regexp_substr(str, '[^~]+', 1, 2) col2
      6       , regexp_substr(str, '[^~]+', 1, 3) col3
      7       , regexp_substr(str, '[^~]+', 1, 4) col4
      8       , regexp_substr(str, '[^~]+', 1, 5) col5
      9       , regexp_substr(str, '[^~]+', 1, 6) col6
    10    from t
    11  )
    12  select *
    13    from my_tbl
    14   where convert_as_date(col3) = convert_as_date(:input_val);
    COL1                 COL2                 COL3                 COL4                 COL5              COL6
    Admin                Assigned             01-08-2013 03:12:35  TEXTMGMT             INSERT            [email protected]
    Admin                Assigned             01-AUG-2013 03:12:35 TEXTMGMT             UPDATE            [email protected]

  • I can't seem to find the data tab in format inspector...is there any other way to format numbers as currencies?

    I can't seem to find the data tab in format inspector...is there any other way to format numbers as currencies?

    Hi Aakritie,
    What version of Numbers are you using?
    What operating system?
    Your profile shows  Macbook Pro  (that is OS X) and also iOS
    I am using Numbers 3.2 on a Mac book Pro under OS X 10.9.2
    Format Inspector shows this when a cell is selected:
    Then choose a Data Format:
    Then:
    Regards,
    Ian.

  • ESS services date and time format?

    Hi,
    How can we change the date and time format displayed on some of the ESS services like addresses, LR screen?  Currently I see US format date MM/DD/YYYY and time is in european format 12,50 instead of dot(.).
    I tried changing the browser setting to UK but it didn't work.  Any other suggestion please?
    Thanks
    Praveen

    I tried to create a simple WD application with just date control UI element, I can see the date format is displayed based on my browser setting.  If I change it to US in my browser locale, it date format changes to US date format, if I change it to UK locale the date format is UK based. 
    Only my ESS/MSS applications are always displayed as US format.  I checked at the iView level and I can only see ForcedRequestLanguage but I cannot see ForcedRequestCountry property so I'm unable to set any country specific details here.  When I look at the JCo connection language tab, I see the
    Current locale: en
    Default VM locale:  en_US
    I think this is where change is required.  However I changed following JCo languages from en to en_UK but still no luck
    SAP_R3_HumanResources
    SAP_R3_HumanResources_MetaData
    Backend is checked as posted above.
    I checked below which is the second precendence in determining locale
    Portal mandatory locale -- open file prtDefault.properties on server under
    /usr/sap/<SID>/JC#/j2ee/cluster/server#/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/system/properties/
    I cannot find below mandatory parameters in the prtDefault.properties file
    request.mandatorylanguage
    request.mandatorycountry
    However, I found this
    request.defaultlanguage=en
    request.defaultcountry=us
    Is this something I can change?  Or should I replace or should I add mandatoryLanguage/country?
    Can this file be edited through NWA or should this file be edited manually at the file system level?
    Please advice.
    Thanks
    Praveen
    Edited by: Praveen11 on Aug 20, 2009 8:38 AM
    Edited by: Praveen11 on Aug 20, 2009 8:41 AM

  • IPhoto only accepts date/month/year format for pics?

    I'm trying to add the dates to many old photos that I have in my iPhoto, version 8.1.2.
    Unfortunately, I have many years of photos in there, and I can't remember exact dates of many photos.
    And so I just want to at least put the month and the year. Or sometimes, I'll just remember the year.
    But iPhoto will only let me use a date/month/year format. Odd.
    Is there any way around this?
    Somehow, many of my old photos that have been transfered from old computers have dates assigned to them that are crazy, like 1960....etc.
    I can just make up a date and a month, but that takes more time, and furthermore it will be wrong info.
    I don't want that.
    It seems silly that I can't just put the year alone.
    Any thoughts?
    thank you!

    it also seems like the albums of photos will use the date of the earliest photo in the album, and the newest photo in the album to create a "from" field and a "to" field, in the "info" section at the bottom left of the application, when the Album is highlighted.
    This means that I have to manually correct every single photo in my albums, so that the album date range will read correctly?
    thanks again...

  • I would like to add a new card date field to my address Book Contacts. Is this possible? Thanks, Jeff

    Hi,
    I would like to add a new card date field to my Address Book Contacts. Is there any way to do this? I have a lot of contacts and it helps me remember who I talked to, if I had a new card date field in my contacts.
    Thank you,
    Jeff

    Hi,
    I found the applescript below from Michael Bach that works well.
    (* Find recently modified entries in the Address Book
    Input: a time interval (backwards from today) in the variable "daysBeforeToday"
    Output: a string on the clipboard, format: YYYY-MM-DD (tab) Name (return)
    ©2009, Michael Bach, <www.michaelbach.de> *)
    set daysBeforeToday to 7 -- <<<  change as desired or read from a dialog
    tell application "Address Book"
      copy (current date) - daysBeforeToday * 24 * minutes * 60 to referenceDate
      copy (every person whose (modification date > referenceDate)) to modifiedPersons
      set s to ""
      repeat with aPerson in modifiedPersons
        set d to ((modification date) of aPerson) -- now change to international format and forget the hours
        set dateString to (year of d as string) & "-" & (my twoDigits((month of d) as number)) & "-" & (my twoDigits(day of d) as string)
        set s to s & dateString & tab & (name of aPerson) & return
      end repeat
      set the clipboard to s --for pasting into other applications
      s -- to view immediately in the script editor
    end tell
    on twoDigits(aNumber) -- trivial utility for formatting
      if aNumber < 10 then return "0" & (aNumber as string)
      return (aNumber as string)
    end twoDigits
    I changed the modification date to creation date.
    Thanks for the replies.

  • Excel tdms add in not showing data in spreadshee​t

    I've succesfully installed the Excel TDM Add In on several computers.
    The latest computer I tried to set up lets you select a TDMS file to import but the channel data does not appear. I've uninstalled and reinstalled several times with no luck. There are two example files attached. One from a successful import and another that is missing the data. Both files used the same source TDMS file which is also attached.
    It is running Windows 7 64-bit with MS Office 2010 - no different from the computers that the add in works on.
    Any idea what could be wrong?
    Attachments:
    Failed Export Example.xlsx ‏17 KB
    Successful Export Example.xlsx ‏27 KB
    TDMS.zip ‏8 KB

    What you forgot to mention is what process did you do to import the one that worked, and the one that didn't work?
    Was it the same process?
    All I did was double click the TDMS file.  By default it will open it with the TDMS Importer and open it in Excel.  For me the import was fine and I had all the data that your Successful version did.
    If you are interested in automating this feel free to try out my importer utility.
    https://decibel.ni.com/content/docs/DOC-36555
    It relies on the TDMS Excel add-in but it allows for other formatting, and freezing rows/columns in the data as well as providing an alternative summary page.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • To check whether there is any format mismatch between columns of two tables

    Hi,
    I have got a table 'T' (Source table) with columns
    T_Lat Varchar2(50);
    T_Amt Varchar2(50);
    T_Cat Varchar2(50);
    (all these above columns have numeric data)
    Actually, Here I have taken only the columns having numeric data from table 'T'
    Now I have another table 'M'(Destination Table) with columns
    M_Lat number;
    M_AMt number;
    M_Cat number;
    Now my task is I have to do a prevalidation of the data in 'T' that whether all the data in those columns will suit for the destination table columns respectively (to check whether there is any format mismatch). This check should be done dynamically(as there are more than 50 columns in real).
    Note:- There is no unique mapping column for these two tables
    I think it can be done using arrays or plsql tables. But i dont have idea using them.
    Can any one help me in this regard.

    Why, What's wrong with these post and there responce?
    {message:id=10480898}
    {message:id=10472737}

  • Is there a way to NOT have the data from a formatted search highlighted

    Hi all,
    I have a formatted search that returns a big chunk of data, some comments that are then added to. When the fs is fired, it returns the data, but all of the data is highlighted so when the user starts typing they overwrite the data that was just returned. I know they could just hit the right arrow key or click their mouse at the end, but they don't do that half of the time. I also know they could use ctrl-z or undo when they do this, but they don't do that either. It would just be nice if they could fire the fs and when the data is returned, the cursor would be at the end of the data.
    Any thoughts?

    I don't think there are any options for you to change default system behavior like this.  What you may do is to change your FMS logic to get only one record if possible. Post your query here if you can.
    Thanks,
    Gordon

  • How do you vary the Date/Time stamp format in File Adapters

    In the receiver channel of the File Adapter where you specify the 'File Name Scheme', you do have the option of specifying a 'File Construction Mode' of 'Add Time Stamp'.  How can you specify a different Date/Time stamp format ( eg MM/DD/YY vs YYYYMMDD vs MMDDYY, etc. ) without changing the Date/Time stamp for the entire SAP system?  Also, can you control where the Date/Time stamp appears in the filename?

    Hi,
    There are many threads discussing the same issue. Go thro the following:
    Dynamic file name (Date) in Receiver File Adapter
    Receiver File Adapter - TimeStamp
    Bhavesh's reply in above thread:
    You can use Adapter Specific Identifiers and then change the file name in the mapping. Append the tiem stamp in the format that you want and so on.
    Just use this code in an UDF,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String SourceFileName = conf.get(key);
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    String newfilename=SourceFileName+dateformat;
    // change to new file name
    conf.put(key, newfilename);
    return "";
    Regards,
    P.Venkat

  • Converting Date Column to format MM/DD/YYYY in RPD

    Hi all,
    I have a requirement like converting a Date column to format MM/DD/YYYY in RPD. Any help as we are not supposed to use the BI Answers Data Fomat for showing this format.
    Thankyou,
    Edited by: [email protected] on May 10, 2010 11:49 PM

    Hi Saichand,
    I need the resulting column in DATE format only. The solution which you specified converts the datatype to character. Is there anyway to convert the format but not the datatype.

Maybe you are looking for

  • Connection between Structure Field and Table Field

    Hello everybody, I'm trying to find a connection between a field in the structure and the actual filed in the table of the database. For example in the structure CAUFVD you have the field PLNNR. This information is stored in the table AFFL in the fie

  • How to update a MacBook Pro 17 inch mid 2010 with SSD?

    I know that this question probably been asked many times before, but i can't really find the answers to my specific questions. I want to update my MacBook Pro 17 inch mid 2010 / 2,66-GHz Intel Core i7-processor, 8 GB memory, running latest Mavericks

  • Multiple different emails under one account

    several years ago i payed extra to add a few various email to my account ( for my accountant and one employee). it set up their own email and such with my company name. where do i access that info now? i need to update one of the emails and have no c

  • Photo Booth Problems -- being used by another applications/ Please help!

    Hi everyone: I am having problems with my 17" iMac (C2D). Photo Booth worked great for the first few weeks. Now when I go to use it -- I get a message that says it is in use by another application or there is no camera attached. Well of course there

  • Input list of values resizing popup in adf?

    I have a screen for example. [http://2.bp.blogspot.com/_YeFnEaxTQCI/SloGR7HW6II/AAAAAAAAAKM/3-QP8OrYhns/s1600-h/lovbug2.jpg] and need to change the width of the popup the input list of values. I am a novice in adf. I need help sorry for my English