<?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: Problem in excuting select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053386#M1174635</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; First check the table  zapv_names whether the datas are there for the given input or not.&lt;/P&gt;&lt;P&gt;I think this will solve  ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2009 07:29:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-13T07:29:05Z</dc:date>
    <item>
      <title>Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053376#M1174625</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 have created simple report and in start-of-selection i have writen select statement with bukrs and lifnr as parameters. But i am unable to execute the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the code&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;  select bukrs&lt;/P&gt;&lt;P&gt;         lifnr&lt;/P&gt;&lt;P&gt;         name1&lt;/P&gt;&lt;P&gt;         name2&lt;/P&gt;&lt;P&gt;         name3&lt;/P&gt;&lt;P&gt;         from zapv_names&lt;/P&gt;&lt;P&gt;         into table it_zapv&lt;/P&gt;&lt;P&gt;         where  bukrs  =  p_bukrs&lt;/P&gt;&lt;P&gt;         and  lifnr =  p_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not under stand why it is not working. The code is correct. I have taken names as zname field and others are standered data elements.&lt;/P&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;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RamuV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053376#M1174625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053377#M1174626</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;Try to check if your query can be done succeffully by trx SE16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053377#M1174626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053378#M1174627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is not working?&lt;/P&gt;&lt;P&gt;1. Don't you get any data at all?&lt;/P&gt;&lt;P&gt;2. Do you get a short dump?&lt;/P&gt;&lt;P&gt;3. etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053378#M1174627</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-01-12T16:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053379#M1174628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As a precaution instead of INTO TABLE IT... Use INTO CORRESPONDING FIELDS OF TABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell what the error is if it still does not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also cross check if p_bukrs and p_lifnr are with valid values or not and that for the combination data exists..&lt;/P&gt;&lt;P&gt;Since you ae using parameters with '=' ensure you are passing some values in these two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankesh on Jan 12, 2009 10:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053379#M1174628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T16:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053380#M1174629</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;check wheter you passing the P_bukrs &amp;amp; p_lifnr values to the select statment &amp;amp; the dat should exist in the table with conbination of values passed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053380#M1174629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053381#M1174630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; start-of-selection.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   select bukrs&lt;/P&gt;&lt;P&gt;&amp;gt;          lifnr&lt;/P&gt;&lt;P&gt;&amp;gt;          name1&lt;/P&gt;&lt;P&gt;&amp;gt;          name2&lt;/P&gt;&lt;P&gt;&amp;gt;          name3&lt;/P&gt;&lt;P&gt;&amp;gt;          from zapv_names&lt;/P&gt;&lt;P&gt;&amp;gt;          into table it_zapv&lt;/P&gt;&lt;P&gt;&amp;gt;          where  bukrs  =  p_bukrs&lt;/P&gt;&lt;P&gt;&amp;gt;          and  lifnr =  p_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all does ur table have data in the client ur executing ur report?&lt;/P&gt;&lt;P&gt;secondly it_zapv contains onlly field tht u have mentioned in it_zapv or it contains more if it contains more then use "into corresponding fields of table"&lt;/P&gt;&lt;P&gt;put a break point above the select and then check what point the execution is stopping at the select and are the params already been populated at tht time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053381#M1174630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053382#M1174631</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;check wether the fields ur using in the select statement is in the order u have defined in the internal table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 17:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053382#M1174631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T17:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053383#M1174632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to take a wild guess that since you show this to be the first statement &lt;/P&gt;&lt;P&gt;after the START-OF-SELECTION line, that is is coming from a report program &lt;/P&gt;&lt;P&gt;where the two field you are testing for are actually RANGEs on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select bukrs
lifnr
name1
name2
name3
from zapv_names
into table it_zapv
where bukrs = p_bukrs   " This is likely a RANGE
and lifnr = p_lifnr.           " This is likely a RANGE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change them to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select bukrs
lifnr
name1
name2
name3
from zapv_names
into table it_zapv
where bukrs IN p_bukrs   " This is likely a RANGE
and lifnr IN p_lifnr.           " This is likely a RANGE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges would be tables and have value like 'IEQ0101' where with the = sign would never be equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paul Chapman on Jan 12, 2009 12:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 17:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053383#M1174632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T17:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053384#M1174633</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;     1) first check whether the order you are fetching the fields in the same order you are declared fields in the internal table or else you can use into corresponding fileds of table instead of into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     2) in the where condition you had used some like p_bukrs whether they are parameters or select-options &lt;/P&gt;&lt;P&gt; i don't know if they are select-options you should use in instead of ' =' after where in your select query like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ex :&lt;/P&gt;&lt;P&gt;        select f1&lt;/P&gt;&lt;P&gt;                  f2&lt;/P&gt;&lt;P&gt;                  f3&lt;/P&gt;&lt;P&gt;                  from tab1 &lt;/P&gt;&lt;P&gt;                  into table itab&lt;/P&gt;&lt;P&gt;                  where bukrs &lt;STRONG&gt;in&lt;/STRONG&gt;  p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sateesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 17:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053384#M1174633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T17:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053385#M1174634</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; Write your query like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : zapv_names . "declare by tables statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs&lt;/P&gt;&lt;P&gt;lifnr&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;name2&lt;/P&gt;&lt;P&gt;name3&lt;/P&gt;&lt;P&gt;from zapv_names&lt;/P&gt;&lt;P&gt;into corresponding fields of  table it_zapv&lt;/P&gt;&lt;P&gt;where bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;and lifnr = p_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if again not work than check the data is available in database for the given company code and vendor .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it wil work definately .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Nilesh Jain .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 07:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053385#M1174634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T07:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in excuting select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053386#M1174635</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; First check the table  zapv_names whether the datas are there for the given input or not.&lt;/P&gt;&lt;P&gt;I think this will solve  ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 07:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-excuting-select-statement/m-p/5053386#M1174635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T07:29:05Z</dc:date>
    </item>
  </channel>
</rss>

