<?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: How to fetch fields dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101821#M736058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu and abhishek &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;                         Thanks a lot , problem solved &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;abhay &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 06:57:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-20T06:57:02Z</dc:date>
    <item>
      <title>How to fetch fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101816#M736053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   I am using a report with following code , in which itemmaster is a workarea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM  zmartitemmaster CLIENT SPECIFIED INTO itemmaster&lt;/P&gt;&lt;P&gt;           WHERE  mandt   = sy-mandt&lt;/P&gt;&lt;P&gt;           AND    prodid  = prodid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this work area has fields like itemdes1, itemdes2 and so on . Now problem is that i want to fetch its fields dynamically&lt;/P&gt;&lt;P&gt;so i collected dynamic fiels name inot a variable named &amp;lt;b&amp;gt;var&amp;lt;/b&amp;gt; (ex concattenate 'itemdes' '1' to var)&lt;/P&gt;&lt;P&gt;then i am trying t fetch as &lt;/P&gt;&lt;P&gt;MOVE itemmaster-var to X. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;but its giving a syntax error as itemmaster does not have a component called VAR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body give any possible solution for getting dynamic fields contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101816#M736053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T05:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101817#M736054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare var of type itemmaster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101817#M736054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T05:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101818#M736055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;     thanks for reply but i want to fetch its fields dynamically , &lt;/P&gt;&lt;P&gt;and i am storing fields name in &amp;lt;b&amp;gt;var&amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;so i dont understand how to do it &lt;/P&gt;&lt;P&gt;can you plz explain it with piece of code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Abhay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101818#M736055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T05:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101819#M736056</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;You can use field symbols for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. FIELD-SYMBOLS : &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the function GET_COMPONENT_LIST you can get the fieldnames for the internal table being used in the program into another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, loop at the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'zitemmaster-' itab-fieldname into str.&lt;/P&gt;&lt;P&gt;ASSIGN (str) to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will populate the value of zitemmaster-itemdes1, itemdes2 etc. one by one in the field symbol which we can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101819#M736056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T05:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101820#M736057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use field symbols to get the info &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 component Var of structure itemmaster to &amp;lt;fs&amp;gt;  &lt;/P&gt;&lt;P&gt;&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;abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101820#M736057</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-20T05:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101821#M736058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu and abhishek &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;                         Thanks a lot , problem solved &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;abhay &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 06:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101821#M736058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T06:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch fields dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101822#M736059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot problem solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 06:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-fetch-fields-dynamically/m-p/3101822#M736059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T06:58:37Z</dc:date>
    </item>
  </channel>
</rss>

