<?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 Two Loops in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056900#M1810426</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;Im going to do smartform, I have two internal tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header internal table -&amp;nbsp; IT_HEAD ( MBLNR key )&lt;/P&gt;&lt;P&gt;Detail Table - IT_DET ( MBLNR , etc...&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to print MBLNR as header , and want to print detail data , relavent to same MBLNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also print different MBLNR different pages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im going to loop header data in LOOP node and under that i have TABLE, in that table im looping my detail TABLE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not working properly, can u pls explain this......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;pramod &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Feb 2014 05:30:40 GMT</pubDate>
    <dc:creator>former_member203806</dc:creator>
    <dc:date>2014-02-03T05:30:40Z</dc:date>
    <item>
      <title>Two Loops in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056900#M1810426</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;Im going to do smartform, I have two internal tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header internal table -&amp;nbsp; IT_HEAD ( MBLNR key )&lt;/P&gt;&lt;P&gt;Detail Table - IT_DET ( MBLNR , etc...&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to print MBLNR as header , and want to print detail data , relavent to same MBLNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also print different MBLNR different pages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im going to loop header data in LOOP node and under that i have TABLE, in that table im looping my detail TABLE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not working properly, can u pls explain this......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;pramod &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 05:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056900#M1810426</guid>
      <dc:creator>former_member203806</dc:creator>
      <dc:date>2014-02-03T05:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Two Loops in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056901#M1810427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need nested table. One for header and other for item. After the item loop you need to put command page break so that each document is printed on a new page&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 05:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056901#M1810427</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-02-03T05:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Two Loops in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056902#M1810428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pramod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understand your reuirement correctly then it is to display material document number along some other deatils as a header and item level deatils on a smartform with page-break on MBLNR field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you the below approach :&lt;/P&gt;&lt;P&gt;Main: this will be the one main table which will store the header and item level data for a particular mblnr.&lt;/P&gt;&lt;P&gt;structure of main table:&lt;/P&gt;&lt;P&gt;Header : contains header details&lt;/P&gt;&lt;P&gt;Item[] : contains item details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the main table based on mblnr first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps :&lt;/P&gt;&lt;P&gt;1.Now loop through main table .&lt;/P&gt;&lt;P&gt;2.Display your header details&lt;/P&gt;&lt;P&gt;3.Loop your item table and dispaly its details.&lt;/P&gt;&lt;P&gt;4.At the end of main loop provide the command to page break .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 05:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056902#M1810428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-03T05:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Two Loops in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056903#M1810429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pramod,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you can achieve your requirements wih help of&amp;nbsp; one loop statement,one table loop and page break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please collect the different mblnr in new internal table with help of collect statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Refer below screenshots .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/378380" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/378381" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/378382" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know further facing the prob..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Thangam.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 10:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056903#M1810429</guid>
      <dc:creator>thangam_perumal</dc:creator>
      <dc:date>2014-02-03T10:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two Loops in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056904#M1810430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Thangam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much, very help full answer,i got good idea from u r screen shoots,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks.&lt;/P&gt;&lt;P&gt;pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 10:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-in-smartforms/m-p/10056904#M1810430</guid>
      <dc:creator>former_member203806</dc:creator>
      <dc:date>2014-02-03T10:34:10Z</dc:date>
    </item>
  </channel>
</rss>

