<?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: Type conversions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175786#M755763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you believe it's not possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three types involved: characters, date and integer. Conversion rules exist between all of these types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 10:11:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-10T10:11:58Z</dc:date>
    <item>
      <title>Type conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175783#M755760</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;How is type conversion done in a statement like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: date type d,
      string(10) type c.
date = string + 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If string has the value "20071031", will 1 be added as a string (resulting in "200710311" which is then somehow converted to a date), like a number (resulting in "20071032" which is then somehow converted to a date) or like a date (resulting in "20071101")?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 09:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175783#M755760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T09:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175784#M755761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try typing it and running it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: date TYPE d,
      string(10) TYPE c.

string = '20071031'.

date = string + 1.

WRITE: / date, string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: 00000000, 20071031.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( the intermediate result of "string + 1" will be 20071032, as it will be converted to a numeric for the "+1" operation ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 09:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175784#M755761</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-10T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175785#M755762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey here nothing will come to Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type conversion is not possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 09:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175785#M755762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T09:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175786#M755763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you believe it's not possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three types involved: characters, date and integer. Conversion rules exist between all of these types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 10:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175786#M755763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175787#M755764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Conversion rules exist between all of these types. but straight away u can not do this. &lt;/P&gt;&lt;P&gt;if the string is first converted as date field and then incremented &lt;/P&gt;&lt;P&gt;date = string .&lt;/P&gt;&lt;P&gt;date = date + 1.&lt;/P&gt;&lt;P&gt;u can get the result as 20071101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if string id incremented first and then u convert as date field u can get&lt;/P&gt;&lt;P&gt;string =  20071032 and date = 20071032 (not recommended )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the case u have discussed is not possible i think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 10:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversions/m-p/3175787#M755764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T10:30:07Z</dc:date>
    </item>
  </channel>
</rss>

