<?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: Invert Date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000406#M708828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to do it using your method, Pavan. Now the thing is, I have to replace the incorrect dates to the converted dates into the DB table from an internal table using UPDATE but its saying work area not long enough. The table has too many fields, i cant put them ALL into the internal table. Do I need to? I just want to work with 2 fields in the DB table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2007 11:09:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-26T11:09:05Z</dc:date>
    <item>
      <title>Invert Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000401#M708823</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;&lt;/P&gt;&lt;P&gt;I would like to change the dates in my table so that they appear in the correct format. They appear in my database table as YY.YY.MMDD e.g. 20.07.10.25 for today's date. I would like to do a direct insertion into the table of the correct format i.e. 25.10.2007. I know how to select the incorrect dates. What's left is for me to change the dates and put them back into the db in the correct format, probably from an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000401#M708823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invert Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000402#M708824</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;Use FM 'CY_CONVERT_DATE'.  It will convert the date into current user format.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000402#M708824</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-10-25T11:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Invert Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000403#M708825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the following Date Conversions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option&lt;/P&gt;&lt;P&gt;... DD/MM/YY &lt;/P&gt;&lt;P&gt;Option&lt;/P&gt;&lt;P&gt;... MM/DD/YY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;If f is a date field (type D ), the date is output with a 2-character year as specified in the user's master record. Both of these formatting options have the same value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option&lt;/P&gt;&lt;P&gt;... DD/MM/YYYY &lt;/P&gt;&lt;P&gt;Option&lt;/P&gt;&lt;P&gt;... MM/DD/YYYY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;If f is a date field (type D ), the date is output with a 4-character year as specified in the user's master record. Both of these formatting options have the same value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option&lt;/P&gt;&lt;P&gt;... DDMMYY &lt;/P&gt;&lt;P&gt;Option&lt;/P&gt;&lt;P&gt;... MMDDYY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Date formatting like the additions ... DD/MM/YY and ... MM/DD/YY , but without separators. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option&lt;/P&gt;&lt;P&gt;... YYMMDD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;If f is a date field (type D ), the date is output in the format YYMMDD (YY = year, MM = month, DD = Day).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000403#M708825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Invert Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000404#M708826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or u can use&lt;/P&gt;&lt;P&gt;CONCANICATE date&lt;EM&gt;9(2) '.' date&lt;/EM&gt;6(2) '.' date(4) to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here date is the field in the internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000404#M708826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Invert Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000405#M708827</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;try like this. it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;data: lv_date type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_formatdate(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var1(4) type c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var2(2) type c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3(2) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_date = sy-datum.&lt;/P&gt;&lt;P&gt;var1 = lv_date+(4).&lt;/P&gt;&lt;P&gt;var2 = lv_date+4(2).&lt;/P&gt;&lt;P&gt;var3 = lv_date+6(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate var3 var2 var1 into lv_formatdate separated by '.'. " By changing here Var position you can get your required output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: var1 var2 var3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date = 18012007&lt;/P&gt;&lt;P&gt;date1 like sy-datum.&lt;/P&gt;&lt;P&gt;write : date using edit mask '__.__.____' &lt;/P&gt;&lt;P&gt;        to date1,                &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Output : 18.01.2007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_IDATE_INPUT to convert date to Date format.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000405#M708827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Invert Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000406#M708828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to do it using your method, Pavan. Now the thing is, I have to replace the incorrect dates to the converted dates into the DB table from an internal table using UPDATE but its saying work area not long enough. The table has too many fields, i cant put them ALL into the internal table. Do I need to? I just want to work with 2 fields in the DB table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 11:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000406#M708828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T11:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Invert Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000407#M708829</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;Sorry for the late reply. After a long time i have again came to sdn forum. Does your issue solved??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 11:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invert-date/m-p/3000407#M708829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T11:15:16Z</dc:date>
    </item>
  </channel>
</rss>

