What will Happen if I add two dates

Hello experts
I tried adding Dates like July 1 + 1 = July 2
but I havent tried adding Dates with different months, Im wondering what will the results be,
example. February 15, 2006 + July 1, 2006
what the result would be?
and what if I tried to add dates woth different year like
March 15, 2004 + December 30 2006, what the outcome shoukd be?
what FM could I used in doing so???
Regards and Thanks,
Christopher

HI
GOOD
CHECK OUT THIS REPORT,IT MAY HELP YOU TO SOLVE YOUR PROBLEM,
Data: v_date(8).
  V_date = '20030102'.
VAL_DATE <DATE> <FORMAT>  <-- Passing Parameters
  val_date v_date 'YYYYMMDD'.
  if sy-subrc = 0.
    write: 'Valid Date' .
  elseif sy-subrc = 1.
    write: 'Invalid Date' .
  elseif sy-subrc = 2.
    write: 'Invalid Date Format' .
  endif.
                  END OF REPORT                    *
To use the macro "VAL_DATE" GLOBALLY, Insert the  *
below 2 macros in table TRMAC using Txn SM30.     *
Sytax :                                            *
VAL_DATA <Date> <Date format>.                     *
It return sy-subrc.                                *
      0 => Valid date - as per the specified format*
      1 => Invalid date                            *
      2 => Invalid date format                     *
<Date format> :                                    *
You can pass the following date formats            *
DDMMYYYY  MMDDYYYY  YYYYMMDD  YYYYDDMM             *
              Macro    VAL-DATE                    *
This macro validate Date according to the specified*
format.                                            *
           Created by Abhishek Kumar               *
           [email protected]                        * 
define val-dat.
  clear: %_date1, %_date2.
  %_date1(4)   = &1. "Year
  %_date1+4(2) = &2. "Month
  %_date1+6(2) = &3. "Date
  %_date2 = %_date1 - 1.
  %_date2 = %_date2 + 1.
  if %_date1 <> %_date2.
    sy-subrc = 1.
  else.
    sy-subrc = 0.
  endif.
end-of-definition.
              Macro    VAL_DATE                    *
           Created by Abhishek Kumar               *
           [email protected]                        *
define val_date.
  data %_date1 like sy-datum.
  data  %_date2 like sy-datum.
  data %_date3(8).
  case &2.
    when 'DDMMYYYY'.
      val-date &14(4) &12(2) &1+0(2).
    when 'MMDDYYYY'.
      val-date &14(4) &10(2) &1+2(2).
    when 'YYYYMMDD'.
      val-date &10(4) &14(2) &1+6(2).
    when 'MMYYYYDD'.
      val-date &12(4) &10(2) &1+6(2).
    when others.
      sy-subrc =  2.
  endcase.
end-of-definition.
THANKS
MRUTYUN

