Adding the 3 digit days to date
Hi Folks
I want display the future date by adding the no of days to the current date, here the intresting thing is the user wants enter the 3 digit number also( EX: 360). i analysed the all standard FMs, which are accepting the days in 2 digit ormat only.
could please tell me is there any a FM support this functionality. or can i code the required logic in program itself? if yes , please explain how?
thanks in advance.
regards
priya:)
Hi Priya,
U can use the FM <b>"ADD_TIME_TO_DATE"</b>
CALL FUNCTION 'ADD_TIME_TO_DATE'
EXPORTING
i_idate = <b>sy-datum</b>
i_time = <b>30</b>
i_iprkz =
I_RDMHD =
IMPORTING
O_IDATE = <b>ws_Date1</b>
EXCEPTIONS
INVALID_PERIOD = 1
INVALID_ROUND_UP_RULE = 2
INTERNAL_ERROR = 3
OTHERS = 4
Reward if helpful
Regards,
Tushar
Message was edited by: Tushar Marshall Dass
Similar Messages
-
I have deleted the contact, rebooted, changed the contact name and added the ten-digit number. Send Message reverts to the old contact name, refusing to recognize the new contact name, or the ten-digit number. How do I overcome this sticky piece of messaging memory? I have an iPhone 4 with iOS7.
The fix for this problem is easy and is set out here: http://edctips.blogspot.com/2014/09/fixing-iphone-texting-problem.html
-
Dear all
Using form6i and run in c\s
is it possible to add days of date.. example the format of date is 02-mar-07
in text item i enter 3 then the date will become 05-mar-07. it depends what number will be entered in textitem and it will add to the days of date..
|Another example is: date format is 29-mar-07.. i entered 4 in textitem the date will become 02-apr-07 ...
Could anyone help me to do this or is there any ideas must simplest than this that can add a days of a date plz help me need in school requirements...Say, you have two items
b_day.txt_refdate - the refernce date.
b_day.txt_inc - the number which should b added.
b_day.txt_result - to store the result.
in WHEN-VALIDATE-ITEM of b_day.txt_inc, write
begin
b_day.txt_result := to_date(b_day.txt_refdate + b_day.txt_inc,'dd-mon-rrrr');
end; -
Just got a new iphone5. Why are addresses for every e-mail I've sent for the past 2 days added to my contact list -- not just once, but twice!? How can I stop this from happening?
Firefox doesn't store email addresses except as form data; data that you typed previously into Firefox.
See if clearing form history solves that problem: [https://support.mozilla.org/en-US/kb/control-firefox-automatically-fills-in-forms?esab=a&s=clear+form+data&r=5&as=s#w_clearing-form-history Clearing form history] -
Adding Number of days to date in XI
Hi
I have a scenario where in i have add the number days to date.
ex: if the date is 02092009 and if the days is 30. then the result of adding days to the date should be 02102009.
Do we have any readily available UDFs in XI if not it would be appreciated if i can get some procedure to implement this.Hi ,
you can use this code in user defined function
Calendar cal = Calendar.getInstance();
/* here u can parse the individual values for year month and day, other calendar function are also available .*/
cal.set(1999,11,28);
/* here instead of value 30 u can pass the specific node integer value to add the no of days.*/
cal.add(Calendar.DATE, 30);
return cal.getTime().toString();
Regards,
Syed -
I recently upgraded my Ipad to 'iOS 7' , after following the instructions and some confusion I added a 4 digit 'code' as requested. After getting used to all the new icons etc.the Ipad worked O.K.
Later in the day when I switched it back on I was asked to enter my 'code' - which I thought I had done, but by mistake I entered my 'password'. after tapping 'done' the message ' iPAD Disabled' appeared.
Please can anyone assist me? I am a OAP with limited computer experience.
Mary DunnIf your device is disabled...
Connect to your computer in recovery mode per the instructions in http://support.apple.com/kb/HT1212
You may need to do this more than once. -
Library Duplicated
I just updated to the latest version of iTunes and it duplicated virtually every track in my library. I need a quick way to delete the duplicates. Sorting by "Date Added" will not work, because every track is listed as added on 12/12/2011 even though this happened today 12/19/2011.I've written a script called DeDuper which can help remove unwanted duplicates. See this thread for background.
tt2 -
I purchased an iPad mini on October 10th. I want to return it and get the new ipad mini retina when it comes out. I am currently still within the 14 day return/exchange window but how can I exchange it if the new ipad mini release date isn't until "later in November", which would be beyond the 14 days from my purchase date? If apple announces a new version of a product you just purchased but won't actually release it for more than 14 days, how can you possibly exchange the one you just bought? Is my only option to return the one I bought on the 10th (so return by 10/24) and then not have an iPad until the new one is available for purchase? Or would it make any sense to return the one I bought, get a new one, which would presumably have another 14 day return window, and then exchange THAT one for the new ipad mini w/ retina when it comes out (hopefully within that second 14 day window)?
Call the apple store you got it from and ask them. Sometimes in the past they've extended the 'no questions asked return' but only Apple can tell you for sure.
-
How to get the number of days of a month belonging to a date interval
Hi, i am getting mad around a problem, i have 2 dates and a month, i wanto to retrieve the number of days belonging to the month that are in the interval.
eg:
month january 2011 . begin_date = 11/JAN/2011, END_DATE 30/MAY/2011 result is 21
month january 2011 . begin_date = 11/DEC/2010, END_DATE 10/JAN/2011 result 10
month january 2011 .begin_date = 02/FEB/2011 , END_DATE 25/may/2011 result 0
month january 2011. begin_date = 03/JAN/2011 , END DATE 05/JAN/2011 result 3
and so on ...
i appreciate any suggestion
thank you
AndreaOh, I didnt see your result.
SQL> with t as
2 (select to_date('11/01/11','dd/mm/yy') from_dt,
3 to_date('30/05/11','dd/mm/yy') to_dt,
4 'Jan-11' mnth from dual
5 union all
6 select to_date('11/12/10','dd/mm/yy') from_dt,
7 to_date('10/01/11','dd/mm/yy') to_dt,
8 'Jan-11' mnth from dual
9 union all
10 select to_date('02/02/11','dd/mm/yy') from_dt,
11 to_date('25/05/11','dd/mm/yy') to_dt,
12 'Jan-11' mnth from dual
13 union all
14 select to_date('03/01/11','dd/mm/yy') from_dt,
15 to_date('05/01/11','dd/mm/yy') to_dt,
16 'Jan-11' mnth from dual
17 )
18 select from_dt,to_dt,mnth,
19 greatest(
20 least(last_day(to_date(mnth,'Mon-yy')),to_dt)
21 -
22 greatest(to_date(mnth,'Mon-yy'),from_dt)+1
23 ,0) cnt
24 from t;
FROM_DT TO_DT MNTH CNT
11-JAN-11 30-MAY-11 Jan-11 21
11-DEC-10 10-JAN-11 Jan-11 10
02-FEB-11 25-MAY-11 Jan-11 0
03-JAN-11 05-JAN-11 Jan-11 3 -
Next upcoming expert day Looking forward to the next Expert Day any estimated date of the event
next upcoming expert day Looking forward to the next Expert Day any estimated date of the event
it‘s great to be able to post in the forum and obtain help
my gratitude and appreciation is certainly provided; may I inquire
as to any estimate Is there another
Upcoming Expert Day Event
Since the designated Expert Day is stated as the event has now concluded for
Expert Day in English (Consumer) - April 18-19, 2012
Hopefully before September
Thanks
RespectfullyHowever if it is Sep I’ll gladly wait and that is still excellent the designated Expert Day’s are great
my gratitude and appreciation is certainly provided.. -
MacPro backed up to Time Machine, added Mac Mini now get "The backup disk image “/Volumes/Data/Jerry Booher’s MacBook Pro.sparsebundle” is already in use." error when Mac Pro tries to back up
It is standard Mountain Lion error due to the networking ability which is comparable to wet string. (actually that was lion.. it dried out some with Mountain Lion.. higher in the hills perhaps!!)
See C12 and C17
http://pondini.org/TM/Troubleshooting.html
But many people are suffering the same issue..
And the above is even a little out of date.. you might need to do a reset to the TC.
Welcome to Apple's beta program for everyone. -
For the past several days, I have been getting this message during backups:
Time Machine could not complete the back up. The backup disk image "Volumes/Data/bhoppy2's iMac.sparsebundle" could not be accessed (error-1). When I click on the 'help' icon on the message, it reverts to a blank page, and I cannot find anything online regarding the term 'sparsebundle.' In addition, I cannot access previous backups any longer.
Help?See C17 in Time Machine Troubleshooting by Time Machine guru Pondini:
http://pondini.org/TM/Troubleshooting.html -
How to get the first day in the month from a domain date ?
Hi,
I like to know how to get the first day in the month from a domain date?
Thanks
StephenHi Gokul...
Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
Its similar to the above one but instead of writing case statement you can achive the following.
data : w_res type i,
w_data type d,
w_res = w_date mod 7.
w_date = w_date - w_res.
write w_date.
This works.
Regards,
Siddarth -
How do you work out the number of days difference between two dates?
I'm running Crystal v12.
We use a date field in our SQL database that we use to store the client's year end date.
As the year end date (date and month) doesn't change for a client, the year end date field in all of our reports is set to just show the DD/MM part. Over the years as new clients are set up we just enter the date and month - the year part is irrelevant although as in all date fields the year is automatically entered.
Doing it this way means that we don't have to adjust the year end year part each year. We just use the DD/MM part.
I need to create a formula that works out the number of days there have been (i.e. the difference) from the current date to the year end date. It MUST EXCLUDE the year however.
For example:
Year End Date = 30/04/03
Current Date = 25/05/10
Days Difference (EXCLUDING year) = 25
Days Difference (including year) = 2582
Year End Date = 31/03/09
Current Date = 25/05/09
Days Difference (EXCLUDING year) = 55
Days Difference (including year) = 420
If you include the year part then working out day difference is simply a case of creating a formula that subtracts the year end date from the current date (CurrentDate - {tblClient.YearEnd}.
HOWEVER I need to exclude the year part.
Can anyone tell me the formula or best way to do this?
Thanks in advance.
Edited by: BadBoy House on May 25, 2010 3:15 PM
Edited by: BadBoy House on May 25, 2010 3:15 PMHi
You can try this
datevar e := date(year(currentdate),month({tblClient.YearEnd}),day({tblClient.YearEnd}));
numbervar num_days := datediff("d",currentdate,e)
Create a datevar called e that uses the original month and day numbers for {tblClient.YearEnd} but uses the year of the current date
Then just datediff on e to get the number of days between the two dates
I hope i understand your problem and that this helps
Best regards
Patrick -
Position of the days and dates being on the right side of the day in the week calendar.
I'm having a huge problem with the days and dates being on the right side of the day in the week calendar. Can I change that to the left upper side?
it makes the whole schedule off balance you see.Thanks for stating that. So quickly. That *****. I also now see that more people have problems with this. Where can I complain?
Maybe you are looking for
-
Copy Resources at a Class Level
I need help. I have a requirement from our users to be able to acopy resources pertaining to a class. I am looking at the OTA User's guide and it is being mentioned that this can be done through copying an activity. I search for this functionality on
-
How do I add a video to my iPod Touch 4?
I've got some videos that I want to watch on my iPod. When I press the synch button after I added them on iTunes, they won't appear in the Video app. I looked in the Music app as well. Note: the videos are mp4's
-
Hi I have tried to implement a sample version of jfreechart which is a component for graphing but unfortunatly there is an error with importing some of the libraries i have added all the . jar files to the Class Path and i have opened the .jar file i
-
Pro Applications Update 2005-01 keeps reappearing in Softwware Update
Hello. For the past few weeks, Pro Applications Update 2005-01 has shown up in Software Update. I have installed the update quite a few times, and it keeps appearing. I've told it to install several times. Computer info below is still accurate.
-
Hi, I have a doubt regarding the field symbol assignment. In my program, I have logic as below. <b> W_1STCNTFLD = 'E_INV_AGING_STRU-PDISCCNTP1'. W_2NDCNTFLD = 'E_INV_AGING_STRU-PDISCCNTP2'. ASSIGN (W_1STCNTFLD) TO <FS1>. ASSIGN (W_2NDCNTFLD) T