<?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: Looping Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822389#M351308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as i under sstood the link between all the inerenal tables is MATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so loop the table which contailns more number of materials..as per my knowledge &amp;lt;b&amp;gt;MKOL contans more entries than MARD, EORD. because MKOL contains more key valeues than MARD,BORD.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;so loop the table MKOL &lt;/P&gt;&lt;P&gt;then read the records from MARD and BORD.&lt;/P&gt;&lt;P&gt;populate all the value form MARD and BORD, MKOL to the FINAL workarea&lt;/P&gt;&lt;P&gt;then APPEND .&lt;/P&gt;&lt;P&gt;Please Close this thread.. when u r problem is solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naresh Reddy K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2007 15:27:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-15T15:27:49Z</dc:date>
    <item>
      <title>Looping Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822387#M351306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having internal tables as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_mkol OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slabs LIKE mkol-slabs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr LIKE mkol-matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sinsm LIKE mkol-sinsm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF it_mkol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_mard OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;labst LIKE mard-labst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr LIKE mard-matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lgort LIKE mard-lgort,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insme LIKE mard-insme,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF it_mard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_eord OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lifnr LIKE eord-lifnr,&lt;/P&gt;&lt;P&gt;matnr like eord-matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF it_eord.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_plpo OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vgw03 LIKE plpo-vgw03,&lt;/P&gt;&lt;P&gt;matnr like plpo-matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF it_plpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_stb OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include structure STPOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: sinsm LIKE mkol-sinsm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vgw03 LIKE plpo-vgw03,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;labst LIKE mard-labst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr LIKE mard-matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insme LIKE mard-insme,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slabs LIKE mkol-slabs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vname(20),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;totprc TYPE i,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qistock TYPE i,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF it_stb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to append the rows from the table it_mkol,it_mard,it_eord,it_plpo into it_stb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through which table I will have to loop, so that the rows will be appended correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 15:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822387#M351306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822388#M351307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at it_mard.&lt;/P&gt;&lt;P&gt;  read table it_mkol with key matnr = it_mard-matnr.&lt;/P&gt;&lt;P&gt;  read table it_eord with key matnr = it_mard-matnr.&lt;/P&gt;&lt;P&gt;  read table it_plpo with key matnr = it_mard-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;move the data to it_stb and append data&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 15:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822388#M351307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T15:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822389#M351308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as i under sstood the link between all the inerenal tables is MATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so loop the table which contailns more number of materials..as per my knowledge &amp;lt;b&amp;gt;MKOL contans more entries than MARD, EORD. because MKOL contains more key valeues than MARD,BORD.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;so loop the table MKOL &lt;/P&gt;&lt;P&gt;then read the records from MARD and BORD.&lt;/P&gt;&lt;P&gt;populate all the value form MARD and BORD, MKOL to the FINAL workarea&lt;/P&gt;&lt;P&gt;then APPEND .&lt;/P&gt;&lt;P&gt;Please Close this thread.. when u r problem is solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naresh Reddy K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 15:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822389#M351308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T15:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Looping Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822390#M351309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manik,&lt;/P&gt;&lt;P&gt;You can work with this way.&lt;/P&gt;&lt;P&gt;Step 1: Loop table it_mard &lt;/P&gt;&lt;P&gt;step 2: Inside this loop read table it_mkol  with key matnr =  it_mard-matnr.&lt;/P&gt;&lt;P&gt;step 3: Read table it_eord with key matnr = it_mard-matnr.&lt;/P&gt;&lt;P&gt;step 4: Read table it_plpo with key matnr= it_mard-mantr..&lt;/P&gt;&lt;P&gt;step 5: append the data into the final internal table&lt;/P&gt;&lt;P&gt;step 6: clear the header of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 16:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-problem/m-p/1822390#M351309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T16:02:00Z</dc:date>
    </item>
  </channel>
</rss>

