<?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: Test if line exist in table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166122#M753149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Volker,&lt;/P&gt;&lt;P&gt;             You can use Select single form database table with the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : Select single form &amp;lt;DATABASETABLE&amp;gt; into &amp;lt;WORKAREA&amp;gt;&lt;/P&gt;&lt;P&gt;                  where &amp;lt;CONDITION&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2007 14:56:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-14T14:56:56Z</dc:date>
    <item>
      <title>Test if line exist in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166121#M753148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i test if a line exists in a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 14:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166121#M753148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T14:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Test if line exist in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166122#M753149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Volker,&lt;/P&gt;&lt;P&gt;             You can use Select single form database table with the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : Select single form &amp;lt;DATABASETABLE&amp;gt; into &amp;lt;WORKAREA&amp;gt;&lt;/P&gt;&lt;P&gt;                  where &amp;lt;CONDITION&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 14:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166122#M753149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Test if line exist in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166123#M753150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Volker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't need the line, only the information if it is there, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT COUNT( * ) FROM ... WHERE ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;==&amp;gt; exists&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;==&amp;gt; does not exist&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value in sy-dbcnt will show how many records were found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 15:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166123#M753150</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-12-14T15:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Test if line exist in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166124#M753151</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;if you know all the primary field values of that table then go for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single from table XXXX where "Conditions".&lt;/P&gt;&lt;P&gt;else if you know some fields (not all primary keys) go for&lt;/P&gt;&lt;P&gt;   select upto 1 rows from table XXXX where "Conditions".&lt;/P&gt;&lt;P&gt;if the select statement selects the record, that is the confirmation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreeram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 15:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166124#M753151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T15:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Test if line exist in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166125#M753152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Database table or internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 15:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-if-line-exist-in-table/m-p/3166125#M753152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T15:26:31Z</dc:date>
    </item>
  </channel>
</rss>

