Any FM for diff b/w 2 dates= yrs and months format

eg:- new useful life = 12/31/2009 - 04/30/2008 = q year 8 months.can any body give FM name.Advance Thanks.

Hi ,
try this FM,
HR_CALC_YEAR_MONTH_DAY
          call function 'HR_CALC_YEAR_MONTH_DAY'
          exporting
            begda            = ws_z2_dt
            endda            = ws_today
          importing
            years_out        = ws_yr_service
            months_out       = ws_mo_service
            days_out         = ws_dy_service .
          if sy-subrc <> 0.
            clear: ws_yr_service, ws_mo_service, ws_dy_service.
          endif.
you will get months in months_out
years in years_out.
you can ignore days_out.
Regards
Arun

Similar Messages

  • Are there any Hotkeys for Adjusting Temperature in Lightroom, similar to + and - for exposure?

    Are there any Hotkeys for Adjusting Temperature in Lightroom, similar to + and - for exposure?

    If you click on the word Temperature, then + and – will adjust the temperature up and down, respectively.
    Note: whenever you click on another slider name, like Exposure, then the + and – new work on the slider name you just clicked on

  • Is there any Tool for successfully migrating the Infopaths data connection from old URL to new URL?

    Hi Support,
    In my Project we are trying to migrate sharepoint 2007 Infopaths to sharepoint 2013 Infopaths(there are some 20000 infopaths).Here we want to change the Data Connection from old to new connection.
    So please let me know if there is any tool to migrate sharepoint 2007 infopaths data connection to sharepoint 2013 infopaths data connection.
    Thank You in Advance for your help.
    Regards,
    Pradeep

    Hi Pradeep,
    As far as I could search, there is no built-in feature to batch updating InfoPath forms, I’d suggest you consider script or third party tool. Here are the links that might help:
    http://sharepintblog.com/2011/06/07/updating-infopath-form-templates-and-data-connections-with-powershell/
    http://www.dotnetfunda.com/articles/show/2829/migrating-infopath-2007-form-to-2013-forms
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety,
    or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • My ipad wants me to restore it. Is there any hope for me getting back the data before this happened?

    So I went to turn on the ipad2, and there is an icon telling me to connect it with my MacBook to restore it. It worked fine the night before. Anyway, is there any way to get back what was on it. I am mostlry concerned with photographs. I am ashamed to say that I did not back it up as often as I should have.

    I have not had any experience in getting any devices repaired so I'm not sure which store to resort to. An official Apple store should more than likely get you what you need, but I'm guessing it's probably more expensive. (if any cost for your situation)
    I hope you get your problem resolved.
    ~Lt. Leviathan

  • Any news for the next version of Data Protection Manager - DPM?

    May be DPM 2015 is incoming? New features or something?
    Thanks.

    Since DPM is now bundled in as part of the larger System Center then I imagine the bigger question is when the next version of System Center will be released.
    As discussed here
    http://blogs.technet.com/b/server-cloud/archive/2014/10/01/announcing-availability-of-windows-server-technical-preview-and-system-center-technical-preview.aspx alongside the release of Windows 10 technical preview, there have also been releases for the
    server version of Windows 10 and its corresponding System Center into technical preview, so there is a new version in the pipeline.
    As far as I can find online it's far too early to know when they'll be getting released, but it's suspected that it will be sometime in the second half of next year, so potentially (if all goes well) sometime between 9 to 15 months from now.

  • Diff between init with data transfer and repair full request

    hi,
    i have observed that even in the new flow we are doing init without data transfer and then repair full request
    if i do init with data transfer also i can achieve the same?
    i want to know why we need to do this ,do we have any advantage of doing init without transfer and repair full request?
    please suggest me

    Hi Venkat,
    A repair full request is loaded in cases where you get erroneous records or where there are missing records which you want to load. In such cases, a repair full request for the selective records can be loaded and is the most efficient way to correct the data, since you won't be required to load the entire data once again. Also you acheive the desired result without disturbing the delta. (You are not required to do an init w/o data transfer after a repair full, people just do it a a precaution)
    However, repair full requests should only be loaded to infoproviders with update mode 'overwrite'. Otherwise, if the InfoProvider, its very probable that you might double the value of the key-figures due to rows being added twice - in case of an InfoProvider with update mode 'Additive'. So, if your InfoProvider is additive, you will need to delete the entire data and do an 'init with data transfer' to avoid corrupting the data. (Note: you can do a repair full request for an additive infoprovider in case of lost records or if you can delete erroneous records with selective deletion.But you have to be careful with the selections lest you inadvertently load other records than required and corrupt the data)

  • Any indicators for  3rd party Radio alarm clock docks and iPhone 5?

    Has Apple created any guidelines for the iPhone 5 when using an older radio alarm clock dock, using the lightning to 30 pin adapter ? My iPad is no problem, but my iPhone 5 (when I have it in hand) might be. Any ideas?

    For Apple to see this you need to repost it at
    http://www.apple.com/feedback

  • Input Date display and submit formats

    I need to insert Timestamp into the Oracle database table field.
    My particular EO attribute is of type "Timestamp", so that I can insert the Date with time. Also in the control hints format is "dd/MM/yyyy hh:mm:ss a"
    The problem is that I just need to show only the Date without time in my table cell using input date.
    If change the format in the control hints then I am unable to insert timestamp.
    I also see there is a af:convertDateTime component inside af:inputDate.
    Can some show easy path to achieve this?
    In short how to display only selected date but to insert actual timestamp.
    I use JDev. 11.1.1.3
    Thanks.

    Thanks for the concern.
    But if I use "af:convertDateTime" and set pattern to "dd/MM/yyyy" to achieve showing date only I will loose the timestamp to be inserted.
    Basic requirement is to show date only and insert real timestamp using input date, also note that I insert timestamp on another user action after the user change the input date value.
    I feel like this can not be achieved with single input date in ADF. Am I right? Or is there a way?
    Please help.

  • Date and Month format - BW Query- Universe

    Hi All,
      We have a requirement that the Web Intelligence report should be on the between date range.
    We have BW query, the time key figure format is MM-YYYY(its is character)  and we created universe on top of the Bex Query
    I am trying to create the Web Intelligence report using the month as the filter and I am using between option. When I run the query its not considering the date function and its bringing everything without concerning the the filter.
    Should I create new object in universe using the existing Billing Month(MM-YYYY) object ? If yes could you please give the function how to convert. I tried to convert right click on the object>object properties>Definition-->type(Date) but its giving error.
    Please advice me how can I convert the char function to date function when we use the BW query as a source to the universe.
    Thank in advance.
    Muvva

    Can you share your solution to this?

  • Field Date year and month

    Hi, 
    I'd like to get only year and month field. E.g. 201409.
    Could you please let me know how to do it?
    ddwrt:FormatDate(ddwrt:Today(),0804,1)
    Thank you. 

    Hi Denis - Can you use like:
    formatted date "=TEXT(pickdate,"m") & "/" & YEAR(pickdate)"
    http://weekbeforenext-blog.blogspot.in/2011/06/extracting-month-and-year-from-date-and.html
    -prs

  • Is there any API for pushing update patch related data from qualysguard in SCCM database?

    The problem is that, my company want to integrate SCCM with qualysguard. The qualys will scan for missing patches and will generate a patch report. From this patch report
    required data will be extracted and pushed into the SCCM database.I have sorted out the issue of extracting data from qualys, but I am stuck up at the point of pushing patch data in update repository. I tried searching for some API which could push data in
    database of SCCM, but unable to find. I thought of making my own script to run the sql query but this will ultimately screw the database of SCCM since there may be 60-70 table dependency.
    Please suggest any SCCM API which can help me to push data in its database(particularly in the tables interacting with the update repository). 

    We had looked into doing something similar, and this post is the closest we found.
    https://community.qualys.com/thread/11816
    Basically you will need a middle-man between Qualys and ConfigMgr to house the data. This may be a new database, or a whole seperate platform. I expect this could easily be done with SQL and SSRS.
    Also note, database edits to the ConfigMgr database are
    not supported  by Microsoft, I would recommend using a central system to pull data from Qualys and ConfigMgr without modifying either.
    Daniel Ratliff | http://www.PotentEngineer.com

  • I would like to use removable hard disk drive (portable hard disk) for iphone because of many data, report and so on. I want to receive data for e-mail, so the iphone holds large amounts of data for a long time, and i want to use its at any time

    nowadays, people use removable hard disk drive (portable hard disk) & usb flash drive at computer because of usability, easy to carry around.
    so, i would like to use these functions for iphone. i want to develop mini portable hard disk for the use of iphone like computer

    Not a feature of iphone.

  • Any tutorial for performing manual CRUD beside ADF faces and ADF BC ?

    Hi
    Thank you for reading my post
    is there any tutorial around which help me learn how to perform manual CRUD beside ADF BC ?
    in my application i have some complex DB operation which i need to perform them manually.
    an example is my login page :
    user enter user name and password and i should check it with database and after i checked that its correct then i can set session attributes that user is loged in.
    now the question is : how i perform that check for user name and password , does ADF-BC helps or i should get the connection and create an statement ...
    thanks

    Hi!
    You can do that with bind variables. Perhaps this thread will help you:
    Re: SQL statement problem!!
    Claus

  • Any explanation for frequent crashes on PP CC 2014 and Windows 7 pro?

    I've had many problems with crashes using PPCC 2014. I originally downloaded it this summer and it was impossible to work with so I quickly went back to CS6. I've tried it again lately, thinking that maybe some updates could have solved the crash problems.
    If my timeline is pretty straightforward and doesn't include 3rd party effects, it seems to be smooth, but I don't think we're fully compatible with many frequently used 3rd party packages...specifically New Blue Transitions.
    Has anyone else been having problems with those transitions?
    I don't know what I'm going to do. I hope CS6 continues to be supported because I don't think I can realistically switch all my projects to PPCC 2014. It's just too unstable.
    My specs:
    Windows 7 Pro (64bit)
    i7 950 @ 3.07GHz
    24 GB ram
    Nvidia Quadro 4000
    Third party software:
    New Blue transitions and video effects
    Pro Dad, stabilizer, transitions and video effects
    Magic Bullet Looks, Mojo, Universe
    Would love to hear from others about any like problems, or be steered to the right thread.
    Thanks so much.
    Jessica

    I was getting this same error/crash - it started right after I did the most recent update about 3 days ago
    since then I can export to media and it randomly crashes while using the program
    (windows 7, 8gb, laptop, i7, 2.00ghz, premiere pro cc 2014.2  8.2.0 Build (65))
    well I'm not sure if this is a fix or not but it worked for me been up and running all day today with no crashes and have exported to media on several decent sized projects
    so after some reading I went to
    preferences>memory and changed it from performance to memory
    and then also changed my "ram reserved for other applications" to it's lowest setting (mine was 1.5gb) which opened up .5 gb of memory for premiere pro (now 6.5gb)
    again been working all day when it was crashes quite frequently (after the last update)
    hope this helps someone!
    kevin

  • I have a MacBook and cannot connect to App Store. I have no problem with the internet connection. I want to be able to buy the apps that are available for my computer. The date, time and location are all correct - all the suggestions have failed

    I have a MacBook - I am unable to connect to App Store - I have no problems using the internet to connect to anything else. I have checked out all the suggestions - Apple Preference and time, date, location etc. they are all correct. I cannot think what else I should do. Any suggestions please Cynthiafromgrayshott.

    If you don't see any messages, not have anti-malware running or the Firewall on, try installing the Mac OS X 10.6.8 Update Combo
    It's ok to do this even though you are already running v10.6.8 (according to your profile).
    Restart your Mac after the combo in installed, try the App Store.
    Also... if you have an app called Little Snitch installed, that can prevent a connection to the App Store.

Maybe you are looking for

  • Photoshop CC crash when using Nik Collection

    I have been using Lightroom 5 and Nik Collections plugins successfully for a while and just got Photoshop CC. Unfortunately Photoshop CC crash when I save my work that I have done in ColorEfex Pro 4 or SilverEfex Pro 2. The other plugins in the Nik C

  • What is the best way to get the pixel brightness

    I have a gray-scale .png image. The pixel brightness is used to communicate the information that i need in my application. Note that i do not show this image in my application, the png file is only used to communicate data. Since this data is being c

  • Problem in BI query

    Hi Experts, My full team is facing a error as: "Terminate : Program error in class SAPMSSY1 method: METHOD UNCAUGHT EXCEPTION "Terminate : An Exception with the type CX_SY_PROGRAM_NOT_FOUND occured but was neither decleared nor decleared in a RAISING

  • I don't know what to

    I have had my Zen touch for about a year now. Never had any major problems. The other day all of the buttons except for volume and power stopped working. Its not playing music, and i get no response from the play/pause, fast foward, rewind, back, men

  • HT3775 I want to open a download a file to listen the music but I can't open the file. what should I do?

    Hi, I need to open the file, but it is not opening could you please help me out.