<?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 VALUE Operator in SQL Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453313#M13922</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following SQL statement and was wondering if it is possible to rewrite it using the VALUE operator to avoid the DATA statement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(lv_initial) = VALUE /scwm/guid_hu( ).
SELECT * FROM /scwm/tu_dlv 
      WHERE lgnum     = @lv_lgnum&lt;BR /&gt;        AND top_hu    = @lv_initial
      INTO TABLE @DATA(lt).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I.e., I would like to have something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM /scwm/tu_dlv
      WHERE lgnum     = @lv_lgnum
        AND top_hu    = @VALUE #( )
      INTO TABLE @DATA(lt).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is this possible? Any suggestions?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 12:33:50 GMT</pubDate>
    <dc:creator>former_member1305611</dc:creator>
    <dc:date>2017-06-22T12:33:50Z</dc:date>
    <item>
      <title>VALUE Operator in SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453313#M13922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following SQL statement and was wondering if it is possible to rewrite it using the VALUE operator to avoid the DATA statement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(lv_initial) = VALUE /scwm/guid_hu( ).
SELECT * FROM /scwm/tu_dlv 
      WHERE lgnum     = @lv_lgnum&lt;BR /&gt;        AND top_hu    = @lv_initial
      INTO TABLE @DATA(lt).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I.e., I would like to have something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM /scwm/tu_dlv
      WHERE lgnum     = @lv_lgnum
        AND top_hu    = @VALUE #( )
      INTO TABLE @DATA(lt).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is this possible? Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 12:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453313#M13922</guid>
      <dc:creator>former_member1305611</dc:creator>
      <dc:date>2017-06-22T12:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: VALUE Operator in SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453314#M13923</link>
      <description>&lt;P&gt;On 7.50 this should work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM /scwm/tu_dlv
  WHERE lgnum  = @lv_lgnum
    AND top_hu = @( VALUE #( ) )
  INTO TABLE @DATA(lt).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453314#M13923</guid>
      <dc:creator>fabianlupa</dc:creator>
      <dc:date>2017-06-22T13:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: VALUE Operator in SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453315#M13924</link>
      <description>&lt;P&gt;Correct ...&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenopen_sql_host_expressions.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenopen_sql_host_expressions.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 19:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453315#M13924</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-06-22T19:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: VALUE Operator in SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453316#M13925</link>
      <description>&lt;P&gt;Thank you both! I was not aware of this. Unfortunately, I am working on release 7.40 at the moment, but at least I can stop searching now.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 18:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-operator-in-sql-statement/m-p/453316#M13925</guid>
      <dc:creator>former_member1305611</dc:creator>
      <dc:date>2017-06-30T18:33:14Z</dc:date>
    </item>
  </channel>
</rss>

