<?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: CTCV_CONVERT_FLOAT_TO_DATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915375#M1963515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for response. it's working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to know significance of last statement if you can explain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2016 16:39:42 GMT</pubDate>
    <dc:creator>former_member449620</dc:creator>
    <dc:date>2016-09-26T16:39:42Z</dc:date>
    <item>
      <title>CTCV_CONVERT_FLOAT_TO_DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915370#M1963510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help to get solution for the below issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When FLOAT passed to FM CTCV_CONVERT_FLOAT_TO_DATE has exponent with 07, it works well &amp;amp; returns the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example input value = 2.0170731000000000E+07 will return Date as &lt;SPAN style="font-size: 13.3333px;"&gt;20170731.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue is when the exponent value is more than 07.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : 2.0101025000000000E+13 will return Date as 25000000 &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/108/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help in overcoming with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;P&gt;Anil Sahni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 19:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915370#M1963510</guid>
      <dc:creator>former_member449620</dc:creator>
      <dc:date>2016-09-22T19:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: CTCV_CONVERT_FLOAT_TO_DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915371#M1963511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think in this case the issue is with the data: 2.0101025000000000E+13 not with the FM.&lt;/P&gt;&lt;P&gt;Check why you are getting that value and the value is definitely NOT a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 19:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915371#M1963511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-22T19:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: CTCV_CONVERT_FLOAT_TO_DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915372#M1963512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data was assigned to modified characteristics values for some other requirement, I agree which is actually not a date after the modification. Still looking for possible options to retrieve date for such a combination. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any possible thought to extract it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Anil Sahni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 20:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915372#M1963512</guid>
      <dc:creator>former_member449620</dc:creator>
      <dc:date>2016-09-22T20:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: CTCV_CONVERT_FLOAT_TO_DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915373#M1963513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I would say it is not good to try extracting date from bad data (2.0101025000000000E+13).&lt;/P&gt;&lt;P&gt;If you are sure that the data is bad then try to see how you can get the correct data. Rather than exploring the options to get values from the bad data. I think there is no way to get date from this data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 20:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915373#M1963513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-22T20:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: CTCV_CONVERT_FLOAT_TO_DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915374#M1963514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA date_c TYPE string.&lt;/P&gt;&lt;P&gt;DATA date_f TYPE f VALUE '2.0160924E+13'.&lt;/P&gt;&lt;P&gt;date_c = substring( val = |{ date_f }| len = 8 ).&lt;/P&gt;&lt;P&gt;WRITE date_c.&lt;/P&gt;&lt;P&gt;ASSERT date_c = '20160924'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Sep 2016 08:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915374#M1963514</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-09-24T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: CTCV_CONVERT_FLOAT_TO_DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915375#M1963515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for response. it's working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to know significance of last statement if you can explain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915375#M1963515</guid>
      <dc:creator>former_member449620</dc:creator>
      <dc:date>2016-09-26T16:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: CTCV_CONVERT_FLOAT_TO_DATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915376#M1963516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ASSERT is a statement which you should not use/remove from your code. ASSERT (cf &lt;A href="http://help.sap.com/abapdocu_702/en/?url=ABAPASSERT.htm" title="http://help.sap.com/abapdocu_702/en/?url=ABAPASSERT.htm"&gt;ASSERT in ABAP Doc.&lt;/A&gt;) is followed by a logical expression which must be true, otherwise the program will short dump. I use it to say "here date_c equals '20160924' for sure! The concept of "assertion" is more used in its &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/frameset.htm" title="http://help.sap.com/saphelp_nw70/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/frameset.htm"&gt;ABAP Unit (cf SAP Library)&lt;/A&gt; form, i.e. for instance cl_aunit_assert=&amp;gt;assert_not_initial( act = variable ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 18:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ctcv-convert-float-to-date/m-p/11915376#M1963516</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-09-26T18:40:13Z</dc:date>
    </item>
  </channel>
</rss>

