<?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: Smartforms Loop within MAIN not showing data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-loop-within-main-not-showing-data/m-p/9348644#M1731099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Managed to solve my issue, on first page i had an event to read the first line of the global data table and when i replicated this by placing the subsequent page as itself it would not print subsequent items.&amp;nbsp; I had to restrict the event occurring on the subsequent page and this resulted in the rest of my data set printing as desired.&amp;nbsp; Many thanks for the awesome tips and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 13:56:54 GMT</pubDate>
    <dc:creator>prince_isaac</dc:creator>
    <dc:date>2013-04-03T13:56:54Z</dc:date>
    <item>
      <title>Smartforms Loop within MAIN not showing data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-loop-within-main-not-showing-data/m-p/9348643#M1731098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a smartform whose design is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page_First next page Page_First.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header Window: Here i read main table lt_main to retrieve common fields for entire subset eg date and user.&amp;nbsp; Also create another internal table(lt_sub_main) replicating lt_main, sort records by date and delete adjacent duplicates.&lt;/P&gt;&lt;P&gt;Main Window: Loop at lt_sub_main.&lt;/P&gt;&lt;P&gt;Table main: on condition(date) Looping at lt_main where date = lw_sub_main-date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that only two iterations are being done&amp;nbsp; for table lt_sub_main even though i have hundreds of unique dates.&amp;nbsp; Only the records for the first two dates is printed, similarly if i delete other dates in debugg mode only two dates(which ever first two) records is printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst debugging the function module for the smartform the loop at lt_sub_main occurs only twice then loop is exited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any additional coding required to prevent this and print my entire data set??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 15:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-loop-within-main-not-showing-data/m-p/9348643#M1731098</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2013-03-14T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms Loop within MAIN not showing data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-loop-within-main-not-showing-data/m-p/9348644#M1731099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Managed to solve my issue, on first page i had an event to read the first line of the global data table and when i replicated this by placing the subsequent page as itself it would not print subsequent items.&amp;nbsp; I had to restrict the event occurring on the subsequent page and this resulted in the rest of my data set printing as desired.&amp;nbsp; Many thanks for the awesome tips and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 13:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-loop-within-main-not-showing-data/m-p/9348644#M1731099</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2013-04-03T13:56:54Z</dc:date>
    </item>
  </channel>
</rss>

