<?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: Dynamic data name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-name/m-p/1955831#M393416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juzio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_field_symbols_stat_assign .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;f1&amp;gt; TYPE ANY, &amp;lt;f2&amp;gt; TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: text(20)  TYPE c VALUE 'Hello, how are you?',&lt;/P&gt;&lt;P&gt;      num       TYPE i VALUE 5,&lt;/P&gt;&lt;P&gt;      BEGIN OF line1,&lt;/P&gt;&lt;P&gt;        col1 TYPE f VALUE '1.1e+10',&lt;/P&gt;&lt;P&gt;        col2 TYPE i VALUE '1234',&lt;/P&gt;&lt;P&gt;      END OF line1,&lt;/P&gt;&lt;P&gt;      line2 LIKE line1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN text TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN num TO  &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD &amp;lt;f1&amp;gt; LENGTH &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE: / &amp;lt;f1&amp;gt;, 'has length', num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN line1 TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN line2-col2 TO &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;f1&amp;gt; TO line2.&lt;/P&gt;&lt;P&gt;ASSIGN 'LINE2-COL2 =' TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE: / &amp;lt;f1&amp;gt;, &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. mark if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2007 09:52:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-07T09:52:52Z</dc:date>
    <item>
      <title>Dynamic data name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-name/m-p/1955829#M393414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to create field-symbol, whose name is dynamic created?&lt;/P&gt;&lt;P&gt;f.e. depend on entries in specific colum in customizing table .&lt;/P&gt;&lt;P&gt;(loop at custom_tab into custom_stru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;custom_stru-name&amp;gt; type any....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 09:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-name/m-p/1955829#M393414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T09:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-name/m-p/1955830#M393415</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;No u can't do it, you can only create a field-symbol with the same type, but only if the type is defined in dictionary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: &amp;lt;MY_FIELD&amp;gt; TYPE ANY.

LOOP AT CUSTOM_TAB INTO CUSTOM_STRU.

  ASSIGN (CUSTOM_STRU-NAME) TO &amp;lt;MY_FIELD&amp;gt;.
 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 09:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-name/m-p/1955830#M393415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T09:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-name/m-p/1955831#M393416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juzio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_field_symbols_stat_assign .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;f1&amp;gt; TYPE ANY, &amp;lt;f2&amp;gt; TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: text(20)  TYPE c VALUE 'Hello, how are you?',&lt;/P&gt;&lt;P&gt;      num       TYPE i VALUE 5,&lt;/P&gt;&lt;P&gt;      BEGIN OF line1,&lt;/P&gt;&lt;P&gt;        col1 TYPE f VALUE '1.1e+10',&lt;/P&gt;&lt;P&gt;        col2 TYPE i VALUE '1234',&lt;/P&gt;&lt;P&gt;      END OF line1,&lt;/P&gt;&lt;P&gt;      line2 LIKE line1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN text TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN num TO  &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD &amp;lt;f1&amp;gt; LENGTH &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE: / &amp;lt;f1&amp;gt;, 'has length', num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN line1 TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN line2-col2 TO &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;f1&amp;gt; TO line2.&lt;/P&gt;&lt;P&gt;ASSIGN 'LINE2-COL2 =' TO &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE: / &amp;lt;f1&amp;gt;, &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. mark if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 09:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-name/m-p/1955831#M393416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T09:52:52Z</dc:date>
    </item>
  </channel>
</rss>

