<?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 Problem with date format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017457#M412453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement where i've to upload date in format ddmmyyyy thru a BDC. The date what i get may be in format ddmmyyyy or yyyymmdd . So, i've to change dynamically the date format to ddmmyyyy , no matter what format i receive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLS_MISC_GET_USER_DATE_FORMAT or DATE_CHECK_PLAUSIBILITY  &amp;amp; a select statement on the table USR01 cannot be used , as the requirement demands dynamic chnage based on the given date. Experts plz suggest me a go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 05:06:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-20T05:06:55Z</dc:date>
    <item>
      <title>Problem with date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017457#M412453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement where i've to upload date in format ddmmyyyy thru a BDC. The date what i get may be in format ddmmyyyy or yyyymmdd . So, i've to change dynamically the date format to ddmmyyyy , no matter what format i receive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLS_MISC_GET_USER_DATE_FORMAT or DATE_CHECK_PLAUSIBILITY  &amp;amp; a select statement on the table USR01 cannot be used , as the requirement demands dynamic chnage based on the given date. Experts plz suggest me a go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017457#M412453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017458#M412454</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;    you can achieve it using WRITE TO command no matter whatever format of date taht you get..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg. WRITE sy-datum TO GD_DATE DD/MM/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare gd_date(10) as a character var...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017458#M412454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017459#M412455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:  p_date(10) type c.&lt;/P&gt;&lt;P&gt;data: date type datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'DATE_STRING_CONVERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DATE_FORMAT       = 'YYYY.MM.DD'&lt;/P&gt;&lt;P&gt;    DATE_STRING       = p_date&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  START_DATE        = SY-DATUM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RESULT_DATE       = date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. rward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017459#M412455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017460#M412456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to convert the date data dynamically before it upload into the table than you have to store the flat file data into a variable than convert it into the respective format using the if loop ,split statement and concatenate statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after converting the data into the respective format you save that into a varibale and upload it into the database table.&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;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017460#M412456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T06:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with date format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017461#M412457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;  while uploading the data declare one variable for date and while looping move date into that variable. after that use write to command like following.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : v_date(8) type c.&lt;/P&gt;&lt;P&gt;data: v_date1(10) type c.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while Prepare the BDCDATA internal table, before uplaod the screen which have the date value declare these validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;move itab-date to v_date.&lt;/P&gt;&lt;P&gt;WRITE v_date TO v_date1 DD/MM/YYYY.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now pass  &amp;lt;b&amp;gt;v_date1&amp;lt;/b&amp;gt; value to the BDCDATA internal table.&lt;/P&gt;&lt;P&gt;Hope this helps you. Reply for queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-date-format/m-p/2017461#M412457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T06:22:49Z</dc:date>
    </item>
  </channel>
</rss>

