Possible Problem in type Date

In the documentation about the DATE. They say, when you create a date(long), the date is create with the date 1 Jan 1970 00:00 + the parameter, so if you call the date(Long.valueOf("0")) the date isn�t 1 Jan 1970 00:00, is 1 Jan 1970 01:00. Then I think the date don�t start at this date, but at 1 Jan 1970 01:00.
the code to try:
System.out.println(new Date(Long.valueOf("0") ));
if you try with:
System.out.println(new Date(Long.valueOf("-60000") ));
you get 00:59, then there are sure something strange there.
It�s correct or there are something i don�t know?
I�m using JDK 1.5+eclipse.
thank
Edited by: cookie_monster on Jul 21, 2008 5:12 AM

the most related is this.No it isn't. 'This forum is for discussion of the proposed extension of the Java Programming Language with generic type declarations and methods, and for discussion of the prototype implementation provided by Sun.' Nothing to do with your question.
Do you know where i can send it?No.

Similar Messages

  • Problem in creating data type

    hi..
    i've problem in creating data type in xi after importing idoc from the R/3 sender
    plz tell me the basic steps for creating data type in the receiver i.e xi.....
    thanks in advance

    Hi,
    You don't need to create a data type after importing the IDOC.
    Idoc itself acts as message type and message interface.
    check this for creating a data type..
    http://help.sap.com/saphelp_nw70/helpdata/en/2d/c0633c3a892251e10000000a114084/frameset.htm
    Thanks,
    Vijaya.

  • In condition records section Search help problem at one data type

    hi there,
    we are upgrading 4.6c version to ecc 6.0 past january. but in
    vk11/vk12/vk13 condition master records sections, we have a problem for
    one data type search help. when we want to join sales deal code to sales
    detarmination condition, at one tables rows type price list (data type =
    pltyp_d) does not allow f4 (search help).
    thanks your interesting.
    Sinan Altıner
    Betek Boya ve Kimya Sanayi A.Ş.
    SAP CONSULTANT / ABAP Developer

    Hi surya,
    I per your suggestion i did like this ,
    data : date1 like sy-datum.
    types : w_date1 type sy-datum.
    date1 = w_date1(ztable-date1). "ztable-date1 - is screen field.
    but it is giving error "The field "W_DATE1" is unknown, but there is a field with the similar name "DATE1" . . . ."
    actually that value is coming after triggering PBO event but i want that value in at time of calling F4 help at that screen filed
    suppose on screen the fields like
    date : 30.08.2008.
    matnr : ( .............F4 )  '".....on this field when i m pressing F4 that time only that above date materials should come as per my first query see my first thread.
    thanks,
    Sanket.

  • Output Variable - Type: Date - Problem with WSDL in Designer

    Greetings,
    We are seeking some information about the following:
    We have a process in Process Designer that has and output variable of the type: Date. When the process is activated and we connect to a WSDL in LC ES Designer we get both a DATE and CALENDAR in the Data View.
    Hope that is at least somewhat clear. Please respond with any help or questions.
    Thanks,
    Rick Kuhlmann
    Tech-Pro

    This is to distinguish between java.util.Date and java.util.Calendar types. If the date is returned as java.util.Date, it will be in the DATE.date field. If the date is returned as java.util.Calendar, it will be in the DATE.calendar field.
    There are a bunch of xPath dates function in the xPath builder you can use.
    Jasmin

  • Problem not seeing timestamp but variable of type date

    Hi everyone I am trying to do the tutorial @ http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm....
    But when I have generated my java objects from table, in my classe example ServiceRequest.java my variable requestDate is of type Date not Timestamp as said in the tutorial .... Will it have an effect on my application if i continue with Date or should i change it to Timestamp by using refactor...... Will it have any impact am new to TopLink here .. I have completed the srdemo tutorial using EJB 3.0 everything goes fine.,.....
    Can you help me please. Thank you for you help...
    Regards
    Lutchumaya

    Ok am sorry here is the link i have downloaded the tutorial.....
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/ADF_tutorial.pdf
    Yeah but i should get the variable of type Timestamp not Date as mentioned in the tutorial................
    Thank you for your quick reply Frank.
    Regards
    Lutchumaya

  • Urgent: Problem opening a data form that uses a smart list

    Hi, we've got a problem with a data form that is quite unusual.
    The data form was working perfectly until yesterday when we put a smart list in it. The smart list is composed of 8 possible choices activated by the following member formula:
    IF (SML==1)
    ((BDG->BegBalance->&CurrYear)/12);
    ELSEIF (SML==2)
    ((INC_BDG->BegBalance)*("01A2"->ACT_FINAL));
    ELSEIF (SML==3)
    ACT_FINAL->&PreYear;
    ELSEIF (SML==4)
    (INC_ACT->&PreYear)*("01A2"->ACT_FINAL);
    ELSEIF (SML==5)
    ACT_FINAL;
    ELSEIF (SML==7)
    (INP_PER)*("01A2"->ACT_FINAL);
    ELSEIF (SML==8)
    INP_ASS;
    endif;
    Initially we tested the functioning of every different choice in the smart list and it was working properly. After a while we tried again to change the choices combination and we couldn't open the data form due to an error.
    It is quite strange because sometimes it work and sometimes it doesn't. In the data form (that is very large) there are many accounts and scenarios that are dynamic calc, in addition to the smart list formula; we tried to open the form two minutes ago converting the data storage type of a scenario from "Dynamic calc" into "Dynamic calc and Store", and it seems to work at the moment... does planning have a memory limit? Can someone suggest a solution (or help us find out the reason)?
    Bye

    Anton,
    new thread is one possibility, but the messsage box is not win message box, but SAP form, so I think you can clcik there without new thread too.
    Check this thread, hope it helps
    Re: Confirmation Dialog in my way

  • Not possible to determine shipping data for material  in PO(STO)

    I
    m doing STO for intra copmany code(plant to plant stock transfer),I have done all STO setting ,maintain material with plant and storage condition,loading groups , maintain customer with storage condition,created vendor with supplying plant.setting is done for supplying plant and receiving plant .
    Supplying and receiving plant combination with document type UB.delivery type NL and checking rule RP.Also maintain sales area for both plant.
    But when I m creating PO in ME21N below error is showing..
    *Not possible to determine shipping data for material ,kindly suggest if I have missed any setting...
    Regards,
    Vipin

    Hi Sharan,
    Thanks for your reply.
    problem got solved but in different way ,STO setting was wrong.
    I didn't maintain delivery document type(NL) on plant level  It was maintain at storage location that's why system couldn't determine shipping info for material.
    Please check the setting below.
    IMG> MM>Purchasing>Purchase order>STO>STO between storage location>set up storage location -dependent shipping point determination>define rule for determination of sipping point>
    here we have to set delivery document type(NL) to plant specific shipping point determination.

  • IFS-12635: SimpleXmlParser: Value(10/10/99) not valid for type (Date)

    I am trying to uplaod an xml document sample which has an attribute of date datatype.
    My sample is :
    <?xml version="1.0" standalone="yes"?>
    <document>
    <name> test</name>
    <createdate>1999/03/12</createdate>
    </document>
    I am getting this error:
    IFS-12635: SimpleXmlParser: Value(10/10/99) not valid for type (Date).
    If I input just the "name attribute" value, there is no problem. What is the date format, I should use?
    Please suggest.
    Thank you
    null

    Is there any way to specify the format in the custom type document itself. ? I do not want to specify the format in every document sample. Is there any way that it is possible. If I give the format in the document samples, as Matt said, there is no problem.
    Now I tried to give the format in the type document itself.
    I created a custom type document as follows:
    <?xml version="1.0" standalone="yes"?>
    <!--myTestType.xml-->
    <ClassObject>
    <Name>myTestType</Name>
    <Description> myTestType Document </Description>
    <Superclass Reftype ="name">Document</Superclass>
    <Attributes>
    <Attribute>
    <Name> Category </Name>
    <DataType> String </DataType>
    <DataLength> 80 </DataLength>
    </Attribute>
    <Attribute>
    <Name> posted_date </Name>
    <DataType format="mm-dd-yyyy"> date </DataType>
    </Attribute>
    </Attributes>
    </ClassObject>
    I could able to upload this to ifs. No problem at this time. But when I try to load the below sample, I am getting the same parse problem.(IFS-12635 SimpleXmlParser: Value(12-25-1992) not valid for type (Date.).
    sample xml document
    <?xml version="1.0" standalone="yes"?>
    <myTestType>
    <name> testing.myTestType</name>
    <Category>Administration_4</Category>
    <posted_date >12-25-1992</posted_date>
    </myTestType>
    Thank you.

  • No message for validation error "format", type "date", field "date-expired"

    Dear
    Guys,
    i am getting the following error : ((No message for validation error "format", type "date", field "date-expired"))
    When trying to upload adobe connect 7 license to the adobe connect 7 configuration wizard. the problem occurs because my server was install on Arabic Saudi Arabia date format while installation, but if i change the windows date format to US then the problem still occurs, and formatting windows is not possible, could anybody help??
    Regards

    Thank you for replying,
    No i am not on host mode, a have installed it deferent times ago successfully, but the only problem now is that during the installation windows server 2008 the default language, time and date. Was set Arabic Saudi Arabia. And even changing it does not solve the problem, as i mentioned above.

  • Exception Reporting based on a characteristic of type DATE

    Hi Friends,
    I am new to this community. Please help me in solving the below problem about exception.
    There is an infoobject 0CSM_PLDA (Planned closed date). It is an charactesitic of data type 'DATE'. And my requirement is that for an infoobject 0CSM_PLDA <b>I have to create an alert based on difference between SYSDAT and 0CSM_PLDA :</b>
    Good - < 5 days
    Medium – between 5 and 2 days
    Bad – <1 day
    So please tell me
    1. How to find out the difference between SYSDAT and 0CSM_PLDA ? Where does Sysdat is avaialble in BW?
    2. 0CSM_PLDA is a characteristic of type DATE and as you know Exception generally supports keyfigure...then tell me how to solve this?
    Please answer in detail. Thanks----Sasi.<b></b>

    Hi Stefan,
    Still I couldn't find the solution.
    0CRM_PLDA is a characteristic of type DATE. And SYSDAT we can assume it as a characteristic of type DATE.
    How can you find out the difference between two characteristic of type DATE. In formula, its possible to perform calculations only on keyfigures. So finding the difference is the complex one for me.
    Even I tried with formula replacement for an 0crm_plda. Its not helpful.
    please guide me in solving the problem.
    Thanks,
    Sasi

  • Handle null value in char infoobject -data type DATE(ora-01722 invalid num)

    Hi,
    We have a DSO with a info object in the Data fields. The char info object has the data type DATE and most often it has the null value. but some times  it has data in it.
    When ever we were trying to run a report on the DSO it throws a error  as  ORA- 01722 INVALID NUMBER.
    we tried editing PSA data and placing 00000000 for null values - and had a message  invalid date.
    suggestions pls
    Regards.

    Hello,
    Please check the note given below
    https://service.sap.com/sap/support/notes/1327167.
    If null value is the problem,  change the query setting for not to show the null values. Just add a filter in ZDAT to exclude "NULL"
    Thanks
    Nidhi

  • Problems with updating data in excel spreadsheet using ODI

    That's my first post on this forum, therefore I'd like to say Hello to everybody reading it before I present my problem.
    First I configured the ODBC connection to the xls file which conteins my data - the file isn't defined as read-only in the ODBC connection. The next step was setting up a Microsoft Excel Data Server in the topology manager in which I inserted the physical model and of course a logical one referencing the physical one. These steps allowed me to insert a model with my table in the Designer - I can view data throug the option 'view data' appearing after the right-click on the datastore. One of the columns was defined as primary key in constraints. I can use this xls file datastore as a source in an interface - loading the target finishes with a success. But I can't update the data in the xls file using the 'data' option appearing after right-click on the datastore correspondig to it in the designer. The new window with data from file appears without any problem, but when I try to update any of the fields I recieve an error:
    *"See com.borland.dx.dataset.DataSetException error code: BASE+37*
    *com.borland.dx.dataset.DataSetException: DataSet has no unique row identifiers.*
    *Note: For QueryDataSets you need to disable metaDataUpdate.ROWID in the MetaDataUpdate property, in addition to setting the RowId property on a column.* - don't know where to configure it
    at com.borland.dx.dataset.DataSetException.c(Unknown Source)
    at com.borland.dx.dataset.DataSetException.kb(Unknown Source)
    at com.borland.dx.dataset.StorageDataSet.fb(Unknown Source)
    at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
    at com.borland.dx.dataset.DataSet.startEditCheck(Unknown Source)
    at com.borland.dx.dataset.DataSet.startEdit(Unknown Source)
    at com.borland.dbswing.TableMaskCellEditor.textModified(TableMaskCellEditor.java:340)
    at com.borland.dbswing.TableMaskCellEditor.insertUpdate(TableMaskCellEditor.java:319)
    at javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Source)
    at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source)
    at javax.swing.text.AbstractDocument.insertString(Unknown Source)
    at javax.swing.text.PlainDocument.insertString(Unknown Source)
    at com.borland.dbswing.DBPlainDocument.insertString(DBPlainDocument.java:77)
    at javax.swing.text.AbstractDocument.replace(Unknown Source)
    at javax.swing.text.JTextComponent.replaceSelection(Unknown Source)
    at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(Unknown Source)
    at javax.swing.SwingUtilities.notifyAction(Unknown Source)
    at javax.swing.JComponent.processKeyBinding(Unknown Source)
    at javax.swing.JComponent.processKeyBindings(Unknown Source)
    at javax.swing.JComponent.processKeyEvent(Unknown Source)
    at com.borland.dbswing.TableMaskCellEditor.processKeyEvent(TableMaskCellEditor.java:627)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)"
    What should I do to be able to modify data from the xls file that way (is it possible in any way)?

    It is not possible to update the data directly from ODI on some technologies, mainly due to some driver limitations.
    I would suggest to edit the spreadsheet in Excel.
    Thanks,
    Julien

  • Bursting 2 Oracle BI Analysis type Data Set

    Hi
    We have 2 Oracle BI Analysis type Data Set.We are able to burst but in the email we just recieve only email attachement with only header(only column headings) ( in
    excel/pdf output without any data.
    But when we import the report xml and load into xml into template we are able to preview data in excel or PDF format.
    Could you Please answer as soon as possible
    Thanks
    Nitesh

    edit BI Analysis and remove any FILTER USING etc... save analysis and then try in BIP to add the BI Analysis data set.

  • How can I use a variable in BEx of type date ?

    Hello,
    I have an infoprovider with a key figure of type "date" and I want to display for example all the data where the date is lower than a date entered by the user.
    So I want to create for that a date variable and use it in conditions.
    When I try with "manual entry", I can't get the type "date" : it proposes quantity, amount, number but not date.
    When I try with "customer exit", I can get the type "date" but when I get it on the selection screen, the date is seen as a number so it doesn't work.
    Does anybody have an idea.
    Thanks for your help.
    Regards,
    Vanessa Roulier

    Hi!
    if you are using a cube then there will be at least one time char. I think you can just add 0calday to your cube , even if you are not filling it.
      Once this is available in cube  it can be used in query (free chars) where we can define a variable on this 0calday. But we it will not have any effect on query results as you are not storing anything in your query.
    then in your conditions you create a variable with USEREXIT type. then in your ABAP code you can access the value stored in variable(which is entered by user) and copy it to the USEREXIT variable. Then your condition works because it is having a date type and the value is date.
    I don't see any problem in implementing this scenario.
    with regards
    ashwin

  • Conversion from string "20041023 " to type 'Date' is not valid.

    Hi ,
       I have a table with one of the column(EmpHiredate) datatype is char(10). It has value like "20141023". I need to display this value as date format(dd/mm/yyyy) in report. 
    Following methods i tried in textbox expression but no luck.
    =Format(Fields!EmpHireDate.Value,"dd/MM/yyyy")
    =Cdate(Fields!EmpHireDate.Value)
    Error:
    [rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "20041023  " to type 'Date' is not valid.
    Is it possible to convert string to date using SSRS textbox expression ? Can anyone help me with the solution.
    Thanks,
    Kittu

    Hi Jmcmullen,
         Found one more issue on the same. I have one value like "00000000" for the column(EmpHiredate)
    , when i use above expression values(ex:"20141023")
    are displaying in dd/MM/yyyy format in report except value like "00000000" and giving following error:
    [rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "0000/00/00" to type 'Date' is not valid.
    Even i tried to pass its original value("00000000") as below but no luck.
    =IIF(Fields!EmpHireDate.Value = "00000000","00000000",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
    Also tried this:
    =IIF(Fields!EmpHireDate.Value = "00000000","2000/10/21",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
    Please Suggest. 
    Thanks ,
    Kittu

Maybe you are looking for