Similar Messages

  • What happens if I make a picture album on my ipad or iPhone and then sync with my Mac? Will it add a new album to iPhoto on my Mac? Also, what will happen if I add pictures on my ipad to existing albums that I made in iPhoto on my Mac?

    What happens if I make a picture album on my ipad or iPhone and then sync with my Mac? Will it add a new album to iPhoto on my Mac? Also, what will happen if I add pictures on my ipad to existing albums that I made in iPhoto on my Mac?

    ubercoder wrote:
    So what I have gleemed from this thread - is that Apple will not help me if an iPad mini is dropped and the screen breaks.  I would have lived without the insurance if I could have simply bought a new screen and then had it replaced by Apple.
    On something so fragile I would have expected a piece of glass to be a replacement part. But I am glad I made this post because now I no for sure if I break the screen there is no way to have it fixed by Apple and keep it in Warranty.
    Yup, kind of like anything else you accidentally break that is more cost effective to replace than to repair. Keep that iPad away from the toddler

  • What will happen if i load transaction data first?

    HI,
    With out master data if i load transactional data , what will happen?
    While loading master data then only SID will be created, If i load Transactional data first means when will SID will be create?
    -Arun.M.D

    Hi,
    We can upload the transaction data even we have not yet uploaded the master data. But the upload of Transaction data will take more time in case if the Master data has not yet been uploaded.
    So for performance point of view,it is recommended to upload the master data as  first  upload.
    With rgds,
    Anil Kumar Sharma .P

  • I support a very large school district currently running Firefox 3.6. What will happen at end of life date? We're in the middle of online testing this week.

    I run the test center for a very large school district with over 120k students. We've got a current deployed base of 54k client machines using Firefox 3.6. We haven't upgraded due to multiple reasons, the most important of which is removing the possibility of using In Private Browsing from the students, and dealing with plugin-updates for the non digital natives (read dumber than a bag of hammers users) that make up the majority of the client base.
    We're testing ESR now, but just found out that end of life for 3.6 is tomorrow, 4/24. We are currently in the middle of statewide online testing. The question is, what will happen tomorrow when the browser goes end of life. The ESR wiki mentions that "an update to the current version of Desktop Firefox will be offered through the Application Update Service"
    So the main question is, are my students/teachers going to get a popup telling them they have to update the browser if we have the updates already turned off? If so, can I turn it off remotely using SCCM, because it will cause all kinds of havoc.
    Please advise asap, and thanks in advance.

    We had to do some serious gymnastics to remove at least most of the ability to use IPB. We removed it from the gui, but unfortunately, if they know the hotkey, they can still bring it up. Security has some serious headaches with this, as by law they have to be able to track where students go, and going with private browsing removes their ability to do forensic work they're required to be able to do. Not a very well thought out feature from Mozilla in my opinion, but it is what it is. Successive versions have made it even more difficult to remove even the gui portion.
    We do plan to release ESR due to the aforementioned security issues, but testing has been slow.
    But thanks for the reply. I think we can turn off the updates if it isn't already done.

  • What will happen to my unlimited 3G data plan if VZW gives me the Samsung Droid Charge 4G phone?

    I currently have the Samsung Fascinate and the unlimited data plan, with a 20% corporate
    discount .   The 2-year contract started when I bought the Fascinate in November 2010. 
    If I'm not mistaken, my unlimited plan is grandfathered in, even after Verizon changed the
    2GB limit for data plans.
    There is no 4G service in my part of the state. There won't be 4G for at least 2 years,
    according to the Verizon corporate store manager.  My part of the state was the second
    to last to get 3G on the east coast.  
    If I take Verizon's offer and accept the Samsung Droid Charge 4G as a replacement phone,
    what will happento my existing unlimited 3G data plan?   Can they activate the 4G phone
    on a 3G data plan?
    Will the 4G phone pick up 4G signal when I travel to a major city with 4G service? (nearest
    city with 4G is 230 miles away)

    SFObrien wrote:
    If I understand their policy correct you will continue your current unlimited 3G plan and have access to 4G in coverage areas as long as you DON'T change your plan. If you change your plan new rates will apply.
    Can one of the Verizon guys here verify this?
    Consider it verified, Steve! 

  • What will happen if I downloaded the iOS 7 in my ipad mini? What will happen to my data, photo and downloaded apps before (ios6).

    What will happen if I downloaded the ios7 in my iPad mini?  What will happen to my saved photo, data and otherdownloaded apps in ios6?  Will all of that erased?

    The advice to back up is good.
    And one other thing.  If you don't currently use a passcode to use your iPad, I really recommend you set one up before you update.  Just make sure you either know what your currently use, or if you set one up, you write it down somewhere safe for future reference.

  • What will happen if I change the name of my Apple Id?

    I have only one Apple Id, which is my email address "[email protected]". My Apple Id and primary email are the same. I now have a new email address, and want to change my Apple Id to my new email address. I've been to the Apple Id support page, and have found out how to change the Apple Id on the Apple Id support webpage. I've been reluctant to go through with the process, because I'm unsure as to what the consequences will be if I change my Apple Id. I have an iPhone and an iPad as well as two Macs and an Apple TV hooked up to my Apple Id. My iMac is the main computer used for storing all files and syncing my iOS devices. In addition my contacts and calendar is in the iCloud. I hope someone with the know-how or experience can help me answer the following questions:
    1. iPhone and iPad: Once I change my Apple Id, have I understood it correctly when the next thing I do is that I go to General settings -> Store, and sign out from my "old" Apple Id, and then sign in with the new name for my Apple Id? Will my previous purchases of music, ibooks and apps be connected to the new name of my Apple Id, and will I still be able to get previously purchased apps updated? As for iCloud, what must I do on my iPhone and iPad to make sure that contacts and calendars keep in sync?
    2. iCloud: Will changing the name of the Apple Id on the Apple Id support webpage be the only thing I need to do, or are there more steps to follow?
    3. iMac and MacBook Pro: Am I right in assuming that all I need to do is sign out from the old named account and then sign in with the new name in AppStore, iTunes, FaceTime and Messages app? Is the Apple Id in use by any other apps or functions?
    4. Apple TV: Once my iMac is up and running with the new name of the account, I sign out from the old named account, then sign in with the new name, will streaming music and photos etc. work just as before the name change?
    5. I still haven't activated Mail in iCloud. As I understand, once you do that you will be prompted to register a @me.com or @icloud.com email address. Will this address now be possible to use instead of my new email address as the name for my Apple Id?
    A lot of questions, still I'd be grateful for some answers.

    Yinghai wrote:
    Hi, everyone,
    I just began to use TM to back up my mac. I already have a full backup. Now I want to exclude some folder from backup. I can do this in the option dialog of TM. But I wonder what will happen after I add a new exclude folder. Will TM begin to build a new full backup or just continue to back up incrementally from the older full copy? Thanks.
    Time Machine will continue to do incremental backups.
    It won't immediately delete previous backups of the items you exclude (but it will, eventually). You can do that yourself, if you want, per #12 in the Frequently Asked Questions *User Tip,* also at the top of this forum.

  • If a new apple id sign in.what will happen to the old apple id if you erase or reset the phone?

    I buy a new iphone 5s and the store open it and put his apple id to download some stuff.. And after that i try to make my own apple id. What will happen if i erase all data and it is in need of apple id.. Will it be the old apple id or my apple id?? I heard that if i erase all data. The apple id of which i buy my iphone will appear and mine will not??

    If the store setup the phone with an Apple ID/Password, that is not yours, & turned on Find My Phone, then you will need that Apple ID/Password to re-activate the phone. Called Activation Lock. Read here:
    http://support.apple.com/kb/PH13695
    So, go back to the store where you got this phone & have them fix things.

  • What will happen if I change the option of TM?

    Hi, everyone,
    I just began to use TM to back up my mac. I already have a full backup. Now I want to exclude some folder from backup. I can do this in the option dialog of TM. But I wonder what will happen after I add a new exclude folder. Will TM begin to build a new full backup or just continue to back up incrementally from the older full copy? Thanks.
    Message was edited by: Yinghai

    Yinghai wrote:
    Hi, everyone,
    I just began to use TM to back up my mac. I already have a full backup. Now I want to exclude some folder from backup. I can do this in the option dialog of TM. But I wonder what will happen after I add a new exclude folder. Will TM begin to build a new full backup or just continue to back up incrementally from the older full copy? Thanks.
    Time Machine will continue to do incremental backups.
    It won't immediately delete previous backups of the items you exclude (but it will, eventually). You can do that yourself, if you want, per #12 in the Frequently Asked Questions *User Tip,* also at the top of this forum.

  • What will happen to my playlists if I cancel my Family Subscription so I can add more subaccounts?

    When I first signed up for the Family plan, I selected only two accounts. I've read that I will need to cancel my family plan and resubscribe so I can sign up for additional subaccounts. My question is, what will happen to all of my playlists and saved songs when I cancel my plan and then resubscribe? Thanks!

    Check this article about updating your iOS:
    iOS 5: Updating your device to iOS 5
    And this one about the content of a backup:
    iTunes: About iOS backups
    And how to backup other data:
    How to back up your data and set up as a new device

  • I'm worried about what will happen if I delete my recent backup data from the phone I still own? Will I lose any progress in games that was saved in the backup?

    I'm worried about what will happen if I delete my recent backup data from the phone I still own? Will I lose any progress in games that was saved in the backup?
    I have an iPhone 4S and I keep getting those irritating notifications that tell me I need to upgrade my storage or free up space. I've deleted all I can from my music and photos without losing too many precious memories, but it's come to the point where I think I need to delete backups. However, I'm just worried that I will lose all and any log-in information that I don't remember and app/game progress that was saved to the iCloud. Please Tell me what will happen/what I can do?

    If you are asking what happens when you delete an iCloud backup, it only deletes the backup from your account.  It won't do anything to the data on your phone or in your iCloud account.  If you don't need to backup you can delete it.  (If you no longer want to back up your phone to iCloud, turn iCloud backup off in Settings>iCloud>Backup.  Then your phone will back up to your computer each time you sync it with iTunes.)

  • My macbook pro recently got swiped and I lost all my data, problem is, just before it was swiped I set up my new iphone 5 which transferred all my photos and music over which is no longer on the computer. What will happen to my phone if I plug it in?

    My macbook pro recently got swiped and I lost all my data, problem is, just before it was swiped I set up my new iphone 5 which transferred all my photos and music over which is no longer on the computer. What will happen to my phone if I plug it in?

    I never used icloud before so there is no data to back up from. I just spoke  to the apple store and they said that if I do plug it in, all the data will be swiped....is there a program I can use to transfer my data from my phone to computer without loosing it all ???
    Renee

  • How the data is stored in Info cube...in the back end what will happen???

    Hi Experts,
    How the data is stored in Info cube and DSO...in the back end what will happen???
    I mean  Cube contain Fact table and Dimension tables How the data will store and what will happen in the backend???
    Regards,
    Swetha.

    Hi,
    Please check :
    How is data stored in DSO and Infocube
    InfoCubes are made up of a number of InfoObjects. All InfoObjects (characteristics and key figures) are available independent of the InfoCube. Characteristics refer to master data with their attributes and text descriptions.
    An InfoCube consists of several InfoObjects and is structured according to the star schema. This means there is a (large) fact table that contains the key figures for the InfoCube, as well as several (smaller) dimension tables which surround it. The characteristics of the InfoCube are stored in these dimensions.
    An InfoCube fact table only contains key figures, in contrast to a DataStore object, whose data part can also contain characteristics. The characteristics of an InfoCube are stored in its dimensions.
    The dimensions and the fact table are linked to one another using abstract identification numbers (dimension IDs) which are contained in the key part of the particular database table. As a result, the key figures of the InfoCube relate to the characteristics of the dimension. The characteristics determine the granularity (the degree of detail) at which the key figures are stored in the InfoCube.
    Characteristics that logically belong together (for example, district and area belong to the regional dimension) are grouped together in a dimension. By adhering to this design criterion, dimensions are to a large extent independent of each other, and dimension tables remain small with regards to data volume. This is beneficial in terms of performance. This InfoCube structure is optimized for data analysis.
    The fact table and dimension tables are both relational database tables.
    Characteristics refer to the master data with their attributes and text descriptions. All InfoObjects (characteristics with their master data as well as key figures) are available for all InfoCubes, unlike dimensions, which represent the specific organizational form of characteristics in one InfoCube.
    http://help.sap.com/saphelp_nw04s/helpdata/en/4c/89dc37c7f2d67ae10000009b38f889/frameset.htm
    Check the threads below:
    Re: about Star Schema
    Differences between Star Schema and extended Star Schem
    What is the difference between Fact tables F & E?
    Invalid characters erros
    -Vikram

  • In NWDI at a time two user's chekout what will happen after chckin??

    Hi friends I'm Nageswar
    In NWDI at a time two user's chekout what will happen after chckin?? Please give me discretion abut Sync,check out, check in
    Options in NWDI...
    Thanks
    Nageswar

    Very thanks Pascal  Willemsen
    But is it Possible to check-out at a time more than one user 
    and give me some details about check-in, check-out, sync  options
    Thanks
    Nageswar

  • What will happen to the data I´ve in my Key ring when migrating to iCloud

    What will happen to the data I´ve in my Key ring when migrating to iCloud?
    Any feedback is appreciated
    Uwe

    Hi Winston!
    Thanks for your quick response. I meant keychain items. So I you anserwed my question, perfectly.
    Best
    Uwe

