<?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: sample program for field symbol in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870042#M366415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA NAME(4) VALUE 'JOHN'. 
FIELD-SYMBOLS &amp;lt;F&amp;gt; TYPE ANY. 
ASSIGN NAME TO &amp;lt;F&amp;gt;. 
WRITE &amp;lt;F&amp;gt;. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2007 10:21:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-05T10:21:07Z</dc:date>
    <item>
      <title>sample program for field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870041#M366414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;         I am fresher. I want sample program(code) for field symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 10:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870041#M366414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T10:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: sample program for field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870042#M366415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA NAME(4) VALUE 'JOHN'. 
FIELD-SYMBOLS &amp;lt;F&amp;gt; TYPE ANY. 
ASSIGN NAME TO &amp;lt;F&amp;gt;. 
WRITE &amp;lt;F&amp;gt;. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 10:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870042#M366415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: sample program for field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870043#M366416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF line,
         col1 TYPE c,
         col2 TYPE c,
       END OF line.

DATA: wa TYPE line,
      itab TYPE HASHED TABLE OF line WITH UNIQUE KEY col1,
      key(4) TYPE c VALUE 'COL1'.

FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE ANY TABLE.

ASSIGN itab TO &amp;lt;fs&amp;gt;.

READ TABLE &amp;lt;fs&amp;gt; WITH TABLE KEY (key) = 'X' INTO wa.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table ITAB is assigned to the generic field symbol &amp;lt;FS&amp;gt;, after which it is possible to address the table key of the field symbol dynamically. However, the static address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;fs&amp;gt; WITH TABLE KEY col1 = 'X' INTO wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not possible syntactically, since the field symbol does not adopt the key of table ITAB until runtime. In the program, the type specification ANY TABLE only indicates that &amp;lt;FS&amp;gt; is a table. If the type had been ANY (or no type had been specified at all), even the specific internal table statement READ TABLE &amp;lt;FS&amp;gt; would not have been possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 10:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870043#M366416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T10:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: sample program for field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870044#M366417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Poonam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below code:&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;mgv_poitemx&amp;gt; type bapimepoitemx.&lt;/P&gt;&lt;P&gt;loop at poitemx assigning &amp;lt;mgv_poitemx&amp;gt;&lt;/P&gt;&lt;P&gt;  where not ( material_external is initial and&lt;/P&gt;&lt;P&gt;              material_version is initial and&lt;/P&gt;&lt;P&gt;              material_guid is initial ).&lt;/P&gt;&lt;P&gt;  &amp;lt;mgv_poitemx&amp;gt;-material = 'X'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;loop at poitemx assigning &amp;lt;mgv_poitemx&amp;gt;&lt;/P&gt;&lt;P&gt;  where not ( ematerial_external is initial and&lt;/P&gt;&lt;P&gt;              ematerial_version is initial and&lt;/P&gt;&lt;P&gt;              ematerial_guid is initial ).&lt;/P&gt;&lt;P&gt;  &amp;lt;mgv_poitemx&amp;gt;-ematerial = 'X'.&lt;/P&gt;&lt;P&gt;endloop.&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;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 10:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870044#M366417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T10:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: sample program for field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870045#M366418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  ZGILL_FS     line-size 250&lt;/P&gt;&lt;P&gt;                     line-count 65 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: name like p0002-vorna.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;parameter pernr like pernr-pernr.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs_name&amp;gt; type any.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;start-of-selection .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;assign name to &amp;lt;fs_name&amp;gt;.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;select single vorna into name from pa0002&lt;/P&gt;&lt;P&gt;             where pernr = pernr.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;write: 'Name: ' ,&amp;lt;fs_name&amp;gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 10:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870045#M366418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T10:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: sample program for field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870046#M366419</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;&lt;/P&gt;&lt;P&gt;REPORT demo_field_symbols_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;         col1(1) TYPE c,&lt;/P&gt;&lt;P&gt;         col2(1) TYPE c VALUE 'X',&lt;/P&gt;&lt;P&gt;       END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; LIKE line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN line TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;fs&amp;gt;-col2 TO &amp;lt;fs&amp;gt;-col1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 10:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-program-for-field-symbol/m-p/1870046#M366419</guid>
      <dc:creator>p291102</dc:creator>
      <dc:date>2007-02-05T10:45:31Z</dc:date>
    </item>
  </channel>
</rss>

