<?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: Exception while executing a select statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020538#M413472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasanth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want to look for the contents of the table and randomly pick one row and put all the key field values in my select statement and see if I can pull one other filed value. How can I look into the contents of the table. I tired se11 (displays only fields). se16, its asking some values before I can execute the table to display ( the values am not sure of).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2007 15:15:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-14T15:15:17Z</dc:date>
    <item>
      <title>Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020530#M413464</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 get an exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"CX_SY_NO_HANDLER triggered&lt;/P&gt;&lt;P&gt;An exception with the type CX_SY_OPEN_SQL_DB occured but was neither handled"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single empneededby from hrp9007 into start_date&lt;/P&gt;&lt;P&gt;where OBJID = REQUISITION_NUM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me whats goin on here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 14:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020530#M413464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T14:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020531#M413465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just whether u r passing all the key fields in the select query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single empneededby from hrp9007 into start_date
where OBJID = REQUISITION_NUM .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 14:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020531#M413465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020532#M413466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Check with the table name, bcoz when i am trying to open the table it is giving as table does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 14:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020532#M413466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020533#M413467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the declaration of  start_date same as  empneededby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 14:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020533#M413467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020534#M413468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your replies,  I was trying all options. But still same exception. One thing "passing all the key fields in the select query:" from Vasanth's reply. Could you guys be more specific about using all the key fields in a select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 14:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020534#M413468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020535#M413469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r using select single u need to pass all the primary key fields of the table in the where condition then only it will correctly fetch the desired record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!!&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 14:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020535#M413469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T14:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020536#M413470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasanth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have changed my query to include all the key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single empneededby from hrp9007 into start_date&lt;/P&gt;&lt;P&gt;      where plvar  eq '01'&lt;/P&gt;&lt;P&gt;            and   istat  eq '1'&lt;/P&gt;&lt;P&gt;            and   begda  le sy-datum&lt;/P&gt;&lt;P&gt;            and   endda  ge sy-datum&lt;/P&gt;&lt;P&gt;            and   reqnr  eq REQUISITION_NUM&lt;/P&gt;&lt;P&gt;            and   status eq '99'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute, nothing happens.  what am I expected to see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 14:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020536#M413470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T14:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020537#M413471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur first post u have assigned OBJID to REQUISITION_NUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now u have changed to reqnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single empneededby from hrp9007 into start_date
where plvar eq '01'
and istat eq '1'
and begda le sy-datum
and endda ge sy-datum
and reqnr eq REQUISITION_NUM " Check here
and status eq '99'.
IF SY-SUBRC = 0.
" U r having data for the selection condn in the table.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 15:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020537#M413471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T15:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020538#M413472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasanth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want to look for the contents of the table and randomly pick one row and put all the key field values in my select statement and see if I can pull one other filed value. How can I look into the contents of the table. I tired se11 (displays only fields). se16, its asking some values before I can execute the table to display ( the values am not sure of).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 15:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020538#M413472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T15:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while executing a select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020539#M413473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I test the class (say am printing something). Where can I see the output after I test the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 15:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-while-executing-a-select-statement/m-p/2020539#M413473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T15:24:42Z</dc:date>
    </item>
  </channel>
</rss>

