<?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 from table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669515#M1098362</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;Did you check the data in the table is present or not according to your where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think no data in your database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 07:01:09 GMT</pubDate>
    <dc:creator>prasanth_kasturi</dc:creator>
    <dc:date>2008-10-16T07:01:09Z</dc:date>
    <item>
      <title>select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669514#M1098361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to select the PSPID from table PROJ with  POST1. &lt;/P&gt;&lt;P&gt;I don´t understand why it  doesn´t work.&lt;/P&gt;&lt;P&gt;Here is my select statement. &lt;/P&gt;&lt;P&gt;SELECT PSPID POST1&lt;/P&gt;&lt;P&gt;  FROM PROJ&lt;/P&gt;&lt;P&gt;  Into wa_tab&lt;/P&gt;&lt;P&gt;  WHERE PSPID EQ B_PSPID .&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields are empty, i don´t understand this.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 06:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669514#M1098361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T06:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669515#M1098362</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;Did you check the data in the table is present or not according to your where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think no data in your database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 07:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669515#M1098362</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-10-16T07:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669516#M1098363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the sy-subrc value after the select query. If its 4 then no records were selected and so the fields are empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 07:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669516#M1098363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T07:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669517#M1098364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; check the table entries in PROJ for the matching entries in the where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 07:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669517#M1098364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T07:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669518#M1098365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If B_PSPID  is a select-option&lt;/P&gt;&lt;P&gt;then the code should like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT PSPID POST1&lt;/P&gt;&lt;P&gt;FROM PROJ&lt;/P&gt;&lt;P&gt;Into wa_tab&lt;/P&gt;&lt;P&gt;WHERE PSPID in B_PSPID .&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is more optimestic:&lt;/P&gt;&lt;P&gt;SELECT PSPID POST1&lt;/P&gt;&lt;P&gt;FROM PROJ&lt;/P&gt;&lt;P&gt;Into table i_tab&lt;/P&gt;&lt;P&gt;WHERE PSPID EQ B_PSPID .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 07:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669518#M1098365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T07:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669519#M1098366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for the answers,&lt;/P&gt;&lt;P&gt;I have looked in the table. I´ve took the Post1 to select the PSPID and POST1 together. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT PSPID POST1&lt;/P&gt;&lt;P&gt;FROM PROJ&lt;/P&gt;&lt;P&gt;Into table i_project&lt;/P&gt;&lt;P&gt;WHERE POST1 EQ "a project description", I get empty field, but there are a many data sets in the table PROJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I take the  WHERE PSPID EQ "12345", it works. &lt;/P&gt;&lt;P&gt;I dont understand what is the difference between POST1 and PSPID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 07:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669519#M1098366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669520#M1098367</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;PSPID is the keyfield for the table PROJ, when you use " WHERE PSPID EQ '12345' " statement, it returns you the matching values for sure if there is any, but POST1 is a text field and using a text field in an SQL query is not an efficient way to get matching values (uppercase-lowercase conflict may be an example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is the difference between POST1 and PSPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murat Kaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669520#M1098367</guid>
      <dc:creator>murat_kaya</dc:creator>
      <dc:date>2008-10-16T09:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669521#M1098368</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;OK&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lt_proj TYPE STANDARD TABLE OF proj.

SELECT * FROM proj INTO TABLE lt_proj WHERE post1 = 'test'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOT OK&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lt_proj TYPE STANDARD TABLE OF proj.

SELECT * FROM proj INTO TABLE lt_proj WHERE post1 = 'TEST'.&amp;lt;&amp;lt;---------------------
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it's case sensitive!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adibo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669521#M1098368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669522#M1098369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&amp;gt; look at domain PS_PSPID&lt;/P&gt;&lt;P&gt;notice the conversion routine ABPSN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ABPSN_INPUT / output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669522#M1098369</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2008-10-16T09:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669523#M1098370</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;SELECT PSPID POST1&lt;/P&gt;&lt;P&gt;FROM PROJ&lt;/P&gt;&lt;P&gt;Into table i_project&lt;/P&gt;&lt;P&gt;WHERE POST1 EQ "a project description", I get empty field, but there are a many data sets in the table PROJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I take the WHERE PSPID EQ "12345", it works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned that it is working for PSPID Eq '12345' and not for 'a project description'. it seems to be case sensitive problem or else pattern problem. so please check case first. if its is fine then try to write CP ( contains pattern ) in where condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will give you some idea,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aswini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669523#M1098370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669524#M1098371</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 selecting with the query, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT PSPID POST1&lt;/P&gt;&lt;P&gt;FROM PROJ&lt;/P&gt;&lt;P&gt;Into table i_project&lt;/P&gt;&lt;P&gt;WHERE POST1 EQ 'A PROJECT DESCRIPTION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669524#M1098371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T09:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: select from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669525#M1098372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, thank you very much to all.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 07:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-table/m-p/4669525#M1098372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T07:48:05Z</dc:date>
    </item>
  </channel>
</rss>

