<?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: display table entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872321#M673940</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;After you READ ITAB and find an entry, you have to delete the entry from MTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ltab WITH KEY partner = mtab-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt; delete mtab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another way you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define a RANGE for itab-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: r_partner FOR itab-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_partner-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_partner-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; r_partner-low = itab-partner.&lt;/P&gt;&lt;P&gt; append r_partner.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete mtab where partner in r_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now mtab will have the entries which are not there in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 21:02:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T21:02:12Z</dc:date>
    <item>
      <title>display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872310#M673929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The two internal tables mtab and ltab contain different number of entries for partner (mtab has more the ltab) in the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT but000&lt;SUB&gt;partner but020&lt;/SUB&gt;addrnumber " adr6~smtp_addr&lt;/P&gt;&lt;P&gt;INTO TABLE ltab&lt;/P&gt;&lt;P&gt;FROM ( ( but000 INNER JOIN but020&lt;/P&gt;&lt;P&gt;ON but000&lt;SUB&gt;partner = but020&lt;/SUB&gt;partner )&lt;/P&gt;&lt;P&gt;INNER JOIN adr6&lt;/P&gt;&lt;P&gt;ON but020&lt;SUB&gt;addrnumber = adr6&lt;/SUB&gt;addrnumber ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner addrnumber&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE mtab&lt;/P&gt;&lt;P&gt;FROM but020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I display outstanding fields in mtab but not in ltab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ready to award.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 16:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872310#M673929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T16:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872311#M673930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a new table mtab1 and move mtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at mtab1.&lt;/P&gt;&lt;P&gt;idx = sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab with key partner = mtab1-partner.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  delete mtab1 index idx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then ur mtab1 will have the entries only in mtab and not in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 16:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872311#M673930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T16:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872312#M673931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way to do this would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort table ITAB , MTAB with the respective key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT MTAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ ITAB with key fieldname = mtab-fieldname binary search&lt;/P&gt;&lt;P&gt;   if sy-subrc &amp;lt;&amp;gt; '0'. &lt;/P&gt;&lt;P&gt;    " This implies that this line is found in mtab but not in itab    &lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above should solve the problem, however the algorithm can be further improvised using index based read on the table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if I understood you well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 16:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872312#M673931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T16:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872313#M673932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Let me be more specific. The program that enters information into the database table ADR6 is like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When someone enters e-mail address for a business partner, the partner then APPEARS in the table ADR6. I want to display empty fields for e-mail in BUT000 thru BUT020 by Business partner so, this means those that appear in BUT000 without e-mail addresses DO NOT appear in ADR6. These are the ones I want to display by partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying I should create another internal table which stores these?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 17:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872313#M673932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872314#M673933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Gerson. The only thing to keep in mind - for BINARY SEARCH make sure that the table has been sorted by that field first, otherwise BINARY SEARCH won't work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the expected data, HASHED table type might be actually more efficient than BINARY SEARCH, but otherwise BINARY SEARCH is better than plain READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some ABAP examples using index based read are actually available in ABAP Editor: menu Environment -&amp;gt; Examples -&amp;gt; Performance Examples. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 17:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872314#M673933</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-10-03T17:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872315#M673934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where am I going wrong? Here is what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF email,&lt;/P&gt;&lt;P&gt;         partner TYPE bu_partner,&lt;/P&gt;&lt;P&gt;         addrnumber TYPE ad_addrnum,&lt;/P&gt;&lt;P&gt;         smtp_addr TYPE adr6-smtp_addr,&lt;/P&gt;&lt;P&gt;      END OF email,&lt;/P&gt;&lt;P&gt;ltab LIKE STANDARD TABLE OF email WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF comp,&lt;/P&gt;&lt;P&gt;        partner TYPE bu_partner,&lt;/P&gt;&lt;P&gt;        addrnumber TYPE ad_addrnum,&lt;/P&gt;&lt;P&gt;      END OF comp,&lt;/P&gt;&lt;P&gt;mtab LIKE STANDARD TABLE OF comp WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT but000&lt;SUB&gt;partner but020&lt;/SUB&gt;addrnumber " adr6~smtp_addr&lt;/P&gt;&lt;P&gt;INTO TABLE ltab&lt;/P&gt;&lt;P&gt;FROM ( ( but000 INNER JOIN but020&lt;/P&gt;&lt;P&gt;ON but000&lt;SUB&gt;partner = but020&lt;/SUB&gt;partner )&lt;/P&gt;&lt;P&gt;INNER JOIN adr6&lt;/P&gt;&lt;P&gt;ON but020&lt;SUB&gt;addrnumber = adr6&lt;/SUB&gt;addrnumber ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner addrnumber&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE mtab&lt;/P&gt;&lt;P&gt;FROM but020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ltab BY partner.&lt;/P&gt;&lt;P&gt;SORT mtab BY partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-dbcnt = 0.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'There are no empty entries in the field: E-mail'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'The Field: E-mail, has',sy-dbcnt,'empty fields for the following Business Partner entries:'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  LOOP AT mtab INTO comp.&lt;/P&gt;&lt;P&gt;    READ TABLE ltab WITH KEY partner = mtab-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; '0'. " This implies that this line is found in mtab but not in ltab&lt;/P&gt;&lt;P&gt;      WRITE:/ comp-partner, comp-addrnumber.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it my program flow or what?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 08:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872315#M673934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T08:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872316#M673935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table itab must not be sorted, it is anyway in the loop, the table mtab should bve a hashed table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering whether you ca select all thse data, how large are your tables, will you need the tables later?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you not then you should select only what you really need!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner addrnumber &lt;/P&gt;&lt;P&gt;INTO TABLE ltab&lt;/P&gt;&lt;P&gt;FROM but020&lt;/P&gt;&lt;P&gt;WHERE partner NE ( SELECT partner&lt;/P&gt;&lt;P&gt;                          FROM but000 ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 08:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872316#M673935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T08:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872317#M673936</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;I have used these tables before the thing is in ITAB query, you are making an innerjoin with adr6 table which may not be filled at all times so just do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT but000&lt;SUB&gt;partner but020&lt;/SUB&gt;addrnumber  adr6~smtp_addr&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;INTO TABLE ltab&lt;/P&gt;&lt;P&gt;FROM ( ( but000 INNER JOIN but020&lt;/P&gt;&lt;P&gt;ON but000&lt;SUB&gt;partner = but020&lt;/SUB&gt;partner )&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEFT OUTER JOIN adr6&amp;lt;/b&amp;gt; ON but020&lt;SUB&gt;addrnumber = adr6&lt;/SUB&gt;addrnumber ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now where the ITAB field for &amp;lt;b&amp;gt;adr6~smtp_addr&amp;lt;/b&amp;gt; is empty, means it doesnot exist in adr6 and is present in BUT020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS IF HELPFULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khusro Habib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 08:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872317#M673936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872318#M673937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Gerson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the syntax, but am a bit new to ABAP. So, does this mean I have to put what is not found in itab into another internal table then display the contents of that table? (please provide sample if not too busy incl declarations:) )E.g. After sort by Business Partner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTAB                               ITAB&lt;/P&gt;&lt;P&gt;1234                                 1234&lt;/P&gt;&lt;P&gt;1235                                 1235&lt;/P&gt;&lt;P&gt;1236                                 1236 &lt;/P&gt;&lt;P&gt;1237                                 1237&lt;/P&gt;&lt;P&gt;1238                                &lt;/P&gt;&lt;P&gt;1239&lt;/P&gt;&lt;P&gt;1240&lt;/P&gt;&lt;P&gt;1241&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the internal table should contain entries 1238, 1239, 1240, 1241. which are then displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872318#M673937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872319#M673938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you had done with the loop in your code is correct except for one thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code&lt;/P&gt;&lt;P&gt;LOOP AT mtab INTO comp.&lt;/P&gt;&lt;P&gt;   READ TABLE ltab WITH KEY partner = mtab-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;   IF sy-subrc &amp;lt;&amp;gt; '0'. " This implies that this line is found in mtab but not in ltab&lt;/P&gt;&lt;P&gt;     WRITE:/ comp-partner, comp-addrnumber.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way it should be &lt;/P&gt;&lt;P&gt;LOOP AT mtab INTO comp.&lt;/P&gt;&lt;P&gt;   READ TABLE ltab WITH KEY partner = &amp;lt;b&amp;gt;comp-partner&amp;lt;/b&amp;gt; BINARY SEARCH.&lt;/P&gt;&lt;P&gt;   IF sy-subrc &amp;lt;&amp;gt; '0'. " This implies that this line is found in mtab but not in ltab&lt;/P&gt;&lt;P&gt;     WRITE:/ comp-partner, comp-addrnumber.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is only in the workarea you have to use in the read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if your requirement is just displaying a list of these entries then I do not see the need for another internal table. The code you have written has achieved this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if the requirement is to have these set of entries processed ( i.e. found in mtab and not in itab) maybe with some other logic, then i see a justification for a new internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if this worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 11:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872319#M673938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T11:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872320#M673939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Gerson. It's working just fine but the code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ltab INTO email.&lt;/P&gt;&lt;P&gt;  READ TABLE ltab WITH KEY partner = mtab-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;  WRITE:/ email-partner, email-addrnumber.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; '0'. " This implies that this line is found in mtab but not in ltab&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is actually doing the opposite of what I want. It's displaying the entries in ltab that are in  mtab and leaving out those that are in ltab but are not in mtab, which are the ones I want to display. Like for the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTAB ITAB&lt;/P&gt;&lt;P&gt;1234 1234&lt;/P&gt;&lt;P&gt;1235 1235&lt;/P&gt;&lt;P&gt;1236 1236 &lt;/P&gt;&lt;P&gt;1237 1237&lt;/P&gt;&lt;P&gt;1238 &lt;/P&gt;&lt;P&gt;1239&lt;/P&gt;&lt;P&gt;1240&lt;/P&gt;&lt;P&gt;1241&lt;/P&gt;&lt;P&gt; It displays 1234, 1235, 1236, 1237, instead of 1238, 1239, 1240, 1241.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 15:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872320#M673939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T15:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872321#M673940</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;After you READ ITAB and find an entry, you have to delete the entry from MTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ltab WITH KEY partner = mtab-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt; delete mtab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another way you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define a RANGE for itab-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: r_partner FOR itab-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_partner-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_partner-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; r_partner-low = itab-partner.&lt;/P&gt;&lt;P&gt; append r_partner.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete mtab where partner in r_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now mtab will have the entries which are not there in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 21:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872321#M673940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872322#M673941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sri, Gerson and Jelena. You have been a great help. This has been a good learning experience. However, I want to display the number of entries in mtab AFTER deletion of entries in ltab. The following piece of code displays the number of entries (i.e. the total) in mtab i.e. 8 in the prev example rather than 4 entries: It seems it's still looking at the db count from mtab in the second select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-dbcnt = 0.&lt;/P&gt;&lt;P&gt; ULINE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'There are no empty entries in the field: E-mail'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'The Field: E-mail, has',sy-dbcnt,'empty fields for the following Business Partner entries:'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  LOOP AT mtab INTO email.&lt;/P&gt;&lt;P&gt;      WRITE:/ email-partner, email-addrnumber.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 08:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872322#M673941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T08:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: display table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872323#M673942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx all. You have been a great help. I hope I will be good enough to assist others soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 14:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-table-entries/m-p/2872323#M673942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T14:31:01Z</dc:date>
    </item>
  </channel>
</rss>

