Time calculation from one date to some other date

Hello,
I want to time calcualtion from one date to other date period.
for calculating total hr's from one date to other date.plz let me know the logic.
                       Date                      Time
Eq:  1st date:   22.05.2008             01.10.00
      2nd date:   25.05.2008             12.10.00
I want the total hrs from 22.05 to 25.05 like i need result as
from 22 to 25 total hrs based on the time given.

Hello,
Instead of FM..We can achieve by the following program...
REPORT YRT_TEST1.
parameters : date1 like sy-datum,
date2 like sy-datum.
data: days(3) type n.
data: years(10) type p decimals 3.
start-of-selection.
days = date2 - date1.
years = days / 365.
write: / days,
years.
Now Multiply 24  to days to get hours and the multiply with 60*60 to get the seconds
***************Reward points,if found useful

Similar Messages

  • " Moving records from one subtype to some other subtype "

    Hi,
    I have some records in IT0105( subtype = 9028 ) and i want to move these records in IT0105 ( subtype = 0001 ). How to perform this.Plz anyone help me in this regard.

    Hi,
    Use the FM 'RH_PNNNN_MAINTAIN' to update the Infotype OR check this FM HRXSS_PER_MODIFY_P0105_US
    CALL FUNCTION 'RH_PNNNN_MAINTAIN'
        EXPORTING
          act_fcode             = 'AEND;
          act_plvar             = p_plvar
          act_otype             = p_otype
          act_objid             = p_objid
          act_infty             = p_infty
          act_subty             = p_subty
          act_pnnnn             = p_pnnnn
          act_gdate             = sy-datum
          suppress_dialog       = '2'
          act_vtask             = 'B' "B
          act_commit_flg        = l_commit_flg
          clear_buffer_plog_tab = ''
        IMPORTING
          act_mess_info         = l_hrrhad_msg
        EXCEPTIONS
          infty_not_valid       = 1
          no_plvar              = 2
          object_not_defined    = 3
          otype_not_valid       = 4
          no_authority          = 5
          action_rejected       = 6
          no_gdate              = 7
          fcode_not_supported   = 8
          OTHERS                = 9.
    Edited by: Avinash Kodarapu on Feb 16, 2009 10:59 AM

  • How to show data from one web site to other web site having diffrent domain.

    Dear all,
             i want to show the selected data from one web site to other web site.
    the location of the two web site is geographically seprated (and diffrent domain)
    Please tel me in how many ways it can be accomplished.
    If it can be done using jquery then please tel me the function or procedure to do it.
    Note: ( i have seen the above behavior in many web sites .
    like, i was purchasing some thing but finally declined,
    after that i visited some other web sites to gets some other data on other area
    , and i show my selected items of the first web site  on second website as advertisement.)
    i would like to know how these things are accomplished and how it can be done in asp.net.
    yours sincerely

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is about ASP.NET website programming, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    That's a kernel panic and indicates some sort of problem either with the computer's hardware or software. Visit The XLab FAQs and read the FAQ on diagnosing kernel panics. It would help to post the panic log: Mac OS X- How to log a kernel panic.
    Meanwhile, try booting the computers into Safe Mode then restarting normally. If this is simply a disk repair or cache file problem then this may fix it.
    You can also try creating a new admin account on each computer then booting into the new account. This would help determine if the problem is related to a bad file in the user accounts.

  • How do I move data on time machine from one external hard drive to another

    How do I move data on time machine from one external hard drive to another?

    Although the documentation says you can copy Time Machine backups in the Finder, it's very slow and sometimes doesn't work at all.
    Launch Disk Utility, open the built-in help, and search for the term "Duplicate." Follow the instructions. Turn Time Machine OFF in its preference pane while copying the volume.

  • I have recently transferred data from my old Mac to my new one. The result was good, but I have 2 users now, whose data I want to merge into 1 single user, so to avoid having to switch from one user to the other to view and use certain files. How to do it

    I have recently transferred data from my old Mac to my new one. The result was good, but I have 2 users now, whose data I want to merge into 1 single user, so to avoid having to switch from one user to the other to view and use certain files. How to do it?

    Here's an easy way:
    Pick the user that you want to eliminate (making sure that the remaining user has administrator privileges) and move all of the data that you want to keep into the Shared folder. Reboot or log out and login to the user you want to keep. Copy all the data from the Shared folder into your account - placing it neatly in folders (Documents, Music, Movies, etc.).
    Once the data is moved, log into the account you want to delete just once more to make certain that you've grabbed all the data you want to keep. Log out and log back into your admin account and go to System Preferences>Users & Groups and delete the 'old' user.
    That should do it.
    Clinton

  • How to pass Data from one form to the other

    Hi all
    Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
    I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
    If any one of u have any idea, give me a reply
    Thank you
    Suhasini

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:
    erase('global_var')
    Greetings,
    Sim

  • How to copy data from one planning area to other planning area

    Hi ,
    I need to copy data from one planning area to other planning area, the MPOS for two planning areas are differant and  here my scenario is one planning area having extra key figures.
    First i need to release forecast data to CIP planning area and then,  i load the data from infocube  to MPS planning area and copy the data from CIP planning area. here both MPS and CIP planning areas having different MPOS .
    Please help me in this. Please give me the stepls i need to follow.
    Thanks in advance.
    Regards,
    Chandu

    Hi,
    You can use the transaction /sapapo/tscopy.
    In this you can configure your source plng area and destination plng area. You also have an option to map your KF. There is no problem if the MPOS are different as long as you are able to map the characteristics between the 2 MPOS.
    Alternatively, you can create an Infocube which shares common ground between the 2 planning areas and extract data from CIP plng area into the infocube and then copy teh data from infocube to MPS plng area using the the transaction /sapapo/tscube.
    Hope this helps.
    Thanks
    Mani Suresh

  • Does anyone knows a way to work with various Pages documents at the same time, for example with a system of tabs to switch directly from one document to the other?

    Hello everyone,
    Working with numerous Apple Pages documents at the same time, I am looking for an efficient solution to switch faster from one document to the other. Integrating all them in a single framework, for exemple by switching from one to the other with a system of tabs would be of great help. Does anyone knows if such a possibility exists?
    Thanks in advance,
    Jean-Baptiste

    jbp- wrote:
    Thanks. It works and is very efficient. Not as much as a real system of tabs, but is allows to switch very fast between different documents. Only regret I would have is that it doesn't work with a document which is on full page mode. But that's already very helpful!
    You're very welcome but Peggy really gave you the answer already. 
    With regard to the full screen apps, I don't think Apple have yet worked out how to make them elegantly coexist with other apps.  The closest you can get is the four finger swipe gestures you may use on a trackpad if you have one (Mission Control and App Exposé).
    In fact nowadays I use the App Exposé (four finger swipe down gesture) more often than I use Command-Accent to move between documents in the same app (when not in full screen).  It also as the advantage of showing you thumbnails of recently opened documents below the ones already open within the app.  If you haven't tried it, I suggest you give it a whirl.
    I can't remember now but I think the four finger gestures are not enabled by default and you must switch them on in System Preferences > Trackpad > More Gestures. 

  • Hi there.  I have a MBP w/ 10.8.5 and an iPad 2 w/ 6.1.3; can I communicate from one device to the other via FaceTime without having to create another apple id?  Thanks in advance for your time and consideration!

    Hi there.  I have a MBP w/ 10.8.5 and an iPad 2 w/ 6.1.3; can I communicate from one device to the other via FaceTime without having to create another apple id?  Thanks in advance for your time and consideration!

    Hi there.  I have a MBP w/ 10.8.5 and an iPad 2 w/ 6.1.3; can I communicate from one device to the other via FaceTime without having to create another apple id?  Thanks in advance for your time and consideration!

  • How to Maintain the MM Master Data from one company code to other co code

    Hi Experts,
    Can any one pls tell me how to Maintain the MM Master Data from one company code to other co code.
    Presently we created New plants,New Purchase Orgs under different company code.
    1) Material Master data
    2) Vendor MAster data
    3) PIR
    4) Source List
    Is there any standard Transactions...??
    Please reply.
    Brgds,
    KK

    Hi
    Check out the link -
    http://wiki.sdn.sap.com/wiki/display/ABAP/StepstocreateasimpleLSMWusingbatchinput+recording
    lsmw for data migration for  xk01 transaction
    http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm
    Regards
    Anand

  • Transfer data from one record typr to other

    Hi All,
    How can we move data from one record type to other record type in Oracle PL/SQL?
    Can any one reply me ASAP.
    Thanks in Advance,
    Dhana

    Like this
    declare
      type rec is record(no integer, name varchar2(10));
      rec1 rec;
      rec2 rec;
      rec3 rec;
    begin
      rec1.no := 1;
      rec1.name := 'karthick';
      dbms_output.put_line(rec1.no||'/'||rec1.name);
      --Now just assign rec1 to the rec2 by element
      rec2.no := rec1.no;
      rec2.name := rec1.name;
      dbms_output.put_line(rec2.no||'/'||rec2.name);
      --Now just asign directly
      rec3 := rec2;
      dbms_output.put_line(rec3.no||'/'||rec3.name);
    end;

  • How to use value from one data set in other data set SQL select.

    Hello all, i have one data set, and i need to get value from that data set into other data set. Something like '?' but without input. I will try to explain it with screenshots:

    If both tables come from the same data source, join the two tables in one data set rather than two as shown. If they are from different data sources, use a 'join data set'

  • Query to get the list of Employees Transferred from one dept to the other

    Hi friends,
    Can some one give me the abstract query for the employees who aare transferred from one dept to the other
    thanks

    In this table oracle auto upload data at particular time but if you want to upload at the same time, therefore you need to run request "Update Assignment Events Fact ", after running this request you will find data in this table.
    --thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I import my iphotos from one account to the other?

    Someone knows step by step iphoto from one account to the other. I am admin but still I do not know how to bring my iphotos to a different account
    thanks for help
    marc

    Just the Photos?
    Export them from iPhoto to a folder on the desktop
    Put that folder in the Users/Shared folder.
    Switch User.
    Drag the folder from the Shared folder to whereever you want it.
    Share the Library?
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder (but note: some users find ongoing permissions issues with the Library in this location. It might be better to use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

Maybe you are looking for

  • Can I use CSS to target a table or a DIV

    Ok, I am trying to use DW Layers so when I click on a thumbnail, I can trigger the "SetTextofLayer". The reason i do this is because I dont know of any other way to do it., but as you all know, the positioning of DW layers is absolute. So is there a

  • Limiting rotation of Transform to one axis at a time.

    I have a situation where I want to force a transform returned from a picking tool to only rotate around or translate along a single axis. To do this, I'm using the transformChanged() function shown below. It works fine for the translation changes, bu

  • Re:Windows Phone develpement

    Hi I have one WPF application Which is working fine.  So now i want to target that application  to windows 8.1 store and Windows phone 8.1.  i am using visual studio 2013 update 4 for the development. i have few library projects in my wpf application

  • [SOLVED] How to start pulseaudio on boot without a DE or WM? (XBMC)

    Hi Guys, I run XBMC without a desktop environment or Window Manager, it launches via my .xinitrc as below: exec /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc --standalone -fs I can use pulseaudio with xbmc if I run

  • Help with order by and group by together

    Hi: I have a table with severity and devicename as two fields. I want a query which returns a list to include the records in the following order: Devicename with the highest severity at the top but all records should be grouped by devicename irrespec