<?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 How to write code(logic) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-logic/m-p/2601954#M596161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one internal table with data&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;b 1&lt;/P&gt;&lt;P&gt;c 1 &lt;/P&gt;&lt;P&gt;d 2&lt;/P&gt;&lt;P&gt;e 2&lt;/P&gt;&lt;P&gt;and another internal table with data &lt;/P&gt;&lt;P&gt;A 1&lt;/P&gt;&lt;P&gt;B 1&lt;/P&gt;&lt;P&gt;C 2&lt;/P&gt;&lt;P&gt;D 2&lt;/P&gt;&lt;P&gt;E 2&lt;/P&gt;&lt;P&gt;Now my requirement is i want to combine these 2 tables to get the result like &lt;/P&gt;&lt;P&gt;a 1 A&lt;/P&gt;&lt;P&gt;b 1 B&lt;/P&gt;&lt;P&gt;c 1 -&lt;/P&gt;&lt;P&gt;d 2 C&lt;/P&gt;&lt;P&gt;e 2 D&lt;/P&gt;&lt;P&gt;- 2 E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me how to write the code to get this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2007 07:13:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-01T07:13:49Z</dc:date>
    <item>
      <title>How to write code(logic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-logic/m-p/2601954#M596161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one internal table with data&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;b 1&lt;/P&gt;&lt;P&gt;c 1 &lt;/P&gt;&lt;P&gt;d 2&lt;/P&gt;&lt;P&gt;e 2&lt;/P&gt;&lt;P&gt;and another internal table with data &lt;/P&gt;&lt;P&gt;A 1&lt;/P&gt;&lt;P&gt;B 1&lt;/P&gt;&lt;P&gt;C 2&lt;/P&gt;&lt;P&gt;D 2&lt;/P&gt;&lt;P&gt;E 2&lt;/P&gt;&lt;P&gt;Now my requirement is i want to combine these 2 tables to get the result like &lt;/P&gt;&lt;P&gt;a 1 A&lt;/P&gt;&lt;P&gt;b 1 B&lt;/P&gt;&lt;P&gt;c 1 -&lt;/P&gt;&lt;P&gt;d 2 C&lt;/P&gt;&lt;P&gt;e 2 D&lt;/P&gt;&lt;P&gt;- 2 E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me how to write the code to get this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 07:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-logic/m-p/2601954#M596161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T07:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code(logic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-logic/m-p/2601955#M596162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What have you come up with so far?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 10:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-logic/m-p/2601955#M596162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code(logic)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-logic/m-p/2601956#M596163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;           field1 type c,&lt;/P&gt;&lt;P&gt;           field2 type c,&lt;/P&gt;&lt;P&gt;         end of itab1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;           field1 type c,&lt;/P&gt;&lt;P&gt;           field2 type c,&lt;/P&gt;&lt;P&gt;         end of itab2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab3 occurs 0,&lt;/P&gt;&lt;P&gt;           field1 type c,&lt;/P&gt;&lt;P&gt;           field2 type c,&lt;/P&gt;&lt;P&gt;           field2 type c,&lt;/P&gt;&lt;P&gt;         end of itab3 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....get the values to itab1 and 2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab2 ignoring case  with key field1 = itab1-field1 field2 = itab1-field2 ignoring case .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;itab3-field3 = itab2-field1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;itab3-field1 = itab1-field1.&lt;/P&gt;&lt;P&gt;itab3-field2 = itab1-field1.&lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;cleat itab3.&lt;/P&gt;&lt;P&gt;delete itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;read table itab3 with key field3 = itab2-field1 field2 = itab2-field2 .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;itab3-field2 = itab2-fiedld2.&lt;/P&gt;&lt;P&gt;itab3-field3 = itab2-fiedld1.&lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;clear itab3.&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;Message was edited by: &lt;/P&gt;&lt;P&gt;        Arjun Puthuruthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 11:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-code-logic/m-p/2601956#M596163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T11:06:11Z</dc:date>
    </item>
  </channel>
</rss>

