<?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: SQL - Select a constant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select-a-constant/m-p/5802159#M1311886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take other table to save the data instead of same table. In which you get only records exists in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT WERKS MATKL 
INTO CORRESPONDING FIELDS OF TABLE T_LISTA_TEMP "--&amp;gt; Take new internal table
FROM yswerks_matkl
FOR ALL ENTRIES IN T_LISTA
WHERE WERKS = T_LISTA-WERKS
AND MATKL = T_LISTA-WERKS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2009 17:47:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-29T17:47:18Z</dc:date>
    <item>
      <title>SQL - Select a constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select-a-constant/m-p/5802158#M1311885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a function that receives a table as a parameter.&lt;/P&gt;&lt;P&gt;I need to check if each enter in this table exists in table in database. If it exists, I need to mark "X" in the last column in this table. Liek this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT WERKS MATKL 'X'&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE T_LISTA&lt;/P&gt;&lt;P&gt;    FROM yswerks_matkl&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN T_LISTA&lt;/P&gt;&lt;P&gt;    WHERE WERKS = T_LISTA-WERKS&lt;/P&gt;&lt;P&gt;    AND MATKL = T_LISTA-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 17:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select-a-constant/m-p/5802158#M1311885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T17:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL - Select a constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select-a-constant/m-p/5802159#M1311886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take other table to save the data instead of same table. In which you get only records exists in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT WERKS MATKL 
INTO CORRESPONDING FIELDS OF TABLE T_LISTA_TEMP "--&amp;gt; Take new internal table
FROM yswerks_matkl
FOR ALL ENTRIES IN T_LISTA
WHERE WERKS = T_LISTA-WERKS
AND MATKL = T_LISTA-WERKS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 17:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select-a-constant/m-p/5802159#M1311886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T17:47:18Z</dc:date>
    </item>
  </channel>
</rss>