Maybe you are looking for

  • How can I create a materialized view based on hierarchical cube query?

    Hi, database version 10gR2. When i try to create MV for sql below, i got error . I tried creating MV log in several ways, but still, keep getting the same error. SQL Error: ORA-12015: cannot create a fast refresh materialized view from a complex quer

  • IWeb 1.1.1 works now.  SO... what do you want to see in future versions?

    My top wishes: 1.) Being able to modify templates and then duplicate the pages in iWeb 1.1 is great and all, but how about being able to CREATE original templates complete with making your own placeholder zones and then saving the template so a blank

  • Upgrading My Oracle App Server from 10.1.2 to 10.1.3 without uninstalling ?

    Hi All, Is their any way we can just upgrade the app server from 10.1.2 to 10.1.3 with uninstalling the older 10.1.2 and reinstalling 10.1.3 ? Thanks Raghavendra

  • Fillable forms disappear in the edit screen

    While working on creating fields in Designer, the window intermittently changes into an "Action Canceled" screen. I am forced to click randomly on this new page to make my original form reappear. This is causing a major hindrance. Any solution?

  • I am having problems

    The screen on my ipod has the do not disconnect picture on it and it won't come off, I was putting music on it and when I came back the computer didn't recognize it anymore so after trying to figure out how to eject it without it connected to the com