<?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 Re: Date format in Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142420#M115028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;it may due to some conversion subroutine on date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.The best solution as is to declare one more date field(D2) in ur internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. loop ur internal table and then move the downloaded date format in the format mm/dd/yyyy(as u said right now) to this new date field(d2) as dd/mm/yyyy using &lt;/P&gt;&lt;P&gt;write:/ d1 to d2 using edit mask dd/mm/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.check the length of the date field as it is 10 charaters or 8 .for ur query it should be 10 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.now modify the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i think this will solve ur query.&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2006 13:39:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-20T13:39:44Z</dc:date>
    <item>
      <title>Date format in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142417#M115025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;   I am uploading excel sheet using function module 'ALSM_EXCEL_TO_INTERNAL_TABLE', but I notice a strange thing, format of date in excel sheet is 'DD/MM/YYYY' but while uploading the FM turns the date into the format 'mm/dd/yyyy'. &lt;/P&gt;&lt;P&gt;  I also changed my user settings but the problem didnt solved.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 12:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142417#M115025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T12:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142418#M115026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi punit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Well if you are sure the date is&lt;/P&gt;&lt;P&gt;   converted into this format everytime,&lt;/P&gt;&lt;P&gt;   then after uploading in to itab,&lt;/P&gt;&lt;P&gt;   just loop&lt;/P&gt;&lt;P&gt;   and convert it into dd/mm/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. However,&lt;/P&gt;&lt;P&gt;   It IS ALWAYS BEST THING TO&lt;/P&gt;&lt;P&gt;   PUT THE DATE IN EXCEL IN &lt;/P&gt;&lt;P&gt;   YYYYMMDD format only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  and take the variable in itab as sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. This will take care of &lt;/P&gt;&lt;P&gt;   all formatting problems !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 12:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142418#M115026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T12:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142419#M115027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when u r defining the internal table for the flat file or excel file the fields u accept them as string and then convert it to their real format. this avoids u interchanging of formats, etc., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for suppose, the itab is having vbeln, name1, erdat.&lt;/P&gt;&lt;P&gt;u just take the itab as &lt;/P&gt;&lt;P&gt;begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;   vbeln(10) type c,&lt;/P&gt;&lt;P&gt;   name1(35) type c,&lt;/P&gt;&lt;P&gt;   erdat(10) type c,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after u get the data into itab, u can convert it into the original format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 12:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142419#M115027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T12:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142420#M115028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;it may due to some conversion subroutine on date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.The best solution as is to declare one more date field(D2) in ur internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. loop ur internal table and then move the downloaded date format in the format mm/dd/yyyy(as u said right now) to this new date field(d2) as dd/mm/yyyy using &lt;/P&gt;&lt;P&gt;write:/ d1 to d2 using edit mask dd/mm/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.check the length of the date field as it is 10 charaters or 8 .for ur query it should be 10 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.now modify the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i think this will solve ur query.&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 13:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142420#M115028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T13:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142421#M115029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody solve this issue? I have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module &lt;SPAN style="color: #333333; font-size: 12px;"&gt;ALSM_EXCEL_TO_INTERNAL_TABLE,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;cells with format&amp;nbsp; DD/MM/YYYY are uploading&amp;nbsp; changing the order of months and Days.(EX. 12/01/1986 become 01/12/1986)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;More strange thing: it does this only if day are less than 12... If I write a date that have day more than 12 it take the date in right format.(Ex. if I write 13/01/1986 come exact 13/01/1986)...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried to change the format of the cell in Excel file but it doesen't cause any effect...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table exporting by the function doesen't have any date format declared for the field that stored the value from excel cells, I can't undestand where and why it do this convertion....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhelp will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 11:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142421#M115029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-23T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142422#M115030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 16:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-excel/m-p/1142422#M115030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-04T16:29:37Z</dc:date>
    </item>
  </channel>
</rss>

