<?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 DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813842#M2025780</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;Have you ever faced this issue? do you know what is this and how to fix it?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2198509-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2198510-image.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 07:25:19 GMT</pubDate>
    <dc:creator>quyen_tran</dc:creator>
    <dc:date>2023-08-11T07:25:19Z</dc:date>
    <item>
      <title>DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813842#M2025780</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;Have you ever faced this issue? do you know what is this and how to fix it?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2198509-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2198510-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 07:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813842#M2025780</guid>
      <dc:creator>quyen_tran</dc:creator>
      <dc:date>2023-08-11T07:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813843#M2025781</link>
      <description>&lt;P&gt;Hi, &lt;SPAN class="mention-scrubbed"&gt;quyen.tran&lt;/SPAN&gt;&lt;/P&gt;Can you paste the code?</description>
      <pubDate>Fri, 11 Aug 2023 08:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813843#M2025781</guid>
      <dc:creator>xiaosanyu</dc:creator>
      <dc:date>2023-08-11T08:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813844#M2025782</link>
      <description>&lt;P&gt;For these types of issues I go to my Basis team.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813844#M2025782</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-08-11T08:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813845#M2025783</link>
      <description>&lt;P&gt;Hi quyen,&lt;/P&gt;&lt;P&gt;the problem is with the BSEG table. This table is a cluster table and cannot be used in a JOIN. Perhaps that is the problem.&lt;/P&gt;&lt;P&gt;A possible solution:&lt;BR /&gt;You can do it for the table BSEG with the command FOR ALL ENTRIES instead of JOINS.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lt_bseg TYPE TABLE OF bseg.

SELECT * FROM bseg
  INTO TABLE lt_bseg
  FOR ALL ENTRIES IN @lt_openitems
  WHERE belnr EQ @lt_openitems-doc_no
    AND gjahr EQ @lt_openitems-fisc_year
    AND bukrs EQ @lt_openitems-comp_code.

SELECT bkpf~bukrs,
  bkpf~belnr,
  ...
