Req for FM for adding some days to sy-date

Hi experts,
     my requirement is I have some 'X' number of days to finish my work.
And I need to add these number of working days  (let me say 10 days )to the system date.
sy-date + 10 gives me the weekend days also.
so I need to skip the weekend days.
Do u guys have any FM or any logic to perform my task.
Thanks in advance,
Sudha........

Please do a search before posting.
FM BKK_ADD_WORKINGDAY (despite the name it also does subtraction).

Similar Messages

  • I got busy over the new year and forgot to purchase Applecare for my iPhone.  30 days past purchase date is too late - right?

    I got busy over the new year and forgot to purchase Applecare for my iPhone.  30 days past purchase date is too late - right?

    Thanks Peter.  I thought about that and had discounted the idea but since I am only 30 minutes away from my A store, I think I'll give it a try. I can be charming specially when I wear clean jeans and a nice top. :-) 
    Jerry H

  • Adding 30 days to a date in a dynamic LC form

    Hello-
    I'm working on a dymnamica form that is merged with XML data. In the XML, I get a FirstQuoteDate and bind it to the corresponding field in the form. I then have to calculate the ValidDate by adding 30 days to the FirstQuoteDate and display that date int he Valid Date field.
    I've tried several scripts with no luck. Below is the latest script I tried. I also tried the script in several different events. I believe it is the calculate event for the ValidDate field right now. Does anyone know what I am doing wrong?
    var QuoteDt = Date2Num(PROPOSAL.Page2Summary.FirstQuoteDate.rawValue, "MM/DD/YY")
    var FutureDt = QuoteDt+30
    var ValidDt = Num2Date(FutureDt, "MM/DD/YY")
    PROPOSAL.Page2Summary.ValidDate.rawValue = ValidDt

    What event should I be putting this script in? Am I thinking I can't put it in the Change event because the date isn't being entered through the form so the field never actually changes? Do I have to use a different event? The FirstQuoteDate and ValidDates are actually floating text fields in my form. I did find that example out there from a different discussion and have tried this script in the initialize event of the First QuoteDate field and it didn't work for me.
    ValidDate.rawValue = Num2Date(Date2Num(xfa.event.newText, "M/D/YYYY")+30,"MM/DD/YYYY");

  • Adding Business Days to a Date

    Hi everyone,
    I'm trying to add a certain number of working days to  a date,what I am hoping to get is a date excluding the weekends
    For example:
    If i was to add 12 working days to 01/05/2009 i should get 19/05/2009
    Thank You
    MT

    Mistook 01/05/2009 as Jan 5th and was wondering why your statements contradicted.  I see you mean May 1st.
    Try a formula such as this:
    numbervar i := 1;
    datevar c := date(#05/01/2009#);
    numbervar z := 12;
    datetimevar k := date(0,0,0);
    while i <= z do
    k := dateadd('d',i,c);
    (if dayofweek(k) in [1, 7] then
    (z := z + 1;)
    k := date(0,0,0);
    i := i +1;
    dateadd('d',z,c);
    where 'C' is the starting date and 'Z' is the number of working days.

  • Adding 1 day to a date in BPEL

    Hi,
    Im trying to add 1 day to a date in a BPEL proces. I saw that there was a xp20:add-dayTimeDuration-to-dateTime so I tried using this in several ways. I didnt expect the input variable to be a string. I tried converting my date to a string and adding 1 day like this:
    xp20:add-dayTimeDuration-to-dateTime(xp20:format-dateTime(string(bpws:getVariableData('inputVariable','payload','/ns1:GereedMeldenRoosterRequest/StartDatum')), 'YYYY-MM-DD'), 'P1D')
    But the variables which I try to fill stays empty. The element which I try to fill is of type dateTime. Is this maybe the error that add-dayTimeDuration-to-dateTime returns a string and it cannot cast it to dateTime?
    Can anyone tell me how to solve this properly?
    Thanks in advance!

    Hi,
    I refactored my expression to look like this:
    xp20:format-dateTime(xp20:add-dayTimeDuration-to-dateTime(bpws:getVariableData('inputVariable','payload','/ns1:GereedMeldenRoosterRequest/StartDatum'), 'P1D'), '[Y]-[M]-[D]')
    But the I receive an error: XMLElement cannot be cast to java.lang.String
    Then I tried:
    xp20:format-dateTime(string(xp20:add-dayTimeDuration-to-dateTime(bpws:getVariableData('inputVariable','payload','/ns1:GereedMeldenRoosterRequest/StartDatum')), 'P1D'), '[Y]-[M]-[D]')
    Because xp20:add-dayTimeDuration-to-dateTime needs a String as input and I dont know how getVariableData returned it but with this I get the error:Parse Error in string function
    Any ideas?

  • Adding hours/day to a date

    Hello,
    I have field of length 20 which contains date in the format “mm/dd/yyyy hh:mm:ss”.
    I want to add 5 hrs, 8 hrs, 2 days to this date value depending upon some condition.
    Can anyone please suggest how to do this or any FM which does this.
    Thanks in advance

    Hi..
    DATA : FA(20) TYPE c,
           FB(10) TYPE c,
           FC     TYPE d,
           FD(8)  TYPE c,
           FE     TYPE t.
    data : f_m(10) type c,
           f_d(10) type c,
           f_y(10) type c,
           f_h(10) type c,
           f_mi(10) type c,
           f_s(10)  type c,
           f_aa(10) type c,
           f_bb(10) type c.
    FA = '07/01/2007 08:09:10'.
    SPLIT fa AT space INTO f_aa f_bb.
    SPLIT f_aa AT '/' INTO f_m f_d f_y.
    SPLIT f_bb AT ':' INTO f_h f_mi f_s.
    add your logic...
    i want to help you.
    regards..

  • Adding Business Days to a Date to create New Date

    I am looking to add a formula to auto calculate a new date, but only want to count business Days.
    Currently I am using formula to calculate how many days need to be added:
    //ODD Priority Business Days
    If left ({DEFECT.PRIORITY}, 1)= "1" then 10    
    else  
    If left ({DEFECT.PRIORITY}, 1)= "2" then 20
    else
    If left ({DEFECT.PRIORITY}, 1)= "3" then 50
    else
    If left ({DEFECT.PRIORITY}, 1)= "0" then 10
    Now I need to create a formula to add these numbers to the date field, for conversation purposes, I need to add these business days to my "start date" to equil my "ODD date".
    Example, if my "start date" is 1/1/2009 and it is a Priority 2, then I need to add 20 business days to that, so the "ODD date" would be: 1/29/2009.
    Please help.

    Thank you Garrett Fitzgerald! Please see the modified formula which I meant
    {Startdate}
        + {@BusinessDays}
        - DateDiff("ww", {Startdate}, {Startdate} + {@BusinessDays}, crSaturday)
        - DateDiff("ww", {Startdate}, {Startdate} + {@BusinessDays}, crSunday)
    Regards,
    Raghavendra

  • Adding 1 day to a date of format YYYYMMDD format and it is char.

    HI,
    I have a column checktodate which is declared as char(8) and it is of format YYYYMMDD.
    some of the values in the checktodate column are null and blank also.
    I have to give a condition as
    checktodate+1>= sysdate.
    I am giving as
    TO_CHAR(to_date(nvl(CHECKTODATE,0),'yyyymmdd')+1,'yyyymmdd') >= TO_CHAR(SYSDATE ,'YYYYMMDD')
    I am getting the error as
    ORA-01840: input value not long enough for date format
    01840. 00000 - "input value not long enough for date format"
    *Cause:   
    *Action:
    kindly suggest.
    Thank you.
    Regards
    Chaitanya.

    I gave the below conditions like this
    select xyz,asdf,
    (CASE WHEN TO_DATE(checktodate,'YYYYMMDD')+1 >= SYSDATE
    THEN CHECKTODATE
    ELSE TO_CHAR(SYSDATE ,'YYYYMMDD')
    END) startdate
    FROM dummy
    where checktodate IS NOT NULL
    AND INSTR(CHECKTODATE,' ') = 0
    I am getting the following error
    ORA-01839: date not valid for month specified
    01839. 00000 - "date not valid for month specified"
    *Cause:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Add days to a date

    Hi all,
    I want to add some days to a date and get the final date.
    Example : I have a date in a field GS_DATE as 06/15/2006. Now I want to add some days say 14 days to GS_DATE and get the final date as 06/29/2006. How can I get this.
    Waiting for replies. Thanks

    hi Raju,
    This thread has a solution to the same requirement as of yours
    Check this thread out
    Re: Function module for DATE
    call function <b>'RP_CALC_DATE_IN_INTERVAL'</b>
             exporting
                  date      = '06/15/2006'
                  days      = 14
                  months    = 0
                  signum    = '+'
                  years     = 0
             importing
                  calc_date = wa_date.
    Regards,
    Santosh

  • What's Happening?? Some days after installing latest security up date for 10.5.8 on G4, both inernal CD/DVD drives failed to mount disks other than a cleaning disk which mounted and was imported into iTunes.No other CD or DVD disk will mount.

    What's Happening?? Some days after installing latest security update for 10.5.8 on G4, both inernal CD/DVD drives failed to mount disks other than a cleaning disk which mounted and was imported into iTunes. No other CD or DVD disk will mount.Is this a unique experience?

    Hello Robert,
    First, Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • I have some days ago started updating of Firefox for Mac OS 10.6.8 under Help but it is paused and the upgrading don´t continue when i start again

    I have some days ago started updating of Firefox for Mac OS 10.6.8 under Help but it is paused and the upgrading don´t continue when i start again

    Hi Ryan,
    I managed to find this reference specifically for restoring on Snow Leopard:
    If you are using Mac OS X Snow Leopard, start your computer from the installation disc. Then use the "Restore From Time Machine Backup" utility.
    Now that was copied from this more comprehensive reference:
    Mac Basics: Time Machine backs up your Mac
    You may also find this article helpful:
    http://pondini.org/TM/14.html
    Finally, I cannot see why Time Machine would leave out your playlists and ratings? Think about it. Why would Time Machine specifically copy everything BUT your playlists and ratings? Ryan, what are your options? I would have to ask you this: Are you certain that you properly did the sync? That is another/different forum altogether: Using iPhone /see subsection on Syncing.
    Either way...
    Best Regards,
    mm
    EDIT: For whatever reason I tried three times to edit out one of the redundent adjectives... either different or another which preceeds the word forum, but the advanced editor would (apparently NOT allow me to do so). I hope that it doesn't render without any adjective before the word forum.

  • Of clans but due to shortage of space i want to delete it for some days.If i delete the app and then reinstall it after a month should i start from the beginning or cont. from where i left

    i use ipad mini with retina display 16gb i love playing clash of clans but due to shortage of space i want to delete it for some days.If i delete the app and then reinstall it after a month should i start from the beginning or cont. from where i left

    However, I originally had the kindle app on there and when he is reinstalling it comes up with my kindle account. How do we change this?
    OPen teh Kindle app.
    Tap the i at bottom right then Settings > Deregister this device.
    -> http://www.amazon.com/gp/help/customer/display.html?nodeId=200375710&#managedevi ces
    He does not have an actual kindle so I am not sure if he would be able to create one anyways.
    The Kindle app is so you do not have to use a Kindle. Yes, he can have a Kindle account and not own an actual Kindle hardware device.

  • I have installed Photoshop element 12 trail version in my system and i worked also for some days but it given error that "cannot load default brushes because scratch disk is full " but scratch is 158GB free

    Hi,
    I have installed Photoshop element 12 trail version in my system and i worked also for some days but it given error that "cannot load default brushes because scratch disk is full " but scratch is 158GB free why whats the problem am not getting.

    That thread helped for a time.  But now it seems as though my computer is back to slow again.  But, some of the jargon is over my head as well.  Not sure I knew quoite everything they were talking about.  But thanks a lot for that, it helped I probably just need to reread it and follow the instructions again.  Thanks so much.

  • Close a plant for some days.

    Hello,
    I want to close a plant for some days. What is the best way to do that?
    The easiest way is to update the factory calendar. But this is customizing and transport. The users can not do that.
    To modify the available capacity in every work center is too much work.
    Who knows a better way?
    Thanks for suggestions.

    HI
    If you have PM also then the best way is to block capacity for tha days during which the plant is in shutdown by assigning the work centers to equipments and then make the maintenance order for that particular period.
    or if you dont  have PM then go to CR02> capacities> capacity header> insert intervals.
    during this interval for which the plant is in shutdown maintain tha capacity utilisation as 0%.
    Plz check and revert back
    I think it will work
    Regards
    Anupam Sharma

  • Hi ...Some days ago i bought a used iphone 4s....but i can't activate the phone...when i connect it to itunes it shown that activate the phone but the person was not give me the ID & password....pls help me for this issue....Iphone is my favourite ph

    Hi ...Some days ago i bought a used iphone 4s....but i can't activate the phone...when i connect it to itunes it shown that activate the phone but the person was not give me the ID & password....pls help me for this issue....Iphone is my favourite phone...in my child hood i love Apple products & till now......I can't activate it & for this reason i can't find the carrier network & can't make any call....pls help me...thanks for always support..My device ios is 7.1.2
    & IMEI is : *****
    Br-----------------------
    Fazlur
    <Personal Information Edited By Host>

    It's a security risk to post your IMEI number and I've asked the Hosts to remove it.
    If a second-hand iOS device has been 'Activation locked' then only the previous owner can unlock it, either by providing you with the account ID and password, or by removing it from his list of devices (as he should have done before selling it) - please see http://support.apple.com/kb/ts4515
    If you are unable to contact him to do this then I'm afraid you will not be able to use the device - there is no other way of unlocking it at all. Apple cannot unlock it for you.
    You should if possible return it to wherever you bought it and ask for a refund as in this event the device is completely useless.

Maybe you are looking for

  • IPhoto not syncing right with MobileMe

    I just created a couple of new photo albums in iPhoto '09 that I want to share with my friends via my MobileMe gallery. I've done this many times without a hitch, so I'm pretty sure I know what I'm doing. But this time I have a problem, that might be

  • JSF custom tag body content problem

    Hi, I'm having some problem with a custom tag I built, but the body of the tag content is not rendered correctly. I have:<foo:bar>     <ul>         <li>blah</li>         <li>blah</li>     </ul> </foo:bar> </pre>But the rendered html source look like

  • Where exactly do I find drivers for my ThinkPad Yoga?

    I'm trying to find the exact driver download page for my device. According to the label on the bottom, my device has the type 20C0-S0AX00. Searching for this on the driver download page does not find that model - but I'm pretty sure that my device re

  • SL Upgrade + Active Directory + Time Machine

    Hi all, We are running our Mac's in a Active Directory (AD) environment. Some users are using time machine backups and we are planning on doing upgrades to snow leopard for these users, and then restoring there account profiles (which are AD accounts

  • How to change audio track on a flv-video during streaming?

    Hello , I would like to stream a flv-video, but every time with different audio-track. So how can I change the audio track on a video-stream? Is there any server-side solution for this? I used to stream the audio on different stream - parallel with t