<?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>topic Handling Date Format While uploading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-date-format-while-uploading/m-p/1703279#M308178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i m trying to upload date from excel to SAP.Excel sheet is having DD/MM/YYYY ,while SAP hav yyyymmdd.So while uplaoding date is not getting upload properly.&lt;/P&gt;&lt;P&gt;Please tell how to handle this FROMATs......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Oct 2006 06:22:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-28T06:22:28Z</dc:date>
    <item>
      <title>Handling Date Format While uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-date-format-while-uploading/m-p/1703279#M308178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i m trying to upload date from excel to SAP.Excel sheet is having DD/MM/YYYY ,while SAP hav yyyymmdd.So while uplaoding date is not getting upload properly.&lt;/P&gt;&lt;P&gt;Please tell how to handle this FROMATs......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2006 06:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-date-format-while-uploading/m-p/1703279#M308178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-28T06:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Date Format While uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-date-format-while-uploading/m-p/1703280#M308179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from excel ur reading that field of date.&lt;/P&gt;&lt;P&gt;then use the below FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: datum_in(10) type c value '6/7/2006'.&lt;/P&gt;&lt;P&gt;data: datum(10) type c.&lt;/P&gt;&lt;P&gt;data: datum_out type sy-datum.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;           DATE_EXTERNAL            =  datum_in&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;           DATE_INTERNAL            =  datum_out&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;           DATE_EXTERNAL_IS_INVALID = 1&lt;/P&gt;&lt;P&gt;           OTHERS                   = 2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*datum&lt;EM&gt;0(2) = datum_out&lt;/EM&gt;4(2).&lt;/P&gt;&lt;P&gt;*datum&lt;EM&gt;2(2) = datum_out&lt;/EM&gt;6(2).&lt;/P&gt;&lt;P&gt;*datum&lt;EM&gt;4(4) = datum_out&lt;/EM&gt;0(4).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write:/ datum_out. "output in desired format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlpful pls mark points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anversha s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2006 06:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-date-format-while-uploading/m-p/1703280#M308179</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-28T06:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Date Format While uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-date-format-while-uploading/m-p/1703281#M308180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dheeraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if while the data is being uploaded into ur itab from excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check whether the format in ur itab is dd/mm/yyyy ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means in ur itab declaration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(8) type c &lt;/P&gt;&lt;P&gt;or is there &lt;/P&gt;&lt;P&gt;date    type d  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is having value 28/10/2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now to convert it into 20061028 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERNAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;             VALUE(DATE_EXTERNAL) = v_dat&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;             VALUE(DATE_INTERNAL) = v_dat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will do ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just cross check the value in debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2006 06:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-date-format-while-uploading/m-p/1703281#M308180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-28T06:32:08Z</dc:date>
    </item>
  </channel>
</rss>

