<?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: Problem converting date from flat file PDATE in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474299#M3374872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - it is useful know anyway that it wouldn't accept future dates, because I am going to need those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Les&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 04:34:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-24T04:34:07Z</dc:date>
    <item>
      <title>Problem converting date from flat file PDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaq-p/9474295</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;I'm VERY new to BW. We are on version 7.2. I hope I am posting to the right area (attempt 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to import a flat file, over whose format we have little or no control.&amp;nbsp; Dates are in the British format dd/mm/yyyy. After looking at (a lot of) other posts, I think I need to use the PDATE Conversion Routine in the DataSource Fields tab. However it is failing with the message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error 'Invalid date of birth' at conversion exit CONVERSION_EXIT_PDATE_INPUT (field TRADEDATE record 1, value 01/06/2012)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously this date is valid (as a British date). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the field TRADEDATE I have set (see screenshot) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data type to DATS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External Length to 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversion Routine to PDATE and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format to External.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong with my setup?&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>Thu, 23 May 2013 22:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaq-p/9474295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-23T22:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting date from flat file PDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474296#M3374869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Les&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your data seems to be correct , please check if you are looking at correct error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can run transaction code SE37 and test with Function Module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CONVERSION_EXIT_PDATE_INPUT and see if you pass 01/06/2012 what is the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I use&amp;nbsp; CONVERSION_EXIT_RSDAT_INPUT for US date format but now I realized it is taking &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/06/2012 as 06-Jan-2012 instead of 01-June-2012.&amp;nbsp; This issue can be handled in routine level in the transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This article will give you understanding about conversion routine.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/BI/Conversion+Exits+and+Data+Loading"&gt;http://wiki.sdn.sap.com/wiki/display/BI/Conversion+Exits+and+Data+Loading&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check what setting you have for your user id here..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A class="active_link" href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/3b/c33d41536ff323e10000000a155106/content.htm"&gt;http://help.sap.com/saphelp_erp60_sp/helpdata/en/3b/c33d41536ff323e10000000a155106/content.htm&lt;/A&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;Also set External Length as 10 and Internal as 8 char and Data Type &lt;STRONG&gt;DATS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anindya&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 00:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474296#M3374869</guid>
      <dc:creator>anindya_bose</dc:creator>
      <dc:date>2013-05-24T00:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting date from flat file PDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474297#M3374870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anindya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. I tested the function in SE37 as you suggested, and it is also giving the error there. I've tried a few variations and it is always the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a link to more information on the RPDT/CONVERSION_EXIT_PDATE_INPUT function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second link isn't working, so I can't tell about my userid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Les&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 01:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474297#M3374870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-24T01:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting date from flat file PDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474298#M3374871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at the last suggestion. &lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/195988"&gt;http://scn.sap.com/thread/195988&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also look at this too &lt;A _jive_internal="true" href="https://answers.sap.com/thread/282630"&gt;http://scn.sap.com/thread/282630&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 04:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474298#M3374871</guid>
      <dc:creator>former_member182470</dc:creator>
      <dc:date>2013-05-24T04:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting date from flat file PDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474299#M3374872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - it is useful know anyway that it wouldn't accept future dates, because I am going to need those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Les&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 04:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474299#M3374872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-24T04:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem converting date from flat file PDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474300#M3374873</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;Thanks to those who responded. I have got around this by importing it into the PSA as CHAR, then using the CONVERTDATE function in the DSO Transformation (which is, I think, one of the approaches Anindya was suggesting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Les&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 04:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-converting-date-from-flat-file-pdate/qaa-p/9474300#M3374873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-24T04:37:11Z</dc:date>
    </item>
  </channel>
</rss>

