<?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: Error in Select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060386#M1353913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Instead why dont you try as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate  trkeynr p_stat into p_stat separated by space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  (p_stat) from ...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 10:58:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-14T10:58:54Z</dc:date>
    <item>
      <title>Error in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060384#M1353911</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;I need to fetch both dynamic as well as static fields.  When i tried this query it gives me error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select trkeynr&lt;/P&gt;&lt;P&gt;      (p_stat)&lt;/P&gt;&lt;P&gt;from k810008&lt;/P&gt;&lt;P&gt;  into table git_k8&lt;/P&gt;&lt;P&gt;    for all entries in git_k7&lt;/P&gt;&lt;P&gt;      where trkeynr eq git_k7-trkeynr&lt;/P&gt;&lt;P&gt;    and   gjahr   eq p_year&lt;/P&gt;&lt;P&gt;    and   perde   eq p_period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==========&lt;/P&gt;&lt;P&gt;Whereas if i simply select only the dynamic fields, it doesnt give any error.  like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select        (p_stat)&lt;/P&gt;&lt;P&gt;from k810008&lt;/P&gt;&lt;P&gt;  into table git_k8&lt;/P&gt;&lt;P&gt;    for all entries in git_k7&lt;/P&gt;&lt;P&gt;      where trkeynr eq git_k7-trkeynr&lt;/P&gt;&lt;P&gt;    and   gjahr   eq p_year&lt;/P&gt;&lt;P&gt;    and   perde   eq p_period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cant we use both dynamic field selection and static field se&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 10:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060384#M1353911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T10:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060385#M1353912</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;Yes you can use both static as well as dynamic fields in the select statement at the same time. Try using INTO CORRESPONDING FIELDS OF TABLE addition in the select query and check if its working, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select trkeynr
(p_stat)
from k810008
into INTO CORRESPONDING FIELDS OF TABLE git_k8
for all entries in git_k7
where trkeynr eq git_k7-trkeynr
and gjahr eq p_year
and perde eq p_period.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure you dont enter the same field trkeynr in p_stat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 10:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060385#M1353912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T10:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060386#M1353913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Instead why dont you try as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate  trkeynr p_stat into p_stat separated by space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  (p_stat) from ...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 10:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060386#M1353913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060387#M1353914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vikrant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 11:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060387#M1353914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060388#M1353915</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;As supriya stated use the concatenate statement, It will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 11:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/6060388#M1353915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T11:09:35Z</dc:date>
    </item>
  </channel>
</rss>

