<?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: Select not retreiving data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597323#M594937</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;&lt;/P&gt;&lt;P&gt; its difficult to suggest some thing in this scenerio but.. one advice try commenting the like part and see if it is working if it works try adding like for one field at a time and check ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT belnr&lt;/P&gt;&lt;P&gt;perio&lt;/P&gt;&lt;P&gt;wkgbtr&lt;/P&gt;&lt;P&gt;wogbtr&lt;/P&gt;&lt;P&gt;objnr&lt;/P&gt;&lt;P&gt;gjahr&lt;/P&gt;&lt;P&gt;wrttp&lt;/P&gt;&lt;P&gt;vrgng&lt;/P&gt;&lt;P&gt;parob&lt;/P&gt;&lt;P&gt;parob1&lt;/P&gt;&lt;P&gt;uspob&lt;/P&gt;&lt;P&gt;bukrs&lt;/P&gt;&lt;P&gt;owaer&lt;/P&gt;&lt;P&gt;FROM coep&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gt_coep_recv&lt;/P&gt;&lt;P&gt;WHERE perio IN s_perio&lt;/P&gt;&lt;P&gt;AND gjahr IN s_gjahr&lt;/P&gt;&lt;P&gt;AND bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND kstar LIKE '001124%'&lt;/P&gt;&lt;P&gt;AND objnr LIKE 'LKIRST%'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AND parob LIKE 'LKIRSTP%STCC%' " I doubt this is the problem&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;AND wrttp = '11'&lt;/P&gt;&lt;P&gt;AND vrgng = 'RKL'.&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;mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 19:19:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T19:19:36Z</dc:date>
    <item>
      <title>Select not retreiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597317#M594931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding select statement.&lt;/P&gt;&lt;P&gt;Here is the select code &lt;/P&gt;&lt;P&gt;SELECT belnr&lt;/P&gt;&lt;P&gt;       perio&lt;/P&gt;&lt;P&gt;       wkgbtr&lt;/P&gt;&lt;P&gt;       wogbtr&lt;/P&gt;&lt;P&gt;       objnr&lt;/P&gt;&lt;P&gt;       gjahr&lt;/P&gt;&lt;P&gt;       wrttp&lt;/P&gt;&lt;P&gt;       vrgng&lt;/P&gt;&lt;P&gt;       parob&lt;/P&gt;&lt;P&gt;       parob1&lt;/P&gt;&lt;P&gt;       uspob&lt;/P&gt;&lt;P&gt;       bukrs&lt;/P&gt;&lt;P&gt;       owaer&lt;/P&gt;&lt;P&gt; FROM  coep&lt;/P&gt;&lt;P&gt; INTO CORRESPONDING FIELDS OF TABLE gt_coep_recv&lt;/P&gt;&lt;P&gt; WHERE  perio IN s_perio&lt;/P&gt;&lt;P&gt; AND    gjahr IN s_gjahr&lt;/P&gt;&lt;P&gt; AND    bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt; AND    kstar LIKE '001124%'&lt;/P&gt;&lt;P&gt; AND    objnr LIKE 'LKIRST%'&lt;/P&gt;&lt;P&gt; AND    parob LIKE 'LKIRSTP%STCC%'&lt;/P&gt;&lt;P&gt; AND    wrttp = '11'&lt;/P&gt;&lt;P&gt; AND    vrgng = 'RKL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select return a sy-subrc value of 4 when executed. But when I go the COEP table and try to select data basing on the same conditions, I am able to retrieve data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 18:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597317#M594931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T18:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select not retreiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597318#M594932</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;For testing this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test 1: keep only &lt;/P&gt;&lt;P&gt;  WHERE perio IN s_perio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test 2: keep only &lt;/P&gt;&lt;P&gt;  WHERE perio IN s_perio&lt;/P&gt;&lt;P&gt;  AND gjahr IN s_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test 3: keep only &lt;/P&gt;&lt;P&gt;  WHERE perio IN s_perio.&lt;/P&gt;&lt;P&gt;  AND gjahr IN s_gjahr&lt;/P&gt;&lt;P&gt;  AND bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one point of time you will get an sy-subrc eq 4 . and you can easily identify the field in which you are doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 18:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597318#M594932</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-30T18:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select not retreiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597319#M594933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one of the condition in where clause might not be matching..&lt;/P&gt;&lt;P&gt;check the corresponding data in the corresponding table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 19:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597319#M594933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T19:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select not retreiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597320#M594934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess below conditions are problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND kstar LIKE '001124%'&lt;/P&gt;&lt;P&gt;AND objnr LIKE 'LKIRST%'&lt;/P&gt;&lt;P&gt;AND parob LIKE 'LKIRSTP%STCC%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to keep one by one and see the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 19:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597320#M594934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T19:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select not retreiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597321#M594935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE perio IN s_perio&lt;/P&gt;&lt;P&gt;AND gjahr IN s_gjahr&lt;/P&gt;&lt;P&gt;AND bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND kstar LIKE '001124%'&lt;/P&gt;&lt;P&gt;AND objnr LIKE 'LKIRST%'&lt;/P&gt;&lt;P&gt;AND parob LIKE 'LKIRSTP%STCC%'&lt;/P&gt;&lt;P&gt;AND wrttp = '11'&lt;/P&gt;&lt;P&gt;AND vrgng = 'RKL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KSTAR, OBJNR, PAROB may be having conversion exits so your LIKE may not be correct. Try to isolate the problem to one or more of the where clause conditions and then see why it is wrong. My guess is it is to do with the conversion exits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 19:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597321#M594935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T19:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select not retreiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597322#M594936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turns out I was missing one character in the objnr comparision string..... thanks for all your inputs... appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 19:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597322#M594936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T19:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select not retreiving data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597323#M594937</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;&lt;/P&gt;&lt;P&gt; its difficult to suggest some thing in this scenerio but.. one advice try commenting the like part and see if it is working if it works try adding like for one field at a time and check ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT belnr&lt;/P&gt;&lt;P&gt;perio&lt;/P&gt;&lt;P&gt;wkgbtr&lt;/P&gt;&lt;P&gt;wogbtr&lt;/P&gt;&lt;P&gt;objnr&lt;/P&gt;&lt;P&gt;gjahr&lt;/P&gt;&lt;P&gt;wrttp&lt;/P&gt;&lt;P&gt;vrgng&lt;/P&gt;&lt;P&gt;parob&lt;/P&gt;&lt;P&gt;parob1&lt;/P&gt;&lt;P&gt;uspob&lt;/P&gt;&lt;P&gt;bukrs&lt;/P&gt;&lt;P&gt;owaer&lt;/P&gt;&lt;P&gt;FROM coep&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gt_coep_recv&lt;/P&gt;&lt;P&gt;WHERE perio IN s_perio&lt;/P&gt;&lt;P&gt;AND gjahr IN s_gjahr&lt;/P&gt;&lt;P&gt;AND bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND kstar LIKE '001124%'&lt;/P&gt;&lt;P&gt;AND objnr LIKE 'LKIRST%'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AND parob LIKE 'LKIRSTP%STCC%' " I doubt this is the problem&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;AND wrttp = '11'&lt;/P&gt;&lt;P&gt;AND vrgng = 'RKL'.&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;mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 19:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-not-retreiving-data/m-p/2597323#M594937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T19:19:36Z</dc:date>
    </item>
  </channel>
</rss>

