<?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: Abap Table Expression in SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-table-expression-in-sql/m-p/12330851#M1991567</link>
    <description>&lt;P&gt;Thank you Sandra! Yes there it is in plain sight! And also, when I write my own test example correctly, even I get it to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, the ABAP Documentation DOES also link to them from the link i provided.&lt;/P&gt;&lt;P&gt;Former Member I'm really sorry I gave you an incorrect answer. It was to the best of my knowledge, but I was performing below my own personal standards here. I recommend you change the correct answer to this one from Sandra, and I can remove mine to not confuse others finding your question later on. &lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 16:13:53 GMT</pubDate>
    <dc:creator>joltdx</dc:creator>
    <dc:date>2021-03-24T16:13:53Z</dc:date>
    <item>
      <title>Abap Table Expression in SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-table-expression-in-sql/m-p/12330849#M1991565</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;
  &lt;P&gt;I would love to do something like the following, but i get a syntax error:&lt;/P&gt;
  &lt;P&gt; SELECT * FROM MARA&lt;BR /&gt; WHERE MATNR EQ @( GT[ 1 ]-MATNR ).&lt;/P&gt;
  &lt;P&gt;Is something like this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:10:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-table-expression-in-sql/m-p/12330849#M1991565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-03-23T12:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Table Expression in SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-table-expression-in-sql/m-p/12330850#M1991566</link>
      <description>&lt;P&gt;I could make it work successfully in my 7.52 version:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA gt TYPE TABLE OF scarr.
gt = VALUE #( ( carrid = 'LH' ) ).
SELECT * FROM scarr
    WHERE carrid = @( gt[ 1 ]-carrid )
    INTO TABLE @DATA(scarr_table).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess it does a syntax error in your system because you're using an old ABAP version where so-called Host Expressions (@( ... )) are not permitted yet (available since 7.50).&lt;/P&gt;&lt;P&gt;NB: you may also use CONV, VALUE, etc. in host expressions - The right documentation link for host expressions is this one: &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenopen_sql_host_expressions.htm"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenopen_sql_host_expressions.htm&lt;/A&gt; (&lt;SPAN class="mention-scrubbed"&gt;jorgen_lindqvist41&lt;/SPAN&gt; fyi)&lt;/P&gt;&lt;P&gt;NB: Kevin, thanks for reopening the question to let me add this answer.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 15:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-table-expression-in-sql/m-p/12330850#M1991566</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-24T15:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Abap Table Expression in SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-table-expression-in-sql/m-p/12330851#M1991567</link>
      <description>&lt;P&gt;Thank you Sandra! Yes there it is in plain sight! And also, when I write my own test example correctly, even I get it to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, the ABAP Documentation DOES also link to them from the link i provided.&lt;/P&gt;&lt;P&gt;Former Member I'm really sorry I gave you an incorrect answer. It was to the best of my knowledge, but I was performing below my own personal standards here. I recommend you change the correct answer to this one from Sandra, and I can remove mine to not confuse others finding your question later on. &lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 16:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-table-expression-in-sql/m-p/12330851#M1991567</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-03-24T16:13:53Z</dc:date>
    </item>
  </channel>
</rss>

