<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Inserting Current Date with time stamp in oracle database in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826429#M1492780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does ur database table support the length and type of the field with timestamp? What error are u getting while trying to insert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prateek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 04:34:18 GMT</pubDate>
    <dc:creator>prateek</dc:creator>
    <dc:date>2008-05-12T04:34:18Z</dc:date>
    <item>
      <title>Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaq-p/3826428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                 I want to insert the current Date and time stamp in a field in the Oracle Database Table.&lt;/P&gt;&lt;P&gt;I am able to insert date but i am not able to insert the date with time stamp. Any Suggestions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 04:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaq-p/3826428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T04:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826429#M1492780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does ur database table support the length and type of the field with timestamp? What error are u getting while trying to insert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prateek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 04:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826429#M1492780</guid>
      <dc:creator>prateek</dc:creator>
      <dc:date>2008-05-12T04:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826430#M1492781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Concatinate date with time and send it to the Oracle db table field.you can use the same function for time also like date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 04:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826430#M1492781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T04:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826431#M1492782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prateek,&lt;/P&gt;&lt;P&gt;                   I am getting the follwoing error.&lt;/P&gt;&lt;P&gt;Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'CCS_INTERFACE.SAP_ELEC_METER' (structure 'Statement'): java.sql.SQLException: ORA-01830: date format picture ends before converting entire input string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Data Type at Oracle database table is of type  ::  date&lt;/P&gt;&lt;P&gt;I am using CurrentDate function in XI but it doesnt give me time stamp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 04:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826431#M1492782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T04:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826432#M1492783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think date format of oracle wont support the timestamp. U have to edit the type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prateek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 04:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826432#M1492783</guid>
      <dc:creator>prateek</dc:creator>
      <dc:date>2008-05-12T04:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826433#M1492784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;there is a data type called "AFW_TIMESTP" which holds the timestamp in the oracle DB table. Just check whether the data type is so in the Db. An example of the value it holds in R/3 is "20080117072637". &lt;/P&gt;&lt;P&gt;Maybe u can check with the ABAP folks about it.&lt;/P&gt;&lt;P&gt;Hope it was helpful&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 05:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826433#M1492784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T05:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826434#M1492785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prateek,&lt;/P&gt;&lt;P&gt;                 I tried with the solution in the following blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/alessandro.berta/blog/2005/10/04/datetime-datatypes-and-oracle-database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still getting error as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.sql.SQLException: ORA-01861: literal does not match format string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Suggestions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 07:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826434#M1492785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T07:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826435#M1492786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This clearly suggests that there is datatype mismatch between the oracle field and the field that u r sending from payload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prateek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 07:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826435#M1492786</guid>
      <dc:creator>prateek</dc:creator>
      <dc:date>2008-05-12T07:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826436#M1492787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be mismatch inbetween the source and target structures &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to_date(sysdate,'dd/MM/yyyy')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 07:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826436#M1492787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T07:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Current Date with time stamp in oracle database</title>
      <link>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826437#M1492788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to get current date (from sysdate) with a specific format or transform a value containing a date/time value to insert it in ORACLE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually, you insert current datetimestamp in a date field using this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_DATE(sysdate,'dd/mm/yyyy hh:mi:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may have to tweak the format pattern ('dd/mm....') according to your needs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to transform a date, use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_DATE(your_date,your_format)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but make sure your format is compliant with your date, ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_DATE('31/12/2008','MM/DD/YYYY') could raise error (litteral does not match) cuz ORACLE can't recognize 31 as a month pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inserting-current-date-with-time-stamp-in-oracle-database/qaa-p/3826437#M1492788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:09:20Z</dc:date>
    </item>
  </channel>
</rss>

