<?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 : SQL error in the database when accessing a table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sql-error-in-the-database-when-accessing-a-table/m-p/7180031#M1518364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please open a support message for this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Aug 2010 03:56:41 GMT</pubDate>
    <dc:creator>lbreddemann</dc:creator>
    <dc:date>2010-08-10T03:56:41Z</dc:date>
    <item>
      <title>Error : SQL error in the database when accessing a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sql-error-in-the-database-when-accessing-a-table/m-p/7180030#M1518363</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;In SAP ECC 6.0, OS Linux, Database MAXDB, we have a job scheduled daily every 15 mins. &lt;/P&gt;&lt;P&gt;This job has been failing for a particular record daily.&lt;/P&gt;&lt;P&gt;I have gone to table IHPA, and i'm able to fetch the contents from the &lt;/P&gt;&lt;P&gt;databrowser(se16), but in the program code it fails,&lt;/P&gt;&lt;P&gt;only for this particular record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Technical code:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; clear: first_name, last_name, cust_telf1, cust_name.
         select b~namev b~name1 b~telf1 c~name1
         into (first_name, last_name, cust_telf1, cust_name)
         from ihpa as a
         join knvk as b on a~parnr = b~parnr
         join kna1 as c on b~kunnr = c~kunnr
         where a~objnr = qmel-objnr
         and   a~parvw = 'AP'
         and   b~kunnr ne qmel-kunum
         and   b~kunnr ne z_endcust
         and   b~loevm = space.
           if sy-subrc = 0.
             concatenate 'Other contact:' cust_name '-' first_name
                        last_name 'Tel:' cust_telf1
                   into text_lines separated by space.
             append text_lines.
           endif.
         endselect.

         clear text_lines.
         append text_lines.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you gurus, please provide some valuable suggestions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP DUMP - Info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;short text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL error in the database when accessing a table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 processor: DBIF_RSQL_SQL_ERROR&lt;/P&gt;&lt;P&gt;Runtime Errors         DBIF_RSQL_SQL_ERROR&lt;/P&gt;&lt;P&gt;Except.                CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt;Database error text........: "POS(1) System error: BD Illegal record"&lt;/P&gt;&lt;P&gt;Internal call code.........: "[RSQL/OPEN/IHPA ]"&lt;/P&gt;&lt;P&gt;Program : RSWUWFML" or "RSWUWFML"&lt;/P&gt;&lt;P&gt;Database type..... "ADABAS D"&lt;/P&gt;&lt;P&gt;Database............. "MaxDB 7.6, MaxDB 7.7"&lt;/P&gt;&lt;P&gt;SAP database version. 700&lt;/P&gt;&lt;P&gt;Operating system..... "Linux 2.6"&lt;/P&gt;&lt;P&gt;The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in procedure "SEND_MESSAGES" "(FORM)", but it was neither handled locally nor  declared in the RAISING clause of its signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SM21, give the following information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database error -602 requires database administrator to intervene&lt;/P&gt;&lt;P&gt;Database error -602 at SEL access to table IHPA&lt;/P&gt;&lt;P&gt;&amp;gt; POS(1) System error: BD Illegal record&lt;/P&gt;&lt;P&gt;Run-time error "DBIF_RSQL_SQL_ERROR" occurred&lt;/P&gt;&lt;P&gt;&amp;gt; Short dump "100809 101039 sdcerp01 &lt;U&gt;C21&lt;/U&gt;00 " generated&lt;/P&gt;&lt;P&gt;Transaction Canceled 00 671 ( DBIF_RSQL_SQL_ERROR 20100809101039sdcerp01_C21_00 RMA_WORKFLOW011 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate if you can help me out. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Mathew Thomas on Aug 9, 2010 9:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 19:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sql-error-in-the-database-when-accessing-a-table/m-p/7180030#M1518363</guid>
      <dc:creator>vinodmathew_thomas</dc:creator>
      <dc:date>2010-08-09T19:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error : SQL error in the database when accessing a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sql-error-in-the-database-when-accessing-a-table/m-p/7180031#M1518364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please open a support message for this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 03:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sql-error-in-the-database-when-accessing-a-table/m-p/7180031#M1518364</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2010-08-10T03:56:41Z</dc:date>
    </item>
  </channel>
</rss>

