<?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: Code to correct Invalid date to correct date format. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102365#M4091027</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;basically if you uncheck the 'No SID Generation ' it will allow to with out any error.&lt;/P&gt;&lt;P&gt;but if you select 'No SID Generation' it will get error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit the records in PSA for paritcular date column&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;while loading to dso to cube use the error stock DTP and correct it the error recrod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically system will alllow the format - YYYYMMDD but it give output - DD-MM-YYYY.&lt;/P&gt;&lt;P&gt;extranl format lenght - 8 and internal format lenght - 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 07:19:48 GMT</pubDate>
    <dc:creator>KodandaPani_KV</dc:creator>
    <dc:date>2015-06-15T07:19:48Z</dc:date>
    <item>
      <title>Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaq-p/11102364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;I'm loading the data from datasource to DSO and then from DSO to Infocube.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;While loading the data from datasource to DSO, I was getting error during DSO Activation. The error was "Activation of M records from DSO&amp;nbsp; terminated" .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;After changing the DSO Setting as "No SID Generation", I was able to load it into DSO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;So here is the issue m facing--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;While loading from DSO to infocube, I got the error "Exception in Substep Write to Fact Table" . Then I found that this error was due to some wrong entry of date in Date column - /OBIZ/LAEDA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Some date values are empty. Some are in correct format- DD.MM.YYYY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;But some are in wrong format like Example - 20.2..15.1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;So could anyone please help me in writing the ABAP Code in start routine of Transformation between DSO and Infocube.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Requesting&amp;nbsp; ABAP and BW experts to help me out in successfully loading into Infocube. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Shruti Yendigeri&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 07:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaq-p/11102364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-15T07:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102365#M4091027</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;basically if you uncheck the 'No SID Generation ' it will allow to with out any error.&lt;/P&gt;&lt;P&gt;but if you select 'No SID Generation' it will get error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit the records in PSA for paritcular date column&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;while loading to dso to cube use the error stock DTP and correct it the error recrod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically system will alllow the format - YYYYMMDD but it give output - DD-MM-YYYY.&lt;/P&gt;&lt;P&gt;extranl format lenght - 8 and internal format lenght - 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 07:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102365#M4091027</guid>
      <dc:creator>KodandaPani_KV</dc:creator>
      <dc:date>2015-06-15T07:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102366#M4091028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you have changed the DSO setting to no SID generation, the wrong format of date was loaded into DSO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would suggest to correct the format when you load to DSO. This way you will not face any issue for DSO to CUBE load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could share the value of date for which you got the earlier activation error, may be some solution can be suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 08:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102366#M4091028</guid>
      <dc:creator>saurabh301</dc:creator>
      <dc:date>2015-06-15T08:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102367#M4091029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I checked the ERROR STACK, its saying data records to be edited are 86.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I corrected one record by providing valid date and then saved it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that I have to create ERROR DTP. But that option is disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M not able to click on Button " Create Error DTP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what is my doubt is -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only after correcting all records in Error Stack , will I be able to click on "Create Error DTP" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti Yendigeri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 08:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102367#M4091029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-15T08:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102368#M4091030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select "SID generation" in DSO Setting, then I will get error "Activation of M records from DSO terminated " during DSO Activation.&lt;/P&gt;&lt;P&gt;So I had to select "No SID Generation".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the issue is coming between DSO and Infocube.&lt;/P&gt;&lt;P&gt;Infocube is not accepting the Invalid Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some dates are stored in wrong format and meaningless.&lt;/P&gt;&lt;P&gt;Eg-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.2..15.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20.1..26.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti Yendigeri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 09:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102368#M4091030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-15T09:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102369#M4091031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings for error stack in dtp in update mode should be "update valid records, No reporting(Request Red)" or "update valid records, Reporting possible(Request Green)". Once you do error handling like this so erroneous record will be in error stack, after correcting save them. Then you can create error DTP. So execute it and its not like that you can create error DTP only after correcting records in error stack. Better you correct the error in date at DSO level only. So you can create ERROR DTP or correct at PSA level(error handling is - No update, No reporting). so activation of M records in DSO will not be terminated.Then load data from dso to cube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swapna Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 09:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102369#M4091031</guid>
      <dc:creator>former_member214415</dc:creator>
      <dc:date>2015-06-15T09:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102370#M4091032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Shruti,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Could you please display the record in DSO and let us know how the date is present in DSO and what is the expected value.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 09:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102370#M4091032</guid>
      <dc:creator>saurabh301</dc:creator>
      <dc:date>2015-06-15T09:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102371#M4091033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to standard DTP -&amp;gt; select update tab -&amp;gt; click on the error stock DTP.&lt;/P&gt;&lt;P&gt;now it will enable error stock DTP.&lt;/P&gt;&lt;P&gt;then click on the PSA symbol then you wil find the error records. edit and execute the Error DTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before click the error stock DTP then edit it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 10:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102371#M4091033</guid>
      <dc:creator>KodandaPani_KV</dc:creator>
      <dc:date>2015-06-15T10:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102372#M4091034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot of records present in DSO Active table.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/725777" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Now, while loading it into infocube, m getting error due to this wrong data entry into infocube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created ERROR DTP between DSO and Infocube.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I checked the ERROR STACK, then found there are 86 records which I need to correct it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But doubt is how to correct the date in ERROR STACK when it is wrong in source system itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have compared the date with the ones present in source system (datasource).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Both are same. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can I guess the correct date for each 86 records.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What can I do with the meaningless date present in datasource.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti Yendigeri&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 05:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102372#M4091034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-16T05:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102373#M4091035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this kind of junk data, any logic you write will have to &lt;STRONG&gt;guess&lt;/STRONG&gt; the date values. You could write a logic that assumes that the first four characters "20.1" refer to 20th Jan or to 2011, but ultimately that's not accurate, it's just a guess of what "20.1" might mean.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it is not a good practice to report on dates that are basically the result of guesswork done by the code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please get these dates corrected from the source system. In the meantime, either exclude these records using the error DTPs, or blank out the date if the user is okay with doing that. But please do not write code to fix these dates - that is a job that the code should not be doing anyway. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 05:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102373#M4091035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-16T05:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102374#M4091036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your opinion .&lt;/P&gt;&lt;P&gt;If I create ERROR DTP, then I have to correct the Date by guessing which is not suggestable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please say me the code to write in start routine about how to exclude the records or how to blank out the date containing this error and meaningless date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti Yendigeri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 05:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102374#M4091036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-16T05:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102375#M4091037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two options you have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create Error DTP, and in the error handling select "Valid records update, request green". With this no code needs to be written, and the invalid dates will automatically be stopped by the error DTP. This is the simpler option.&lt;/LI&gt;&lt;LI&gt;The other option is to create a start routine in the transformation. Loop over the Source Package, and within the loop call the FM DATE_CHECK_PLAUSIBILITY. This FM takes a date and tells you if the date is valid or not. So within the loop, pass the date to this FM and check the validity. If the date is invalid, delete the record from the source package. Take an ABAPpers help if needed.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 05:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102375#M4091037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-16T05:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102376#M4091038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the ERROR DTP between DSO and Infocube.&lt;/P&gt;&lt;P&gt;Now all records are present in Infocube. Infocube manage screen -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/726990" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On top of infocube, I have created one multiprovider. This multiprovider has only one infocube.&lt;/P&gt;&lt;P&gt;In multiprovider, records are present. &lt;/P&gt;&lt;P&gt;Then I created Query in which I have included as OCALYEAR as characteristic restriction. &lt;/P&gt;&lt;P&gt;Created a variable for it.&lt;/P&gt;&lt;P&gt;But when m executing in rsrt tcode, Its not displaying any records inspite of giving the correct value for Calendar year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M stuck here. Please help me. What may be the reason behind it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti Yendigeri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 08:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102376#M4091038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-17T08:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102377#M4091039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi phani and Swapna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur help.&lt;/P&gt;&lt;P&gt;Created the ERROR DTP and loaded the records in infocube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now one more issue m facing.&lt;/P&gt;&lt;P&gt;Could u please refer my reply to Suhas in which I have mentioned the issue.&lt;/P&gt;&lt;P&gt;Waiting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti Yendigeri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 08:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102377#M4091039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-17T08:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102378#M4091040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a red request in the cube, due to which none of the requests are available for reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also while creating the Error DTP, in the Error handling, you should give "Valid records update, &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;request green&lt;/STRONG&gt;&lt;/SPAN&gt;". It looks like you have given it as request red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first delete both requests from the cube, modify the error handling as above, and then reload. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 08:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102378#M4091040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-17T08:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102379#M4091041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shruti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, No data is available in multirprovider because it is a logical infoprovider which doesn't hold any data but when query is hitted, it gets data from underneath infoprovider. In your scenario, you have created multiprovider on top of infocube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, Check the settings of variable which you have created on cal year and check mappings also for the calender year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swapna Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 09:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102379#M4091041</guid>
      <dc:creator>former_member214415</dc:creator>
      <dc:date>2015-06-17T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102380#M4091042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this data which you posted is from PRODUCTION environment?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is JUNK data, best practice is to get the data corrected in source and then extract the same into BW info providers.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though you create a ERROR DTP you need to correct the entries every time you get the junk data and then make them available for reporting. Which is not a good practice. &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;KP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 11:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102380#M4091042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-17T11:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102381#M4091043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashanth ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is not from Production Environment.&lt;/P&gt;&lt;P&gt;And yes I agree with you that its better to correct the data in source system itself.&lt;/P&gt;&lt;P&gt;But I was suggested to correct the data at DSO level.&lt;/P&gt;&lt;P&gt;Here, m again confused about the settings which I need to follow while loading records into DSO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create 2 DTPs, Right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First DTP to load the correct records. In update tab - what setting should I choose ?&lt;/P&gt;&lt;P&gt;Second DTP i.e ERROR DTP to load the corrected records of wrong date. Here again, in update tab - what setting should I choose ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have referred many docs and scn posts.&lt;/P&gt;&lt;P&gt;But m confused.&lt;/P&gt;&lt;P&gt;Could u please guide me the step by step flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti Yendigeri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 05:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102381#M4091043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-18T05:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102382#M4091044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have already created on DTP which is Delta/Full. Just goto alredy created DTP and click on Creating Error DTP and Errors Per Pack. as per requirement like 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below DTP,&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/727752" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will create automatically error DTP. Then, Set Error Handling based on requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/727753" width="450" /&gt;&lt;/P&gt;&lt;P&gt;You can set Valid Records Update, Reporting Possible ( Request Green). &lt;/P&gt;&lt;P&gt;Edit the records and error stack and run the Error DTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Chandresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102382#M4091044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-18T06:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code to correct Invalid date to correct date format.</title>
      <link>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102383#M4091045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shruti,&lt;/P&gt;&lt;P&gt;What is the format of date in the source... ? How is it coming across&lt;/P&gt;&lt;P&gt;In your data source - you might find a conversion exit against the field - what is it ...? is there one currently ? ( usually PERIV ... or something of that sort )&lt;/P&gt;&lt;P&gt;Then the best way is to convert it to YYYYMMDD in the routine and it will get updated - but if we are going to guess the date format by looking at what is available in the DSO / Cube - you will have a tough time trying to deduce the format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 0.02&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 18:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/code-to-correct-invalid-date-to-correct-date-format/qaa-p/11102383#M4091045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-18T18:51:15Z</dc:date>
    </item>
  </channel>
</rss>

