<?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 Dynamic casting in field symbol assignment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-casting-in-field-symbol-assignment/m-p/7920990#M1598730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm studying about dynamic casting with field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN sy-datum TO &amp;lt;any&amp;gt; CASTING TYPE (typename).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the &lt;EM&gt;typename&lt;/EM&gt; in my code above be a name of a type in the dictionary? I tried to use 'c' and 'i' as the value of  &lt;EM&gt;typename&lt;/EM&gt; (elementary type) but it raises run-time error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2011 09:46:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-09T09:46:12Z</dc:date>
    <item>
      <title>Dynamic casting in field symbol assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-casting-in-field-symbol-assignment/m-p/7920990#M1598730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm studying about dynamic casting with field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN sy-datum TO &amp;lt;any&amp;gt; CASTING TYPE (typename).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the &lt;EM&gt;typename&lt;/EM&gt; in my code above be a name of a type in the dictionary? I tried to use 'c' and 'i' as the value of  &lt;EM&gt;typename&lt;/EM&gt; (elementary type) but it raises run-time error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 09:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-casting-in-field-symbol-assignment/m-p/7920990#M1598730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-09T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic casting in field symbol assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-casting-in-field-symbol-assignment/m-p/7920991#M1598731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Press F1 on CASTING TYPE and you can find what it means &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 09:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-casting-in-field-symbol-assignment/m-p/7920991#M1598731</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2011-06-09T09:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic casting in field symbol assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-casting-in-field-symbol-assignment/m-p/7920992#M1598732</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;When the system accesses the field symbol, the content of the assigned data object is interpreted as if it had the type declared in the statement. After the TYPE addition, you can declare the name of a data object. The content of this data object indicates the data type at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF t_date,
          year(4)  TYPE n,
          month(2) TYPE n,
          day(2)   TYPE n,
       END OF t_date.

FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY,
               &amp;lt;f&amp;gt;  TYPE n.

ASSIGN sy-datum TO &amp;lt;fs&amp;gt; CASTING TYPE t_date.

WRITE / sy-datum.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Click here|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3930358411d1829f0000e829fbfe/content.htm] to know more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 11:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-casting-in-field-symbol-assignment/m-p/7920992#M1598732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-09T11:53:58Z</dc:date>
    </item>
  </channel>
</rss>

