<?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: using variable in accessing itab field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751329#M325800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;im sorry, here's the correct error message:&lt;/P&gt;&lt;P&gt;The data object "itab" does not have a component called ""&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 06:18:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-15T06:18:13Z</dc:date>
    <item>
      <title>using variable in accessing itab field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751327#M325798</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;is it possible to access a field of an internal table using a variable.&lt;/P&gt;&lt;P&gt;for example, please see my code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab,&lt;/P&gt;&lt;P&gt;        field1 LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;        field2 LIKE mara-matkl,&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_fldname(5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;- itab is being populated here -&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;v_fldname = 'field1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;- i want to access the first field of itab, field1-&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;***- but instead of doing this code&lt;/P&gt;&lt;P&gt;write itab-field1.&lt;/P&gt;&lt;P&gt;***- i want to do this...&lt;/P&gt;&lt;P&gt;write itab-(v_fldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but im getting an error message saying that &amp;lt;&amp;lt;The data object "IT_VAD" does not have a component called ""&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please send me the correct way to deal with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your usual support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751327#M325798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in accessing itab field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751328#M325799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is possible to achive what you want, not with variables but with Field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Guru&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751328#M325799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in accessing itab field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751329#M325800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;im sorry, here's the correct error message:&lt;/P&gt;&lt;P&gt;The data object "itab" does not have a component called ""&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751329#M325800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in accessing itab field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751330#M325801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru,&lt;/P&gt;&lt;P&gt;can you show me a sample code.&lt;/P&gt;&lt;P&gt;Thanks you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751330#M325801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in accessing itab field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751331#M325802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this it may help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FM name 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : components LIKE rstrucinfo OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; Get component list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program = sy-repid&lt;/P&gt;&lt;P&gt;fieldname = 'ITAB'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;components = components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751331#M325802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in accessing itab field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751332#M325803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have a SAP sytem now but This is a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field-symbols f_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assin a value to the field symbol&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Assign f_field value "Field name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now the value "Field name" is stored in F_Field. You can use the value as below&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;v_somefield = &amp;lt;f_field&amp;gt;. " V_somefield will now have a value of "Field name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Guru&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-variable-in-accessing-itab-field/m-p/1751332#M325803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:23:22Z</dc:date>
    </item>
  </channel>
</rss>

