Use of java.uti.Date for comparison
Hi Friends
I am stuck in a problem for which i need help from you.
I have written code to convert a date object into a calander object for a functionality in my application.
I am getting the output in the following format after conversion
Thu May 31 00:00:00 IST 2007
Wed Jun 13 00:00:00 IST 2007
Now inside other method i reconvert the calendar object back to Date objects.the code is as below.
Date start=filterStartDate.getTime();
Date end=filterEndDate.getTime();
Now i need to compare the 2 Date objects here and check whether the startdate is less than enddate.
the date objects are again in the same format after conversion
Thu May 31 00:00:00 IST 2007
Wed Jun 13 00:00:00 IST 2007
Can anybody let me know how to do this conversion.If possible provide me piece of code to do it.
waiting for a positive reply from you side.
Regards
Vikeng
Resolved
Similar Messages
-
Anyone else getting a message that they have almost used all of their data for the month?
We just got a message saying that we have used 90% of our data for the month and we are only 10 days into the billing cycle. I looked at our account on line and it says that we aren't even close to using our total data for the month. When does all of the stupid stuff stop? When I switched to Verizon 10 years ago, they were great. Great customer service, great plans, etc. Now that has gone away. The 4G service is an absolute joke. Where I used to have great service, there literally is none, and the phone won't even switch to 3G if it is in a bad area. I travel through a major city every day and I am amazed at how crappy the service is.
Now I'm getting messages that aren't even correct??? I have a lot of lines on my account and I don't want to go elsewhere, especially since I live in the country and Verizon is the only way to get decent internet service, but this is getting rediculous. I guess listening to the customers doesn't matter anymore as long as they get their money.Hi GeoffPrice
I'm sorry to hear your getting alerts that are incorrect. Let's get to the bottom of this. What zip code are you in? Are any other devices having the same issue on your account?
JoeL_VZW
Follow us on Twitter @VZWSupport -
Which tables are being used to extract the data for the materi Extractors
Hi
please advise which tables are used to extract the data for the extarctors
0MAT_SALES_ATTR,
0MATERIAL_ATTR,
0MAT_PLANT_ATTR
0PLANT_ATTR
,Many thanks.Hi,
Activate a database trace using ST01. Then perform the MM03 operation and goto the SD Texts tab. Now stop the trace and see if you can locate either a table or program which you can utilize in the log.
http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f993545a11d1a7020000e829fd11/frameset.htm
Hope this helps..
Rgs,
Ravikanth. -
Use JDBC to query data for JSP Report
Hi all,
I met a trouble when use JDBC to query data,
it can show data in report builder, but get error when call from url for exxample: http://localhost:8889/reports/TestJDBCReport.jsp
found error message:
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. REP-0069: Internal error JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
REP-0069: Internal error
JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
anyone know pls help me
Many thanksAs a general rule, it's a good idea to separate the
presentation (JSP and HTML) from the business rules
(database access). I know you didn't do that on the
AS/400, you had display files and business logic in
the same program (at least, we certainly do in ours),
but it's a good policy to follow in the web world.
That means, don't put your database access code in
the JSP. Other than that, it depends on the data.
If you have simple data (e.g. customer's name and
d address) then a Java bean would suffice. If you
have complex data (e.g. customer's payment history)
then a bean still might suffice. You would use an
"include" if you had some data (static or dynamic)
that you wanted to appear in several different pages
in the same form.Thanks, I figured putting the code in the JSP was not the best way, but I wasn't sure about the other options. -
Which data source to be used to bring sales data for customers???
Hi Gurus,
I am using 0FI_AR_4 data source for one of report for DSO calculation.
To complete the DSO( Daily Sales outstanding) calculation in BW I need sales data also for each customer.
And this should be for all the past 12 months. Based on past 12 months sales data for each customer DSO calculation will be done.
As this sales data is not available in the the 0FI_AR_4 data source so which other datasource can I use for the same purpose to bbring the sales data for the customer. I am thinking of COPA datasoure..... will it be right choice????
Or I can go with some other option???
Thanks in advance......
Uday Shankar.Uday,
You can use datasource: [2LIS_13_VDITM - Billing Document-Item Data |http://help.sap.com/saphelp_sm32/helpdata/EN/73/0bf23839caf878e10000000a114084/frameset.htm]
datasource provides billing data item level.
Srini -
Using NetBeans Java ME Designer for List
I'm using the Java ME screen Designer in NetBeans. I'd like to create a simple list from which users can select one option. I know how to write code to do it, but how do I do it through the screen designer?
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.xml.ws.BindingProvider;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
you can add username for weblogic client using
// Create list of credential providers
List credProviders = new ArrayList();
// Create user name token provider
ClientUNTCredentialProvider unt = new ClientUNTCredentialProvider("weblogic", "weblogic");
credProviders.add(unt);
credProviders.add(cp);
// Finally add the credential providers to the request context
Map<string, object=""> requestContext = ((BindingProvider)brokerService).getRequestContext();
requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders); -
Can we Use GGate to multiple data for performance testing?
Hi,
My team has a requirement were we would like to multiply data 2x, 4x, 8x time so that we hava a good amount of data for testing in DB. We have a Master data created and using the reference to that master data we wanna do the multiplication.Say I have 10 records in DB.
Now Can I increase the data to 20, then to 40 and So on by taking this 10 records as master and changing their Ids/other details that needs to be unique.
And ya that should be in the same DATABASE (DB1 ---- 2X---> DB1)
Edited by: Lother on 23-Jan-2013 23:36 -
Using a range of dates for Key Date
In a HR Bi data warehouse, we have a position-to-position hierarchy, where each of the nodes are time dependent. So, it shows for each node, valid from and valid to dates, and all the employees who are reporting to that position. This hierarchy is built on the infoobject 0HRPOSITION, which is maintained in R/3 and extracted to BI.
Let us take an example: Position 1000 is valid from 1-1-2006 to 6-30-2006 Employees reporting to this position are A,B,C,D
Position 1000 is valid from 7-1-2006 to 12-31-9999 Employees reporting to this position are A,E,F,G
When a user chooses the position 1000, and date range 1-1-2006 to 12-31-2006, it show the complete list of employees as
A,B,C,D,E,F,G.
Because the Keydate can only be a single value, and it is automatically taking today's date, and pulling the nodes based on that.
I have created a hierarchy node variable on the 0HRPOSITION infoObject, and entered the value 1000, with no value for the keydate.
The system is simply showing employees, A,E,F and G. That is my problem
My requirement is this: I like to be able to give a date range, (for the hierarchy) say from 1-1-2006 to 12/31/2006 and get the complete list of Employees, which is A,B,C,D,E,F,G.
Is this possible? Can I change the way this hierarchy is defined so that I can pull the possible values for a range?Thank you Ajay.
After some thinking, I have realized that these options will not work.
We have a position-to-position hierarchy that shows who reports to who in the organization. This hierarchy is built on the Infoobject 0HRPOSITION. Each node in this hierarchy has is time-dependent. Note that, the entire hierarchy is not timedependent. Only the individual position nodes are time-dependent.
This 0HRPOSITION infoobject exists in the Heacount cube as one of the characteristics. Here is my requirement.
1. I want to show in a report, all the employees (directly or indirectly) reporting to a manager for a period of say, 1 year?
I know that I can specify a key date for the hierarchy 0HRPOSITION, then the report will show all the employees (direct and indirect) reporting to a position say 6/30/2008. I don't want this for a specific date, I want to get ALL the employees (direct and indirect) reporting to a position in a range of dates( say 1 year)
Does that make sense? How do we achieve this goal? -
Set username/password using in Java client proxy for a JAX-WS webservice
Hi, i am invoking one deployed EBS webservice , while trying to run that client program me
i am getting error WSSE security, where can i set Uname pwd , through java program me
++Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Missing <wsse:Security> in SOAP Header
Thanks Regards
Raj
Edited by: 952094 on Jan 23, 2013 1:42 PMimport java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.xml.ws.BindingProvider;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
you can add username for weblogic client using
// Create list of credential providers
List credProviders = new ArrayList();
// Create user name token provider
ClientUNTCredentialProvider unt = new ClientUNTCredentialProvider("weblogic", "weblogic");
credProviders.add(unt);
credProviders.add(cp);
// Finally add the credential providers to the request context
Map<string, object=""> requestContext = ((BindingProvider)brokerService).getRequestContext();
requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders); -
Is it possible to use XDK java + plsql 9i for an 8i DB ?
Hello,
I would like to know whether there are some problems to use
the XDK for java + pl/sql 9.2.0.1 with an oracle DB 8.1.7.3 ?
If there are some problems, please let me know what kind of problems I will meet.
Regards
FAThere is no problem. I use it on 8.1.6
-
Can we use actual and plan data for same cube?
hi friends,
can we use actual data and plan data in same cube in bps.
Thanking u
suneel.Hi,
Let us take std cube 0SD_C03 where we store billing info,sales order info and delivery info. But still in reporting we can get values without any mismatch in their respective KF. It is possible because of a cahracterstic called Documnet category which gets values in update rule by constant .
Similarly we can have 2 types of data (plan and actual) in a single cube by having different value for a characterstic. Most frequently used characterstics for this are 0VERSION and Value type.
With rgds,
Anil Kumar Sharma .P -
How to use S_AHR_61016380 to retrieve data for PA30
Hi Dear Experts,
If I accidentally delete or overwrite a record in PA30, I learnt the lost data can be retrieved from the log and entered back in using S_AHR_61016380, but into this report, i dont know how to retrieve the data.
could you please kindly help?
Thank you so much. Xiaolifirst I made a mistake, this report is only change log report, cannot retrieve data; second, but still don't find solution to retrieve data...
-
Evaluating XML data for comparison
Does anyone know if it is possible to evaluate an xml node to see if it holds a specific value, and if so how?
I am trying to do something like this...
Set myChild = myRoot.evaluateXPathExpression("//collections/page/pnum")
if myChild(1) = 1 THEN
[do something]
Else
[do something else]
End if
I keep getting a "Object does not support this property or method" error on the first line of the if statement.
If I placeXML into a text frame I can get the value of myChild(1), so I know the XPath is correct and there is something there, I just can't figure out how to use it.
That particular node should hold the value of 1.
I am using VB and CS5.5, but javascript answers/ examples are fine.
thanksI got it figured out. If anyone else cares to know, it goes like this...
if myChild(1).contents = 1 THEN -
How to use java.sql.Date ?
hi there:
I used
ps.setDate(27, new java.sql.Date(new java.util.Date().getTime()));
ps.executeUpdate();
in my code to insert the current date to the 27th column of one table, this column's type is DATE, the database is ORACLE. However, I got the error like this one: ORA-01843: not a valid month.
I think I incorrectly used the java.sql.Date API to cause this error. So anyone can tell me how to use it correctly?
Thanks for the answers,
SwayOther columns are all VARCHAR2 type;
The oracle error message indicated that this is a
date-related one. 27th are the only column using DATE
So I came to draw my conclusion that the SQL might be
wrong.Except that if, for example, the date column is actually at index 26 then Oracle might try to convert the string being passed in (at 26) as a date. But it isn't a date. So then oracle is going to throw an exception indicating that something is wrong - like that the month is invalid. -
Iphone 5 using huge cellular data for push notification
iPhone 5 push notification using so much cellular data...how to fix this...plz help?
I am using iPhone 5 iOS 7.0.6. It's using so much cellular data for push notification. It's using 130 kb per hour...plz help me...I use only one yahoo mail account. I get everyday one or two mail..I don't use iCloud.. I don't have Facebook app...and I don't use skype..I have only viber app...I try to delete viber to solve this problem...but it didn't solved..I turned off push but nothing happen...I also erase all content and setting but didn't solve...
Plz help me...plz...
Plz it's hogging my callular data...plz anyone know how to solve this.I've just spoke on the phone and with 3G activated it gets quiet hot,and with 3G off it gets a bit hot..
In an Italian iphone forum told me to restore it as new iPhone and try if it gets hot(they say it could be an application problem)
What do you think??
Maybe you are looking for
-
I have a dent in my Macbook Pro 15 inch, early 2011 It is located near the battery indicator on the side of the laptop. How much will it approximately cost to fix this? This dent caused small gap between the unibody and the bottom case. Thanks a lot
-
My iPad air won't charge. I am using the cable suppied. It shows the charging icon for a split second then says not charging. I have tried re starting and nothing changes.
-
Hi, This might be an age old question - but I can't seem to find a nice elegant solution - is there any support in JSF for GET parameters? Are there any plans for this to be included? What can I do in the meantime?
-
What happens when the Main Flash is 25 fps and an external SWF file is 12 fps?
Hello everyone, I have a Main Flash which is set to 25 fps. This Flash is used to load an external swf file which was created using 12 fps. I would like to know what really happens when the Main Flash loads the external swf file? Does the Main file f
-
My purchased music on ipad is not showing up on iphone
I bout music on my ipad but its not showing up on my iphone like it says it should thru icloud. Everything was set up correctly but no music on iphone! :-( what do I do?