How to get the next Date
Hi All,
I have a date field in which when i enter the date and click on the button I should display the next day in another inputfield.
Ex: If i enter 12th Nov 2008 (11/12/2008)i should get 13th Nov 2008 (11/13/2008)
in the other input field.
Thank You in Advance.
Hi,
Following is the sample code based on todays date
Date dt = new Date(Calendar.getInstance().getTimeInMillis());
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.DATE, 1);
System.out.println(calendar.getTime());
OR
//Specifically for your sample dates
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.MONTH, 10);
calendar.set(Calendar.DATE, 12);
calendar.set(Calendar.YEAR, 2008);
System.out.println(calendar.getTime());
calendar.add(Calendar.DATE, 1);
System.out.println(calendar.getTime());
Regards
Ayyapparaj
Similar Messages
-
How to get the "current date" in the BEx?
Hi all,
I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
Thanks1. Create a New Formula in Key Figures structure
2. Give tech name and description and Select "New variable" option
3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
4. in next screene select the date characteristic that represents the first date to use in the calculation (From Date)
5. In the next screen select Key in the Replace Variable with field. Leave all the other options as they are
6. In the next Currencies and Units screen select Date as the Dimension ID.
6. Save variable
repeate the Above steps to create another variable (To Date)
and now you can use these two new replacement path variables in your new formula.
Dev -
How to get the next FACTORYDATE
Hello all,
Can somebody show me how to get the next (FACTORYDATE) from SAP in the objective to check and validate the shipto date in the ISA b2b application.
Thanks in advance.Hi Manuel,
my email: [email protected]
thank you in advance,
Djamel. -
How to get the creation date of an event/meeting
I need to implement some control rules on booking conference rooms depending on the creation date and start date.
For example:
- the booking cannot be accepted if the meeting start date is less than 2 hours ahead
at 3:00 PM I can book the conference room for a meeting starting at 5:05PM
but not for a meeting starting at 4:55PM
- the booking cannot be accepted after 5:30PM for a meeting starting the next morning before 10:00AM
at 5:45PM I can book the conference room for a meeting tomorrow at 11:00AM, but not for a meeting at 9:45AMHi Michel,
how to get the creation date of an event/meeting?When you use the calendar sdk to fetch a meeting there is an Icalendar(http://www.ietf.org/rfc/rfc2445.txt) property called CREATED with the creation time in UTC.
For example:
- the booking cannot be accepted if the meeting start
date is less than 2 hours ahead
at 3:00 PM I can book the conference room for a
meeting starting at 5:05PM
but not for a meeting starting at 4:55PM
You would want to implement these rules with with the sdk? That would implie that users connecting to the calendar server with any other client than the calendar sdk could still book these resources whenever they want.
Or you would want to go an validate all the meetings once they are already created?
Cheers,
Jean-Philippe -
How to get the actual data in ALV report
I am doing some upgradation work in that i am using Submit & And return and also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
With the use of set table for 1st display i got the ALV report but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get the actual data in ALV report, With the use of Any Function Module or with Coding,
with regards,Hi Saravana
I am sure you must be getting the values in tables of table parameters from every FM.
consolidate the values from tables of all FMs in one table and built ALV for that table only.
I hope this way you can show the actual data in ALV.
thanks
Lalit -
How to get the current date in a workflow
Hey,
Can anyone tell me how to get the current date while in a workflow?
Thanks in advance.Here is how we did it, hope it helps
<defvar name='locCalendar'>
<new class='java.util.GregorianCalendar'/>
</defvar>
<defvar name='dateFormat'>
<new class='java.text.SimpleDateFormat'>
<s>MM/dd/yyyy</s>
</new>
</defvar>
<defvar name='formatedDate'>
<invoke name='getTime'>
<ref>locCalendar</ref>
</invoke>
</defvar>
<invoke name='format'>
<ref>dateFormat</ref>
<ref>formatedDate</ref>
</invoke> -
How to get the current date ? in the form of dd/mm/yyyy?
Hi all,
As getDate( ), getMonth( ), and getYear( ) is depricated, how to get the current date or System date, month and year ? please help ??
Regards
AshviniHI,
Than u for the reply. But i am getting one error.
as u said, I tried to do so.........
but, i am getting one error.
code
Calendar cald=(Calendar.getInstance.getTime());
out.println(cald);
error message
validate$jsp.java:86: Attempt to reference method getInstance in class java.util.Calendar as an instance variable.
Calendar cald=(Calendar.getInstance.getTime());
^
1 error
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
Pls help
Regards,
Ashvini -
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju. -
How to get the manufacturing date of iphone 5s?
how to get the manufacturing date of iphone 5s?
thanksEnter your serial number here:
www.appleserialnumberinfo.com/Desktop/index.php
To find your serial number:
Settings > General > About > Serial Number -
How to get the pixel data so as to work on it?
Hi all,
I am trying to write a plug-in that will crop and scale the image, edit the selection in the image document based on image data. For this purpose I need the pixel data of the image. How to get the image data as different pixels and what is the data structure used to store this data?
Assumption: No layers i.e., only background
Thanks in advance,
SailuHi Ilya,
Thank you for your post. In the plugin architecture you propose (automation + filter), do you have an idea about how to share the pixel data between the two plugins? I have found a post that gives details about how to get pixel data and show it using ADM components
Matthew Hollingworth, "ADM Color Managed Preview?" #1, 22 Oct 2007 11:53 pm but it supposes that you have a filter plug-in.
Again, does anyone knows how to preview the current image in a AUTOMATION plug in? This seems impossible.
Thank you all for your help
Cheers,
Chaker -
The dates my photos were taken are not incorrect. Any suggestions on how to get the correct dates back?
Thank you Winston. This works and I can adjust several photos at the same time.
-
How to get the Next Material Document Number
Hi,
Please let me know How to get the next Material Document Number using Functional Module,
Material Document number are in MSEG table.
Regards,
GaneshHi Ganesh,
if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
now you can use your number range by calling the function module
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01' " here you have to give the number range number which you have defined in number range
object = 'ZPRODLOG' " Number Range
IMPORTING
number = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
each and every time next number will get generated .
i hope this will help you.
Thanks,
Tanmaya -
i have mac os x version 10.4.11 i have no idea how to get the next update because my computer wont do it on its own.
10.4.11 is as far as you can go with Tiger. You have to pay for the next update. It is not available via Software Update. Depending on which Mac you have, it can be Leopard, Snow Leopard, or Lion.
-
How to get the histoical data for newly added field in the cube?
Hi Experts,
I have small doubt on remodeling the infocube.
After adding the characteristic or keyfigure to a cube by using remodeling concept, how can I get the historical data for that particular field.
I have searched in SDN also but I didn't get proper information.
Please excuse me if I posted repeated question.
helpful answer will be awarded with poitns.
Thanks & regards,
Venkat.hi
depending on your customer need you could use the remodelling functionnality but sometimes you have no way to retrieve what you want so another option you should consider is the following:
Advantages
that will cost less effort and guarantee the result.
Drawbacks
data is redondant for a while
space (depending on the volume of historical data)
So here are the steps :
step 1Adjust your extraction process according to the fields you need to add to populate the cube.
step 2 Then create a dso next or even a cube, feed the dso with a full load with the enhanced extractor you adjusted with the new fields in step 1 only once in fact this should be one shot.
step 3 Copy the query to the previous built multi-provider on top of the new historical data from dso and the running live delta cube. Adjust the queries if necessary.
optionnal Then if you want to get rid of the dso or new cube for historical data you could empty the actual one push the data from the new data provider and that's all.
bye
Boujema -
How to Get the Current data into Planning Layout from the Planning cube
Hi,
I have a problem in BPS. I am selecting the data from cube based on Month org details but I want to see the latest data. How can i get this data into planning cube.
Like
data
Tran cal month org amt
1 jan a 100
1 feb a 200
if i want to read based on Tran org as input values I shoud get the below data but I am getting the previous data.
Tran cal month org amt
1 feb a 200
Kindly help me in this regard
Thanks
NaveenNaveen,
Are yo having issue when you save something in the layout, the data doesn't appear in the listcube ? Or do you have issue that the latest data you see in the cube doesn't appear in the layout ?
For the former issue, please look at your selections of listcube and for the second issue, please check your planning level definition, make sure all the restrictions you have applied are valid for this latest data to be presented in the layout.
Hope this helps.
Cheers
Srini
Maybe you are looking for
-
Need some help in what direction
OK, so i just got CS6 and have been watching lynda,com videos on flash pro. Im wanting to build a website like the one at helpmeinc.com. What im confused with is what programs with cs do i need to make a menu like that. Do i need to create a SWF file
-
I want to use the Thunderbolt connection for an external hard drive
I want to use the Thunderbolt connection for an external hard drive - so what port would I use on the MacBook Pro 13" for the display monitor. Thank you!
-
sir, can anybody explain about IDOC how it creeats and use in SAP and what are the types of IDOC. plz, explain with proper example.
-
How to made plugin using flex3 application
Hi All, I am working on transitiom plug-in for premiere pro cs3 ,using premiere pro cs3 SDK. now i am developing plugins by using adobe flex3 ,application name is transition viewer in which when click on thumbnail play the transition on the text
-
Instcoll.exe claims wrong minor MSSQL Version during WAS 6.4 install
Everytime I try to apply the instcoll.exe patch on my Database Server (MSSQL 2000 SP3) the patch states that it needs 8.0.780 instead of 8.0.760 to make the nesessary changes in order to install SAP. Is there a another version of instcoll.exe that wo