<?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 replicating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replicating/m-p/5444738#M1248415</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;is there a way to do following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;relating to a header_id in a table I have to replicate all the records which have the same id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose: There are four different tables. You have records related to the this headerid.&lt;/P&gt;&lt;P&gt;And now the requirement is find out all the records in those tables which belong &lt;/P&gt;&lt;P&gt;to the hederid. And finally replicate them by pasisng a new id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;LVORM = any value&lt;/P&gt;&lt;P&gt;STOFF = any value&lt;/P&gt;&lt;P&gt;SPART = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;BLANZ = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 3&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;ERSDA = any value&lt;/P&gt;&lt;P&gt;ERNAM = any value&lt;/P&gt;&lt;P&gt;LAEDA = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 4&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;GEWEI = any value&lt;/P&gt;&lt;P&gt;VOLUM = any value&lt;/P&gt;&lt;P&gt;VOLEH = any value&lt;/P&gt;&lt;P&gt;BEHVO = any value&lt;/P&gt;&lt;P&gt;RAUBE = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas erdem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 20:12:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T20:12:56Z</dc:date>
    <item>
      <title>replicating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replicating/m-p/5444738#M1248415</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;is there a way to do following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;relating to a header_id in a table I have to replicate all the records which have the same id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose: There are four different tables. You have records related to the this headerid.&lt;/P&gt;&lt;P&gt;And now the requirement is find out all the records in those tables which belong &lt;/P&gt;&lt;P&gt;to the hederid. And finally replicate them by pasisng a new id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;LVORM = any value&lt;/P&gt;&lt;P&gt;STOFF = any value&lt;/P&gt;&lt;P&gt;SPART = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;BLANZ = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 3&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;ERSDA = any value&lt;/P&gt;&lt;P&gt;ERNAM = any value&lt;/P&gt;&lt;P&gt;LAEDA = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 4&lt;/P&gt;&lt;P&gt;HeaderID = 12345&lt;/P&gt;&lt;P&gt;GEWEI = any value&lt;/P&gt;&lt;P&gt;VOLUM = any value&lt;/P&gt;&lt;P&gt;VOLEH = any value&lt;/P&gt;&lt;P&gt;BEHVO = any value&lt;/P&gt;&lt;P&gt;RAUBE = any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas erdem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 20:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replicating/m-p/5444738#M1248415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T20:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: replicating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replicating/m-p/5444739#M1248416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop at table1.

read table table2 into wa_table2 with key headerid = table1-headerid
if sy-subrc eq 0.

can do your processing for wa_table2 here

read table table3 into wa_table3 with key headerid = table1-headerid
if sy-subrc eq 0.

can do your processing for wa_table3 here

&amp;gt;&amp;gt;keep going and replace the values..


endif.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 20:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replicating/m-p/5444739#M1248416</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-03-25T20:15:48Z</dc:date>
    </item>
  </channel>
</rss>

