<?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 Dynamice field in the Select statement ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746253#M323757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to query a table and get the SUM (  fieldx) without any where clause. However,  the fieldx should be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Select SUM ( Gross_Wt ) from table.  I want the Gross_Wt field to be dynamic.&lt;/P&gt;&lt;P&gt;Any sugestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 23:05:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T23:05:11Z</dc:date>
    <item>
      <title>Dynamice field in the Select statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746253#M323757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to query a table and get the SUM (  fieldx) without any where clause. However,  the fieldx should be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Select SUM ( Gross_Wt ) from table.  I want the Gross_Wt field to be dynamic.&lt;/P&gt;&lt;P&gt;Any sugestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746253#M323757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T23:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice field in the Select statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746254#M323758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using Field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select SUM ( &amp;lt;FS_Gross_Wt&amp;gt; ) from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- guru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746254#M323758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T23:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice field in the Select statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746255#M323759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried field symbol its not working.  Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746255#M323759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T23:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice field in the Select statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746256#M323760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : v_field(40) like c VALUE 'SUM(&amp;lt;FIELD NAME&amp;gt;)',
       v_var TYPE p.
 
SELECT v_field FROM &amp;lt;TABLE&amp;gt; INTO v_var.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just this blog you will get more idea&lt;/P&gt;&lt;P&gt;/people/alvaro.tejadagalindo/blog/2006/12/13/dynamic-inner-join-function-module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746256#M323760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T23:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice field in the Select statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746257#M323761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthir, I tried your code, its not working either. Thanks &amp;amp; Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746257#M323761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T23:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice field in the Select statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746258#M323762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : v_field(40) like c VALUE 'SUM( &amp;lt;FIELD NAME&amp;gt; )',
       v_var TYPE p.
 
SELECT v_field FROM &amp;lt;TABLE&amp;gt; INTO v_var GROUP BY &amp;lt;key Field&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746258#M323762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T23:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice field in the Select statement ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746259#M323763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved the problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        strtemp1 = 'SUM( '.&lt;/P&gt;&lt;P&gt;        strtemp2 = ' )'.&lt;/P&gt;&lt;P&gt;        CONCATENATE strtemp1 l_kfname strtemp2&lt;/P&gt;&lt;P&gt;                INTO strsumfld SEPARATED  BY space.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE ( strsumfld )&lt;/P&gt;&lt;P&gt;          FROM (l_etblname)&lt;/P&gt;&lt;P&gt;          INTO l_ecubetotal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 23:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamice-field-in-the-select-statement/m-p/1746259#M323763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T23:57:15Z</dc:date>
    </item>
  </channel>
</rss>