FROM bkpf INNER JOIN acdoca ON acdoca~belnr EQ bkpf~belnr
..
LEFT OUTER JOIN vbpa ON bkpf~awkey EQ vbpa~vbeln
INTO TABLE @DATA(lt_ss02_data)
FOR ALL ENTRIES IN @lt_bseg
WHERE bkpf~belnr EQ @lt_bseg-belnr
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;BR /&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813845#M2025783</guid>
      <dc:creator>turkaj</dc:creator>
      <dc:date>2023-08-11T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813846#M2025784</link>
      <description>SELECT BKPF~BELNR,&lt;BR /&gt;                 BKPF~GJAHR,&lt;BR /&gt;                 BKPF~BUKRS,&lt;BR /&gt;                 BKPF~BLART,&lt;BR /&gt;                 BKPF~BUDAT,&lt;BR /&gt;                 BKPF~AWKEY,&lt;BR /&gt;                 BKPF~AWTYP,&lt;BR /&gt;                 BKPF~XBLNR,&lt;BR /&gt;                 ACDOCA~DOCLN,&lt;BR /&gt;                 ACDOCA~BUZEI,&lt;BR /&gt;                 ACDOCA~DRCRK,&lt;BR /&gt;                 ACDOCA~SGTXT,&lt;BR /&gt;                 ACDOCA~RHCUR,&lt;BR /&gt;                 ACDOCA~HSL,&lt;BR /&gt;                 ACDOCA~ZUONR,&lt;BR /&gt;                 ACDOCA~MSL,&lt;BR /&gt;                 ACDOCA~UMSKZ,&lt;BR /&gt;                 ACDOCA~REBZG,&lt;BR /&gt;                 ACDOCA~REBZJ,&lt;BR /&gt;                 BSEG~NETDT,&lt;BR /&gt;                 BSEG~AUGDT,&lt;BR /&gt;                 BSEG~HKONT,&lt;BR /&gt;                 BSEG~ZLSCH,  "Payment method&lt;BR /&gt;                 BSEG~ZLSPR,  "Pmnt block&lt;BR /&gt;                 BSEG~KUNNR,&lt;BR /&gt;                 VBPA~PARVW,&lt;BR /&gt;                 VBPA~KUNNR AS VBPA_KUNNR&lt;BR /&gt;            FROM BKPF INNER JOIN ACDOCA ON ACDOCA~BELNR   EQ BKPF~BELNR&lt;BR /&gt;                                       AND ACDOCA~RBUKRS  EQ BKPF~BUKRS&lt;BR /&gt;                                       AND ACDOCA~RYEAR   EQ BKPF~GJAHR&lt;BR /&gt;                      INNER JOIN BSEG ON ACDOCA~BELNR  EQ BSEG~BELNR&lt;BR /&gt;                                     AND ACDOCA~RBUKRS EQ BSEG~BUKRS&lt;BR /&gt;                                     AND ACDOCA~GJAHR  EQ BSEG~GJAHR&lt;BR /&gt;                                     AND ACDOCA~BUZEI  EQ BSEG~BUZEI&lt;BR /&gt;                      LEFT OUTER JOIN VBPA ON BKPF~AWKEY  EQ VBPA~VBELN&lt;BR /&gt;            INTO TABLE @DATA(LT_SS02_DATA)&lt;BR /&gt;            WHERE BKPF~BUKRS    IN @s_BUKRS&lt;BR /&gt;              AND BKPF~BELNR    IN @s_BELNR&lt;BR /&gt;              AND BKPF~GJAHR    IN @s_GJAHR&lt;BR /&gt;              AND ACDOCA~RLDNR  EQ '0L'&lt;BR /&gt;              AND BSEG~KUNNR    IN @s_KUNNR&lt;BR /&gt;&lt;P&gt;            .&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813846#M2025784</guid>
      <dc:creator>quyen_tran</dc:creator>
      <dc:date>2023-08-11T08:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813847#M2025785</link>
      <description>&lt;P&gt;and how did your Basis team fix it.?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813847#M2025785</guid>
      <dc:creator>quyen_tran</dc:creator>
      <dc:date>2023-08-11T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813848#M2025786</link>
      <description>&lt;P&gt;Hi Turkaj,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;but in my system( S4Hana) BSEG is Transparent table.&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2198517-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813848#M2025786</guid>
      <dc:creator>quyen_tran</dc:creator>
      <dc:date>2023-08-11T08:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813849#M2025787</link>
      <description>&lt;P&gt;There is no problem with SQL statements, you can also test them with fixed BLNER doc numbe&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2197516-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813849#M2025787</guid>
      <dc:creator>xiaosanyu</dc:creator>
      <dc:date>2023-08-11T08:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813850#M2025788</link>
      <description>&lt;P&gt;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;This short-dump sometimes happens, not all the time, and when we rerun it is Ok. so I don't know why it happened&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813850#M2025788</guid>
      <dc:creator>quyen_tran</dc:creator>
      <dc:date>2023-08-11T08:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813851#M2025789</link>
      <description>&lt;P&gt;I don't know. It's their job, not mine as a developer.&lt;/P&gt;&lt;P&gt;The point is that this is most likely &lt;STRONG&gt;not&lt;/STRONG&gt; a coding error, but an error with the database. Basis need to fix it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 09:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813851#M2025789</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-08-11T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813852#M2025790</link>
      <description>&lt;P&gt;Joining a cluster table gives you a syntax error, not a dump.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 09:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813852#M2025790</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-08-11T09:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813853#M2025791</link>
      <description>&lt;P&gt;Please post the code as text instead of image, so that one can easily answer by copying your code in order to complete it.  Then, select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you! &lt;/P&gt;&lt;P&gt;Edit is possible via menu Actions &amp;gt; Edit.&lt;/P&gt;&lt;P&gt;Also, avoid posting just screenshots. For referencing your question:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL error 2: general error: key does not exist in the map&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813853#M2025791</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-11T13:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813854#M2025792</link>
      <description>&lt;P&gt;If you want to be assisted, don't share only the first lines of the short dump, attach it in full.&lt;/P&gt;&lt;P&gt;You can also search the error message in the Web and in the SAP notes.&lt;/P&gt;&lt;P&gt;For any &lt;STRONG&gt;database error as in your case&lt;/STRONG&gt; (not ABAP), you should indicate which database you are using.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/12813854#M2025792</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-11T13:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL_SQL_INTERNAL_DB_ERROR SQL code: 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/13965637#M2038145</link>
      <description>&lt;P&gt;How did you solve the problem? thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 11:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbsql-sql-internal-db-error-sql-code-2/m-p/13965637#M2038145</guid>
      <dc:creator>Ermelinda</dc:creator>
      <dc:date>2024-12-17T11:34:53Z</dc:date>
    </item>
  </channel>
</rss>

