<?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 Regarding Casting of objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961255#M946217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently ?= operator can only used to cast objects from one form to another. If I have value of type Boolean or String and I need to cast it to Object type what is the work around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to create class for each type (boolean, string etc) or is there a work around to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arpit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 09:18:16 GMT</pubDate>
    <dc:creator>arpitgoyal</dc:creator>
    <dc:date>2008-06-18T09:18:16Z</dc:date>
    <item>
      <title>Regarding Casting of objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961255#M946217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently ?= operator can only used to cast objects from one form to another. If I have value of type Boolean or String and I need to cast it to Object type what is the work around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to create class for each type (boolean, string etc) or is there a work around to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arpit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 09:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961255#M946217</guid>
      <dc:creator>arpitgoyal</dc:creator>
      <dc:date>2008-06-18T09:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Casting of objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961256#M946218</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;I think there is an easy way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created this code snippet. Hope this helps.&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;data : xx(20) type c,&lt;/P&gt;&lt;P&gt;       dd type ref to data,&lt;/P&gt;&lt;P&gt;       dd1 type ref to String.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field-Symbols : &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xx = 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA dd type String.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN dd-&amp;gt;* to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs&amp;gt; = xx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dd1 ?= dd.&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;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 09:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961256#M946218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Casting of objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961257#M946219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. It solved my problem big time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arpit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 10:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961257#M946219</guid>
      <dc:creator>arpitgoyal</dc:creator>
      <dc:date>2008-06-18T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Casting of objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961258#M946220</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;Report xyz.&lt;/P&gt;&lt;P&gt;DATA txt(8) TYPE c VALUE '19980606'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA mytype(1) VALUE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN txt TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE / &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;ASSIGN txt TO &amp;lt;fs&amp;gt; CASTING TYPE d.&lt;/P&gt;&lt;P&gt;WRITE / &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN txt TO &amp;lt;fs&amp;gt; CASTING TYPE (mytype).&lt;/P&gt;&lt;P&gt;WRITE / &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 03:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-casting-of-objects/m-p/3961258#M946220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T03:50:08Z</dc:date>
    </item>
  </channel>
</rss>

