Find date from Hours

All,
I have from date & number of absences hours. I need to calculate till what date he will be on leave.
Say Leave start from 01/17/2008 for 80 hrs. I shd able to get the till date as 01/30/2008 (till what date he will be on leave). This excludes weekend & holidays.
can anyone help me..
BM

HI,
Try like this...
date: 1/17/2008
hrs absecnce: 80
total days : 80/8 = 10. ( assuming 8hrs /day)
add 1/17/2008 + 10 days = 1/27/2008.
meanwhile u need to check for holidays and weekends.
to add days u can use some function modules available.
Regards
SAB

Similar Messages

  • Calculate Date from Hours

    Is there a standard SAP function module that calculates a date using a specific number of hours?
    For example:
    The expected GR date is 4 days and 11 hours from the PGI date.  So we would like to use the functionality to add 107 hours to the PGI date to recieve the Expected GR date.
    thanks,
    brian

    Hi brian,
    1. The logic is simple.
    2. For this purpose,  i have an independent
       subroutine - FORM,
       in which we pass the hours,
       and we get back days, and hours.
      107 hours = 4 days , 11 hours
    3. just copy paste in new program
    4.
    report abc.
    DATA : DAYS TYPE I.
    DATA : HRS TYPE I.
    parameters : h type i DEFAULT '107'.
    perform getfigure using H CHANGING DAYS HRS.
    WRITE : DAYS , HRS.
    FORM
    form getfigure using phours changing days hrs.
      DATA : MYDAYS TYPE P DECIMALS 2.
      MYdays = phours / 24.
      DAYS = TRUNC( MYDAYS ).
      hrs = phours mod 24.
    endform.
    regards,
    amit m.

  • Find Datas from Select Satement - Oracle 11g After changing the Connection?

    Iam very very new to Oracle. Yesterday only I have Installed Oracle 11G & created DataBase - JafferDB
    And from Oracle SQL Developer, I have created a connection called - JafferCon and SID also given..and the role is - SYSDBA
    And I excute the below statement
    insert into MyTable1 Values ('AAA1', 'BBB1', 'CCC1')
    insert into MyTable1 Values ('AAA2', 'BBB2', 'CCC2')
    Then I checked by Select statement, it has shown the values....No Problem....
    But, as a test, I deleted the connection and created a new connection tio the same DataBase with different name
    and when I checked by Select Statement....., it has not shown the values....????
    Does any mistakes....?
    Thanks for the directions...

    after you insert, update or delete any data in the database you must use "commit" or "rollback" statement. Commit if you want "save" the changes or rollback if you don't.
    Other users can't see this new changes until you do the "commit".

  • How export data from memo T app

    I have a Samsung Stratosphere.  I have data stored in the memo T application.  Apparently the data is stored only in the app and not on the SD card.  I need to get that data to my new Android device. Why I've tried and challenges encountered....
    Within the memo T application I find no command/option to export data
    Within the files application, I cannot find data from the memo T application.
    When I connect my Stratosphere to my computer using my USB I cannot see the data in the memo T app.
    Please help. Thanks.

    Was this issue resolved? I have the same trouble trying to find all my T Memos from my old Stratosphere and syncing to my new S5.
    I am not a software whiz so will require step by step hand holding.

  • Find out from which table a ES gets his data

    Hello,
    I'm now asking myself (for a couple of hours) how I can find out from which table(s) a Enterprise Service gets his data. I don't find any hint about this on ES Workplace, sproxy or soamanager. Has anyone a usefull hint for me?

    Hi Marco,
    This actually is an excellent question, as it allows to clearly realize, that ES Repository is only a modeling device and it does not contain any implementation details.
    If you are interested in implementation details, then Services Registry and the respective backend system are your friends, as Enterprise Services are implemented in these backend systems and then published in the central phone book - the Services Registry.
    If you haven't applied yet for the free access to the ES Workplace systems, do so as this will give you access to the SAP ERP discovery system that implements all the ECC related Enterprise Services.
    Now, if you want to see the implementation details for a given service - start from the ES Workplace. Go to the Services Registry and find an ECC service of interest. Then, on the General tab of the service you will find the Namespace and Internal Name. Having these two values, log on to the ES Workplace ECC system, start transaction SE80 and select Enterprise Services Browser. If this option is not available, go to Menu -> Utilities -> Settings and select Enterprise Service Browser. Find the namespace and the service (by its internal name) then navigate to the implementing code - which typically is an ABAP Object interface and an implementing class.
    The only reason I am referring to the ES Workplace Service Registry and its discovery system is, because it is a platform we all have access to. Each client builds their own SOA landscape, where only certain Enterprise Services are published in the Services Registry. And, of course, the system landscape can be more complex - containing not only ECC but other SAP Business Suite products. 
    I hope this helps a bit.
    Regards,
    Andrzej

  • Can't find my data from Time Machine network backup

    Migration assistant shows inconsistent sizes for applications, computer settings and other files/folders, about 30GB when I had 270 GB only in pictures.
    I did a clean Mavericks install.
    How do I find my data from the TimeMachine network backup?
    The size of the TimeMachine backup is consistent with what I had before ( >300 GB)...so how do I recover it?.
    I'm using a new user account name in the clean installation.
    Thanks

    Read a few threads about this being a problem with account access, so I renamed the account in my new installation to the account name used to create the backup and found the old accounts....now when trying to proceed it told me there was a conflict with the account name and i had to use a different one!!.
    Apple has stopped to be simple...
    So how are we suppose to use the migration assistant if either way there is a problem? ( using same or different account name )...

  • Migration assistant stalled ( 110 hours, after 30  hours ). How else can I transfer my data from PC to new iMac without wireless migration assistant?

    i am a new mac user
    i have a new imac
    was trying to transfer data from old pc to imac using migration assistant ( wirelessly )
    i had done it once already, but i noticed that although it took about 8 hours, very little data from the c drive was actually transferred ( i had not noticed i had to designated folders to copy )
    so i did it again, targetting folders on the D drive and my external hard drive F - lots of data ( about 300 GB )
    after an hour i noticed that the estimated time for completion was 88 hours ! i did let it run for about 30 hours anyway and hoped for the best ...
    this morning when i woke up the time remaining was estimated at 42 hours, but then it suddenly jumped to 110 hours !!!
    when i came home 8 hours later, it was still at 110 hours, so i stopped it - i assumed it had crashed ...
    i got a message that one folder on my pc might have been lost - corrupted
    incredibly, after more than 30 hours, no data had actually been transferred to my new mac !!!!
    in any case, i see now that migration assistant created a new user account anyway, which i do not want
    SO
    how can i transfer data from my pc laptop to my new imac, preferrably with a direct cable connection as opposed to wireless, directly into my main account
    and i how can i delete the other account migration assistant created in the initial "successful" transfer
    thanks
    chris

    baltwo wrote:
    Csound1 wrote:
    Connect an ethernet or firewire cable between the 2 Macs, Wireless is the worst way to do it (as you have found)
    Concur; however, the OP has one Mac and one PC (non-Mac). Details are in http://support.apple.com/kb/HT2518
    Ah yes, forget the Firewire cable then, use ethernet.

  • ICal reports that it can't find server, and lots of data from several years ago is trying to get attention.  Cannot bring up calendar in any view to use. also keeps loading unused calendar websites from long ago.  I can' remove them. what to do?

    iCal reports that it can't find server, and lots of data from several years ago is trying to get attention.  Cannot bring up calendar in any view to use. also keeps loading unused calendar websites from long ago.  I can' remove them. what to do?

    UPDATE: I had 36 Safari windows open and minimized on the dock from my last session; 20 of those windows failed to open b/c Safari "couldn't find the server"; I just went to the URL bar of all 20 pages and clicked return, and all 20 pages loaded perfectly, without dropping any images or losing formatting. This is a puzzle!!!

  • I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    I used time machine to restore on a formatted MAC. Now the HDD space has reduced by 100GB but I cannot see any of the files. How do I find and delete those 100GB data from the HDD?

    dglenn9000 wrote:
    I created a new user account just to see if it was my user Library or if there was something wrong with my system. And the new user account is doing most of the same things so I will need to do a full restore anyway.
    Not necessarily. I'd suggest downloading and installing the "combo" update. That's a combination (thus the clever name) of all the updates to Leopard since it was first released, so installing it should fix anything that's gone wrong since then, such as with one of the normal "point" updates. Info and download available at: http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate Be sure to do a +Repair Permissions+ via Disk Utility (in your Applications/Utilities folder) afterwards.

  • Need to know the sqluery to find the disabled date from OIM 9.1.0.1

    Hi Experts,
    Need very urgent inputs from you all for the preparation of our audit.
    We are using OIM9.1.0.1
    We need to know the sqlquery for finding the Disabled date in OIM given the user ids, as currently we are unable to get the exact data from Historical Reports Option in OIM.
    I need to give in this format:
    select usr_login, usr_disabled from schemaname.tablename where usr_login in
    ('aaa','bbb'..... etc)
    We have three attributes :USR_DISABLED_BY_PARENT,USR_DISABLED,USR_DEPROVISIONING_DATE,but none of them give the exact date,
    USR_DISABLED gives just a flag as 1 or 0.
    Also there are no other fields in the corresponding usr table.
    So how to fetch the exact Disabled date from OIM system when I input the user ids.
    Your immediate response is appreciated.
    Thanks
    SS

    In the entire thread many experts have given nice queries in different formats...
    The best approach would be to open up the SQL Developer, connect with the OIM Database and experiment with all sorts of SQL queries provided by all the experts..
    Learn some SQL techniques, like Inner Join etc...
    Then you yourself will be able to figure out what you need, in exactly which format, for which users and for whom you have to restrict
    Then not only this question, you would be able to solve dozens of similar such issues yourself...
    And trust me, nothing can match that...
    Just in case, you are not familiar with SQL Developer,
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    Oracle SQL Developer 3.2.1 (3.2.10.09.57)
    September 24, 2012
    The Disabled DATE will be the creation date of that entry in the UPA_FIELDS table when Users.Status changed to Disabled.
    SELECT USR.USR_LOGIN, UPA_FIELDS.CREATE_DATE
    FROM UPA_FIELDS
    WHERE UPA_FIELDS.FIELD_NAME='Users.Status'
    AND UPA_FIELDS.FIELD_NEW_VALUE='Disabled'
    AND UPA_FIELDS.UPA_USR_KEY=USR.USR_KEY
    AND USR.USR_LOGIN NOT IN ('XELSYSADM', 'XELOPERATOR', 'WEBLOGIC');

  • My old emails and documents are not showing up in email or finder both from the same date and I cannot find them anywhere. I do not believe I have any archive settings on. Any idea how I get them to show up?

    my old emails and documents are not showing up in email or finder both from the same date and I cannot find them anywhere. I do not believe I have any archive settings on. Any idea how I get them to show up?

    Hello gpbondi,
    The following article provdies step-by-step instructions for downloading your purchases both in iTunes and on your devices.
    Download past purchases
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • I was transferring data from my old iMac to my new iMac via Time Machine. After about 4 hours, the electrical power fluctuated and turned off my wi-fi. Now most of my necessary programs are useless. How do I erase and start over?

    I was transferring data from my old iMac to my new iMac via Time Machine. After about 4 hours, the electrical power fluctuated and turned off my wi-fi. Now most of my necessary programs are useless. How do I erase that mess and start over?

    Hello there, LynnS.
    The following Knowledge Base article and it's referenced link should get you started with the Erase and Install of Mavericks:
    OS X Mavericks: Erase and reinstall OS X
    http://support.apple.com/kb/PH14243
    Once you've gone through those 2 articles, this article should help you with restoring from your Time Machine Backup:
    OS X Mavericks: Recover your entire system
    http://support.apple.com/kb/PH14185
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Transferred backed-up data from external hard disk to new hard drive on my MacBook Pro which seemed to be successful. I now find that some (or maybe all) old emails have been resent. Can anyone tell me what has happened?

    Transferred backed-up data from external hard disk to new hard drive on my MacBook Pro which seemed to be successful. I now find that some (or maybe all) old emails have been resent. Can anyone tell me what has happened?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • How to find that from which table data is coming in datasource?

    Hi friends
    I want to find that from which tables data is coming into datasource 2LIS_04_P_COMP,2LIS_04_P_MATNR..
    I have searched in forums.. I also have checked in sap.help.. but I didnt get any tablename in field "Table of origin"..
    Please tell me how can I find that data is coming from which table into these datasources..
    I dont want name of the setup tables.. I want name of the original tables (in R/3)which has data..
    Regards
    Swati

    Hi......
    For  data source 2LIS_04_P_COMP............MCAFKO, MCAFPO, MCCOMP are the R3 communication structures...........
    Check these commonication Structure in SE11............I think u will get the required information........
    2LIS_04_P_MATNR is Material View from PP/PP-PI ..........check this..........
    http://help.sap.com/saphelp_nw70/helpdata/EN/88/7fc73c0c52085be10000000a114084/frameset.htm
    Check this each field in SE11....from there try to find out these fields belongs to which table..........as I hav explained u in another thread..........
    May be the extractor is using these fields from different tables.....
    Regards,
    Debjani........

  • Complicated Question (see pdf): Use data from one table to find the same data in a second table and take other data from that table and place it in a third table. :)

    I don't even know if this is posible.
    I'm using iwork '09 
    View PDF

    I hope I can clarify:
    For our purposes here:
    Table 1 = "Step 2 - Product Sizes"
    Table 2 = "Option id Master"
    Table 3 = "Export - Product Info"
    Table 1:
    The user would enter values for "productcode," "Horz," and "Vert"
    "Size" would auto fill based on values in Horiz and Vert (I have this taken care of already).
    Table 2: This is a completely static table that I want to search against. - Data from other tables in the doc does not alter or change the data in this doc.
    We just want to look at table 2. Find the existing value in "table 2 : size" column that matches the "table 1 : size" column  and then pull the "optionids" and "productprice" from that row.
    Can the value from "Table 1 : Size" be used as a search term in "Table 2 : Size?"
    Table 3: The user does not enter any values on this table. 
    "productcode" is pulled from table 1 - "Table 1 :: A5" = "Table 3 :: A5"
    "optionids" and "productprice" are pulled from Table 2 columns "D" and "E" - however we do not know which Table 2 row it is pulling from until we enter data in Table 1.
    As I'm writing this I'm realizing that
    A. this is probably really confusing to you.
    B. this may be impossible inside of numbers.
    If you have some other method that would facilitate the same out come but be structured differently please let me know.
    --- maybe to help you understand further what I am doing here is my current workflow:
    I record the size of a piece of art.
    Then I manually go to my "Option id Master" and find the same size.
    I then copy the corresponding "optionids" and "productprice" cells. (these options control the prices displayed on my website)
    I got to my "Export - Product Info" table and paste the values in the corresponding cells.
    I was hoping to automate this as it takes a long time when you have hundreds of products.
    Thanks for the help!

Maybe you are looking for