<?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: Mapping logic in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-logic-in-internal-table/m-p/5815873#M1314118</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;Based on the source fields and target fields and using the mapping rules, you can build the complete program using the SUBROUTINE POOLS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This subroutine pool will be a kind of program will get generated and executed at run time. It will fulfill your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search SCN or Google for creation and usage of Subroutine pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 07:06:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-23T07:06:43Z</dc:date>
    <item>
      <title>Mapping logic in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-logic-in-internal-table/m-p/5815872#M1314117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a mapping file where i have the source n target structure,field and value.Also the mapping rule in an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;Source-structure  source-field   source-field-value   rule             target-structure target-field   target_value&lt;/P&gt;&lt;P&gt;abc                          fielda          X                    MOVE	        XYZ	        field1           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have source structure with values in 2nd internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a third empty internal table with target fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now based on the above two internal tables(mapping rule in 1st internal table and values from the 2nd internal table) I have to fill the 3rd internal table.Can anyone suggest some logic how can I proceed with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 06:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-logic-in-internal-table/m-p/5815872#M1314117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T06:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping logic in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-logic-in-internal-table/m-p/5815873#M1314118</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;Based on the source fields and target fields and using the mapping rules, you can build the complete program using the SUBROUTINE POOLS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This subroutine pool will be a kind of program will get generated and executed at run time. It will fulfill your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search SCN or Google for creation and usage of Subroutine pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 07:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-logic-in-internal-table/m-p/5815873#M1314118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T07:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping logic in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-logic-in-internal-table/m-p/5815874#M1314119</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;Loop at itab1.&lt;/P&gt;&lt;P&gt; read table itab2 with key &lt;STRONG&gt;rule&lt;/STRONG&gt; = itab1-rule.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   move-corresponding itab1 to itab3.&lt;/P&gt;&lt;P&gt;   move-corresponding itab2 to itab3.&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;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 08:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mapping-logic-in-internal-table/m-p/5815874#M1314119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T08:55:37Z</dc:date>
    </item>
  </channel>
</rss>

