<?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 What's wrong with the ABAP OPEN SQL? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-s-wrong-with-the-abap-open-sql/m-p/12795125#M2024568</link>
    <description>&lt;P&gt;Hi all ABAP expert&lt;/P&gt;
  &lt;P&gt;I have an OPEN SQL statement, but met failed. the error message is: "@" is not allowed here.&lt;/P&gt;
  &lt;P&gt;Could anyone advise look below statement? Thanks a lot.&lt;/P&gt;
  &lt;P&gt;SELECT SINGLE A~MATNR, A~MJAHR, A~CPUDT_MKPF, A~CPUTM_MKPF, A~MBLNR, A~ZEILE, A~LIFNR&lt;BR /&gt; FROM MSEG AS A&lt;BR /&gt; WHERE A~MATNR = @WB_QMNON100-MATNR&lt;BR /&gt; AND A~WERKS = @GS_WERKS&lt;BR /&gt; AND A~BWART = @GS_BWART&lt;BR /&gt; AND EXISTS&lt;BR /&gt; ( SELECT B~MATNR, B~MBLNR, B~ZEILE, B~LIFNR, MAX( B~MJAHR ), MAX( B~CPUDT_MKPF ) , MAX( B~CPUTM_MKPF )&lt;BR /&gt; FROM MSEG AS B&lt;BR /&gt; WHERE B~MATNR = A~MATNR&lt;BR /&gt; AND B~MBLNR = A~MBLNR AND B~ZEILE = A~ZEILE&lt;BR /&gt; AND B~LIFNR = A~LIFNR&lt;BR /&gt; AND B~MJAHR = A~MJAHR&lt;BR /&gt; AND B~CPUDT_MKPF = A~CPUDT_MKPF&lt;BR /&gt; AND B~CPUTM_MKPF = A~CPUTM_MKPF&lt;BR /&gt; GROUP BY B~MATNR, B~MBLNR, B~ZEILE, B~LIFNR )&lt;BR /&gt; INTO CORRESPONDING FIELDS OF TABLE @IT_MSEG.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 09:52:37 GMT</pubDate>
    <dc:creator>128903</dc:creator>
    <dc:date>2023-09-21T09:52:37Z</dc:date>
    <item>
      <title>What's wrong with the ABAP OPEN SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-s-wrong-with-the-abap-open-sql/m-p/12795125#M2024568</link>
      <description>&lt;P&gt;Hi all ABAP expert&lt;/P&gt;
  &lt;P&gt;I have an OPEN SQL statement, but met failed. the error message is: "@" is not allowed here.&lt;/P&gt;
  &lt;P&gt;Could anyone advise look below statement? Thanks a lot.&lt;/P&gt;
  &lt;P&gt;SELECT SINGLE A~MATNR, A~MJAHR, A~CPUDT_MKPF, A~CPUTM_MKPF, A~MBLNR, A~ZEILE, A~LIFNR&lt;BR /&gt; FROM MSEG AS A&lt;BR /&gt; WHERE A~MATNR = @WB_QMNON100-MATNR&lt;BR /&gt; AND A~WERKS = @GS_WERKS&lt;BR /&gt; AND A~BWART = @GS_BWART&lt;BR /&gt; AND EXISTS&lt;BR /&gt; ( SELECT B~MATNR, B~MBLNR, B~ZEILE, B~LIFNR, MAX( B~MJAHR ), MAX( B~CPUDT_MKPF ) , MAX( B~CPUTM_MKPF )&lt;BR /&gt; FROM MSEG AS B&lt;BR /&gt; WHERE B~MATNR = A~MATNR&lt;BR /&gt; AND B~MBLNR = A~MBLNR AND B~ZEILE = A~ZEILE&lt;BR /&gt; AND B~LIFNR = A~LIFNR&lt;BR /&gt; AND B~MJAHR = A~MJAHR&lt;BR /&gt; AND B~CPUDT_MKPF = A~CPUDT_MKPF&lt;BR /&gt; AND B~CPUTM_MKPF = A~CPUTM_MKPF&lt;BR /&gt; GROUP BY B~MATNR, B~MBLNR, B~ZEILE, B~LIFNR )&lt;BR /&gt; INTO CORRESPONDING FIELDS OF TABLE @IT_MSEG.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 09:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-s-wrong-with-the-abap-open-sql/m-p/12795125#M2024568</guid>
      <dc:creator>128903</dc:creator>
      <dc:date>2023-09-21T09:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with the ABAP OPEN SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-s-wrong-with-the-abap-open-sql/m-p/12795126#M2024569</link>
      <description>&lt;P&gt;Sorry, I got it. &lt;/P&gt;&lt;P&gt;It did not need "SINGLE" , Thanks. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 09:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-s-wrong-with-the-abap-open-sql/m-p/12795126#M2024569</guid>
      <dc:creator>128903</dc:creator>
      <dc:date>2023-09-21T09:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with the ABAP OPEN SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-s-wrong-with-the-abap-open-sql/m-p/12795127#M2024570</link>
      <description>&lt;P&gt;Sorry, I got it. &lt;/P&gt;&lt;P&gt;It did not need "SINGLE" , Thanks. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 09:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-s-wrong-with-the-abap-open-sql/m-p/12795127#M2024570</guid>
      <dc:creator>128903</dc:creator>
      <dc:date>2023-09-21T09:58:25Z</dc:date>
    </item>
  </channel>
</rss>

