<?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: 2 loop in smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764091#M1951504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't use 2 main different windows in different pages, can I ? I get a dump when I do that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 10:57:25 GMT</pubDate>
    <dc:creator>maria_merino</dc:creator>
    <dc:date>2016-06-14T10:57:25Z</dc:date>
    <item>
      <title>2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764069#M1951482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following issue: I have to print 2 tables in a smartform (see image attached please, table "devengos" and "descuentos").&lt;/P&gt;&lt;P&gt;In the main program I have 2 internal table with the required information. If the entries of both records aren't less than X (I think it's 19 for the first table and 12 for the other) it works fine. The problem is when there are more entries in any of the tables. In that case I need to print those entries in another page.&lt;/P&gt;&lt;P&gt;At first, I didn't use the MAIN window but I think it's necessary. So, I create 2 different loops in the MAIN window controlling the number of entries. But when it goes to the second page it doesn't print the data correctly. Entries from table2 are printed in "Devengos" and entries from table1 are not printed.&lt;/P&gt;&lt;P&gt;Any suggestion please ? How can I do that ? Should I use only an internal table with all the data mixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;María&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764069#M1951482</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T09:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764070#M1951483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using a table or template to print table entries? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sowbhagya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764070#M1951483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T09:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764071#M1951484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I was doing it without MAIN, I did it with templates. But now within the MAIN window I'm doing it with tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764071#M1951484</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T09:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764072#M1951485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By seeing your requirement, i think the two tables are independent. They are not Header and Item tables and hence dont create any separate loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert two tables in the main window of your smartform. Since the tables are in main window the page extension will happen automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinay Mutt &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764072#M1951485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T09:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764073#M1951486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, both tables are independent. That's what I did: 2 tables in the main window controlling that I have to print only the first 18 rows for the first one and 12 for the second one. But it doesn't work.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;María&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764073#M1951486</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T10:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764074#M1951487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First page - Use main-window and create 2 tables - one is for &lt;SPAN style="color: #333333; font-size: 12px;"&gt;devengos" and another one is for "descuentos"&amp;nbsp; Based on the records it will display means if your first table having 20 entries it will display first and after completing second table will display try it if you have any issues revert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Osman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764074#M1951487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T10:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764075#M1951488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell us what is the code present in the smartform now. Are you using loops. or is it only tables inside main window. Please paste the screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinay Mutt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764075#M1951488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T10:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764076#M1951489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May i know What is &lt;SPAN style="color: #333333; font-size: 12px;"&gt; But it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Is it displaying more than 18 and 12. I hope you have to control it. In driver program you have to Get only 18 and 12&amp;nbsp; If they are having more than, desired records count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764076#M1951489</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-06-08T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764077#M1951490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how my smartform looks like. &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/970317" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764077#M1951490</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T10:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764078#M1951491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I mean is this:&lt;/P&gt;&lt;P&gt;Table1 has 20 records.&lt;/P&gt;&lt;P&gt;Table2 has 15 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should print the smartform:&lt;/P&gt;&lt;P&gt;Page 1: table 1 with 18 records. Table 2 with 12 records.&lt;/P&gt;&lt;P&gt;Page 2: table 1 with 2 records. Table 2 with 3 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it does at this moment:&lt;/P&gt;&lt;P&gt;Page 1: table 1 with 18 records. Table 2 with 12 records.&lt;/P&gt;&lt;P&gt;Page 2: table 2 with 3 records in the place that should appear table 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764078#M1951491</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764079#M1951492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this is clear. But this is not in sink with the screen shot of the required receipt which you have attached. Could you please double confirm that you are trying to achieve to split tables across pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay Mutt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764079#M1951492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T10:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764080#M1951493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I need to split the tables (in case it is necessary) and print them in several pages, but in the space given to each tables, devengos and descuentos. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764080#M1951493</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T10:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764081#M1951494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can achieve this by using templates in the main windows of page 1 and page2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Page 1 create a template with 18 records and map these to first 18 rows of table 1.&lt;/P&gt;&lt;P&gt;In page 1 create another template with 12 records and map these to first 12 rows of table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In Page 2 create a template with 2 records and map these to last 2 rows of table 1.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In page 2 create another template with 3 records and map these to last 3 rows of table 2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sowbhagya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764081#M1951494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T10:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764082#M1951495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Page 2 (or 3, or 4, number of pages depends of entries in both tables) there can be also 18 records for the first table and 12 for the second one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764082#M1951495</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T10:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764083#M1951496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the saptechnical link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/Smartforms/Command/Index.htm" title="http://saptechnical.com/Tutorials/Smartforms/Command/Index.htm"&gt;http://saptechnical.com/Tutorials/Smartforms/Command/Index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has the solution for your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sowbhagya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764083#M1951496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-08T11:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764084#M1951497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I've already check this tutorial, with only one table it works fine, but the problem is when i'm working with 2 tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764084#M1951497</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-08T11:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764085#M1951498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure....&lt;/P&gt;&lt;P&gt;But you can use my idea if it is help full,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We know the two table entries as fix per page(18 and 12).&lt;/P&gt;&lt;P&gt;So we can use the describe table lines in initialization and the empty lines to the respected tables which are less for the page fix entries(18 and 12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex1:&lt;/P&gt;&lt;P&gt;1st table has 20 entries(2 pages) and 2nd table has 10 entries.&lt;/P&gt;&lt;P&gt;To continue the 2nd table we have to add 3 empty entries to 2nd table.&lt;/P&gt;&lt;P&gt;then the entries will be 13 entries(2pages)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex2:&lt;/P&gt;&lt;P&gt;1st table has 10 entries and 2nd table has 30 entries(3 pages).&lt;/P&gt;&lt;P&gt;To continue the next pages we have to 27 entries add 1st table.&lt;/P&gt;&lt;P&gt;then the entries will be 37 entries(3pages)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally you can use your own logic depends upon the above idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sivanadh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2016 07:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764085#M1951498</guid>
      <dc:creator>former_member210963</dc:creator>
      <dc:date>2016-06-11T07:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764086#M1951499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i Sivanadh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's exactly what I did, i'm controling the change of page using the maximum lines per table and per page. It seems it woks.&lt;/P&gt;&lt;P&gt;But now I have another problem... After printing both tables I need to print an extra page with some fix data. When I have only one page the last page is printed correctly. When I have more than one page I'm not able to print it.&lt;/P&gt;&lt;P&gt;what I did is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page 1:&lt;/P&gt;&lt;P&gt;I have 2 windows, positions (1st table) and discounts (2nd table) where I do the loop to the tables.&lt;/P&gt;&lt;P&gt;Whenever I print the entries required for each table, I delete these rows.&lt;/P&gt;&lt;P&gt;At the end of this page 1 have a MAIN window with an alternative:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- IF positions[] is not initial or discounts[] is not initial -&amp;gt; goto page NEXT (similar to page 1)&lt;/P&gt;&lt;P&gt;- ELSE -&amp;gt; goto page LAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In page LAST I have a NON-MAIN window where I print the data I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea of what I'm doing wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;María&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764086#M1951499</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-13T09:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764087#M1951500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried reversing the condition? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt; IF positions[] is initial or discounts[] is initial -&amp;gt; goto page LAST &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;- ELSE -&amp;gt; goto page NEXT &lt;SPAN style="color: #333333; font-size: 12px;"&gt;(similar to page 1)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Sowbhagya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 10:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764087#M1951500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-13T10:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: 2 loop in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764088#M1951501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sowbhagya but it doesn't work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 11:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-loop-in-smartform/m-p/11764088#M1951501</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-06-13T11:08:20Z</dc:date>
    </item>
  </channel>
</rss>

