<?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: select no common fields. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735655#M319916</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;chk this ample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table : emp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;empno name&lt;/P&gt;&lt;P&gt;a sasi&lt;/P&gt;&lt;P&gt;b xxx &lt;/P&gt;&lt;P&gt;c yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table : sal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;empno salary&lt;/P&gt;&lt;P&gt;a 1000&lt;/P&gt;&lt;P&gt;b 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;select e&lt;SUB&gt;empno e&lt;/SUB&gt;name &lt;/P&gt;&lt;P&gt;s~sal &lt;/P&gt;&lt;P&gt;into table int_table&lt;/P&gt;&lt;P&gt;from emp as e&lt;/P&gt;&lt;P&gt;inner join sal&lt;/P&gt;&lt;P&gt;on &lt;/P&gt;&lt;P&gt;e&lt;SUB&gt;empno = s&lt;/SUB&gt;empno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you made inner join between table a and b by emp no &lt;/P&gt;&lt;P&gt;the selection retrives only if the condition satisfy the output will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sasi 1000&lt;/P&gt;&lt;P&gt;b xxx 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer join&lt;/P&gt;&lt;P&gt;*************************&lt;/P&gt;&lt;P&gt;select e&lt;SUB&gt;empno e&lt;/SUB&gt;name &lt;/P&gt;&lt;P&gt;s~sal into table  int_table&lt;/P&gt;&lt;P&gt;from emp as e&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN sal&lt;/P&gt;&lt;P&gt;on &lt;/P&gt;&lt;P&gt;e&lt;SUB&gt;empno = s&lt;/SUB&gt;empno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you made outer join (left /right ) the left table kept as it is the &lt;/P&gt;&lt;P&gt;if the condition satisfy the right table entries will fetch else leave it blank&lt;/P&gt;&lt;P&gt;the output will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sasi a 1000&lt;/P&gt;&lt;P&gt;b xxx b 2000&lt;/P&gt;&lt;P&gt;c yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 12:13:38 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-12-01T12:13:38Z</dc:date>
    <item>
      <title>select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735654#M319915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, my problem is that I don't know how retrieve the not common fields between two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABA&lt;/P&gt;&lt;P&gt;field1 field2 field3 field4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABB&lt;/P&gt;&lt;P&gt;field1 field2 field4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want retrieve the field "field3", how can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any adding with LEFT OUTER JOIN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735654#M319915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T12:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735655#M319916</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;chk this ample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table : emp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;empno name&lt;/P&gt;&lt;P&gt;a sasi&lt;/P&gt;&lt;P&gt;b xxx &lt;/P&gt;&lt;P&gt;c yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table : sal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;empno salary&lt;/P&gt;&lt;P&gt;a 1000&lt;/P&gt;&lt;P&gt;b 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;select e&lt;SUB&gt;empno e&lt;/SUB&gt;name &lt;/P&gt;&lt;P&gt;s~sal &lt;/P&gt;&lt;P&gt;into table int_table&lt;/P&gt;&lt;P&gt;from emp as e&lt;/P&gt;&lt;P&gt;inner join sal&lt;/P&gt;&lt;P&gt;on &lt;/P&gt;&lt;P&gt;e&lt;SUB&gt;empno = s&lt;/SUB&gt;empno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you made inner join between table a and b by emp no &lt;/P&gt;&lt;P&gt;the selection retrives only if the condition satisfy the output will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sasi 1000&lt;/P&gt;&lt;P&gt;b xxx 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer join&lt;/P&gt;&lt;P&gt;*************************&lt;/P&gt;&lt;P&gt;select e&lt;SUB&gt;empno e&lt;/SUB&gt;name &lt;/P&gt;&lt;P&gt;s~sal into table  int_table&lt;/P&gt;&lt;P&gt;from emp as e&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN sal&lt;/P&gt;&lt;P&gt;on &lt;/P&gt;&lt;P&gt;e&lt;SUB&gt;empno = s&lt;/SUB&gt;empno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you made outer join (left /right ) the left table kept as it is the &lt;/P&gt;&lt;P&gt;if the condition satisfy the right table entries will fetch else leave it blank&lt;/P&gt;&lt;P&gt;the output will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sasi a 1000&lt;/P&gt;&lt;P&gt;b xxx b 2000&lt;/P&gt;&lt;P&gt;c yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735655#M319916</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-01T12:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735656#M319917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select a~field3 into itab from taba inner join tabb where taba-field = tabb-field and (other key options).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735656#M319917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T12:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735657#M319918</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;U may create another ITAB for the uncommon fields and  try the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at TABA into LW_TABA.&lt;/P&gt;&lt;P&gt;   read table TABB with key LW_TABA -field1 = field1&lt;/P&gt;&lt;P&gt;                                         LW_TABA -field2 = field2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0. "If not found then move &lt;/P&gt;&lt;P&gt;      move TABA-field3 to ITABC-field3.&lt;/P&gt;&lt;P&gt;      append ITABC.&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;If helpful pl reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735657#M319918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T12:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735658#M319919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;table : emp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;empno name&lt;/P&gt;&lt;P&gt;a    sasi&lt;/P&gt;&lt;P&gt;b    xxx &lt;/P&gt;&lt;P&gt;c    yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table : sal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;empno salary&lt;/P&gt;&lt;P&gt;a    1000&lt;/P&gt;&lt;P&gt;b    2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want this output, I only want de different register. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sasi a 1000&lt;/P&gt;&lt;P&gt;b xxx b 2000&lt;/P&gt;&lt;P&gt;c yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want mean this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735658#M319919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T12:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735659#M319920</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;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;1. pick all data from taba to itab1&lt;/P&gt;&lt;P&gt;2. pick all data from tabb to itab2.&lt;/P&gt;&lt;P&gt;3. loop at itab1. &lt;/P&gt;&lt;P&gt;   read table itab2 with ur key.&lt;/P&gt;&lt;P&gt;   if sy-subrc &amp;lt;&amp;gt; 0. "not found&lt;/P&gt;&lt;P&gt;   append to a final itab&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. in final itab u will get required data&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735659#M319920</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-01T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735660#M319921</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;1. pick all data from taba to itab1&lt;/P&gt;&lt;P&gt;2. pick all data from tabb to itab2.&lt;/P&gt;&lt;P&gt;3. loop at itab1. &lt;/P&gt;&lt;P&gt;read table itab2 with ur key.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. "not found&lt;/P&gt;&lt;P&gt;append to a final itab&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. in final itab u will get required data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735660#M319921</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-01T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: select no common fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735661#M319922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-no-common-fields/m-p/1735661#M319922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T12:48:26Z</dc:date>
    </item>
  </channel>
</rss>

