<?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: How to loop inside smartforms? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565120#M1431910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By first: I can see that you are using lots, really lots of secondary windows if not over 100 per page. I don't think it is a good idea at all. You could easily substitute them with 6 secondary windows which woudl use same &lt;EM&gt;template&lt;/EM&gt; inside. It is like you were builting a program and rewrite 6 times same code, although you could encapulate it in some routine and use it 6 times.&lt;/P&gt;&lt;P&gt;Next time please consider avoiding such strcutures and take advantage of &lt;EM&gt;templates/tables&lt;/EM&gt; It is much more difficult to handle it like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevetherless, in your case you could do following: in each secodary window (dedicated for MATNR) READ your ITAB with INDEX 1 -&amp;gt; then show MATNR -&amp;gt; then DELETE ITAB INDEX 1. When you proceed to next window you do same thing, and same for the following windows too. In the 6th window, after DELETE, check if any entries are left in ITAB. If so -&amp;gt; then trigger PAGE BREAK. Next page will act same way (reading first entry -&amp;gt; printing it out -&amp;gt; deleting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way would be creating some global counter which would hold INDEX of read ITAB line. You would increment it after each read. At the end you would check whether INDEX = number of lines in ITAB. If no -&amp;gt; then proceed to next page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ways you can handle that are couple. Please remember it is always up to you what approach you take (it also applies to SF structure), so try making your life easier not harder &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2010 20:27:06 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-02-16T20:27:06Z</dc:date>
    <item>
      <title>SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565119#M1431909</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;I have the following scenario below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly check the screenshot of my smartForm first: &lt;A href="http://img10.imageshack.us/img10/9456/sflayout6cells.jpg" target="test_blank"&gt;http://img10.imageshack.us/img10/9456/sflayout6cells.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screenshot, in the right side is the screenshot of my SAP output, while on the left is the smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have ITAB.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT itab. 
   
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my SF, i have 6 big cells, i want to pass itab-matnr in each of the 6 cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if the number of rows in my ITAB is 12, I should pass 12 matnr in each of the cells &lt;STRONG&gt;but&lt;/STRONG&gt; it should trigger my SF to produce a 2nd page to contain next set of 6 matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I loop the page of my SF to contain the next loop pass from my ITAB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 18:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565119#M1431909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T18:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565120#M1431910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By first: I can see that you are using lots, really lots of secondary windows if not over 100 per page. I don't think it is a good idea at all. You could easily substitute them with 6 secondary windows which woudl use same &lt;EM&gt;template&lt;/EM&gt; inside. It is like you were builting a program and rewrite 6 times same code, although you could encapulate it in some routine and use it 6 times.&lt;/P&gt;&lt;P&gt;Next time please consider avoiding such strcutures and take advantage of &lt;EM&gt;templates/tables&lt;/EM&gt; It is much more difficult to handle it like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevetherless, in your case you could do following: in each secodary window (dedicated for MATNR) READ your ITAB with INDEX 1 -&amp;gt; then show MATNR -&amp;gt; then DELETE ITAB INDEX 1. When you proceed to next window you do same thing, and same for the following windows too. In the 6th window, after DELETE, check if any entries are left in ITAB. If so -&amp;gt; then trigger PAGE BREAK. Next page will act same way (reading first entry -&amp;gt; printing it out -&amp;gt; deleting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way would be creating some global counter which would hold INDEX of read ITAB line. You would increment it after each read. At the end you would check whether INDEX = number of lines in ITAB. If no -&amp;gt; then proceed to next page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ways you can handle that are couple. Please remember it is always up to you what approach you take (it also applies to SF structure), so try making your life easier not harder &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 20:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565120#M1431910</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-02-16T20:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565121#M1431911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;Thanks with the quick understanding of my scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I then now trigger the next page in the SF and pass the index greater than 6?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say my ITAB has:&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my SG, matnr 1-6 will fill the 6 individual cells, now I need matnr 7 and 8 to fill the 2nd page of the first 2 cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I automatically trigger the next page?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 03:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565121#M1431911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-17T03:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565122#M1431912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of printing 6 labels, check the condition as suggested by Marcin. To trigger the next page, use command node( Right click-&amp;gt; Flow logic-&amp;gt; Command Line.). Fill the next page field of this node to trigger the required page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 05:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565122#M1431912</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-02-17T05:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565123#M1431913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U want that after every six iteration the page no should be changed and the next six matnr's should print on the next page. Please correct me if I am wrong?&lt;/P&gt;&lt;P&gt;In that case u do these things in main window. Create a template in main window to hold six rows.&lt;/P&gt;&lt;P&gt;rigt clk and create loop lines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now put one program line there and  loop the internal table upto 6 rows.&lt;/P&gt;&lt;P&gt;take a local variable for storing the index no.&lt;/P&gt;&lt;P&gt;and write a case statement there&lt;/P&gt;&lt;P&gt;declare six global variables of type string&lt;/P&gt;&lt;P&gt;pass each of the matnr's in each of these six variables according to the index nos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the itab has looped six times.delete itab from 1 to 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and increase the page no by 1 everytime at the end. In this way u need not worry how many rows ur internal table contains.It will keep printing in multiples of six.&lt;/P&gt;&lt;P&gt;See the sample code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA LV_INDEX.&lt;/P&gt;&lt;P&gt;CLEAR LV_INDEX.&lt;/P&gt;&lt;P&gt;CLEAR:GWA_VBAP,GV_STRING,GV_STRING1,GV_STRING2,GV_STRING3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GIT_VBAP INTO GWA_VBAP FROM 1 TO 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE LV_INDEX.&lt;/P&gt;&lt;P&gt;  WHEN 0.&lt;/P&gt;&lt;P&gt;   GV_STRING = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING.&lt;/P&gt;&lt;P&gt;  WHEN 1.&lt;/P&gt;&lt;P&gt;   GV_STRING1 = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING1.&lt;/P&gt;&lt;P&gt;  WHEN 2.&lt;/P&gt;&lt;P&gt;   GV_STRING2 = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING2.&lt;/P&gt;&lt;P&gt;  WHEN 3.&lt;/P&gt;&lt;P&gt;   GV_STRING3 = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING3.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ADD 1 TO LV_INDEX.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE GIT_VBAP FROM 1 TO 4.&lt;/P&gt;&lt;P&gt;SFSY-PAGE = SFSY-PAGE + 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 06:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565123#M1431913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-17T06:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565124#M1431914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U want that after every six iteration the page no should be changed and the next six matnr's should print on the next page. Please correct me if I am wrong?&lt;/P&gt;&lt;P&gt;In that case u do these things in main window. Create a template in main window to hold six rows.&lt;/P&gt;&lt;P&gt;rigt clk and create loop lines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now put one program line there and  loop the internal table upto 6 rows.&lt;/P&gt;&lt;P&gt;take a local variable for storing the index no.&lt;/P&gt;&lt;P&gt;and write a case statement there&lt;/P&gt;&lt;P&gt;declare six global variables of type string&lt;/P&gt;&lt;P&gt;pass each of the matnr's in each of these six variables according to the index nos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the itab has looped six times.delete itab from 1 to 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and increase the page no by 1 everytime at the end. In this way u need not worry how many rows ur internal table contains.It will keep printing in multiples of six.&lt;/P&gt;&lt;P&gt;See the sample code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA LV_INDEX.&lt;/P&gt;&lt;P&gt;CLEAR LV_INDEX.&lt;/P&gt;&lt;P&gt;CLEAR:GWA_VBAP,GV_STRING,GV_STRING1,GV_STRING2,GV_STRING3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GIT_VBAP INTO GWA_VBAP FROM 1 TO 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE LV_INDEX.&lt;/P&gt;&lt;P&gt;  WHEN 0.&lt;/P&gt;&lt;P&gt;   GV_STRING = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING.&lt;/P&gt;&lt;P&gt;  WHEN 1.&lt;/P&gt;&lt;P&gt;   GV_STRING1 = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING1.&lt;/P&gt;&lt;P&gt;  WHEN 2.&lt;/P&gt;&lt;P&gt;   GV_STRING2 = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING2.&lt;/P&gt;&lt;P&gt;  WHEN 3.&lt;/P&gt;&lt;P&gt;   GV_STRING3 = GWA_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;   CONDENSE GV_STRING3.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ADD 1 TO LV_INDEX.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE GIT_VBAP FROM 1 TO 4.&lt;/P&gt;&lt;P&gt;SFSY-PAGE = SFSY-PAGE + 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 06:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565124#M1431914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-17T06:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565125#M1431915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For triggering &lt;EM&gt;dynamic page break&lt;/EM&gt; proceed as Swarna suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the counter (index), simply create global data object i.e. G_COUNTER (at &lt;EM&gt;Global definitions&lt;/EM&gt; node -&amp;gt; &lt;EM&gt;Global data&lt;/EM&gt; tab ) -&amp;gt; then in each of 6 cells (windows) you want the MATNR be shown, &lt;EM&gt;right click -&amp;gt; Create flow logic -&amp;gt; Program Lines&lt;/EM&gt; . &lt;/P&gt;&lt;P&gt;Pass G_COUNTER both as &lt;EM&gt;input and output&lt;/EM&gt; parameter of program lines. Inside that just icrement G_COUNTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you reach the second page (which I believe will have same format as 1st one) you will not have to pass anything else. G_COUNTER is visible accross entire SF, so its value be passed to next page too. So after processing first page it will have value 6 -&amp;gt; then on next page will be icremented to 7,8,9,10...12 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note, you will need to have &lt;EM&gt;Main window&lt;/EM&gt; defined in first page if you want to specify it as the following page too. It is required in order to avoid endless loop. So make sure you have one on you page, even if empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 08:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565125#M1431915</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-02-17T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565126#M1431916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@MARCIN&lt;/P&gt;&lt;P&gt;u201CNext time please consider avoiding such strcutures and take advantage of templates/tables It is much more difficult to handle it like that.u201D&lt;/P&gt;&lt;P&gt;[Question] My first was design but I changed to manual multiple secondary window since I have to maximize my space as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u201COther way would be creating some global counter which would hold INDEX of read ITAB line. You would increment it after each read. At the end you would check whether INDEX = number of lines in ITAB. If no -&amp;gt; then proceed to next page.u201D&lt;/P&gt;&lt;P&gt;[Question]This is easier, in my screenshot: &lt;A href="http://img10.imageshack.us/img10/9456/sflayout6cells.jpg" target="test_blank"&gt;http://img10.imageshack.us/img10/9456/sflayout6cells.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Letu2019s consider the 1st red box as my 1st data cell, here, youu2019ll notice that I have a lot of secondary window, it will not just only contain MATNR but it will also other contain other data, since G_COUNTER is a Global variable, I should increment it only after the &lt;STRONG&gt;last window&lt;/STRONG&gt; read right?&lt;/P&gt;&lt;P&gt;The way SF works on how they read window(s) is sequential right?&lt;/P&gt;&lt;P&gt;Since I need to trigger a command line flow logic at the last read of ITAB, when should I insert this one?&lt;/P&gt;&lt;P&gt;In which window?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jaime Cabanban on Feb 18, 2010 6:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 19:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565126#M1431916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-17T19:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565127#M1431917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@SWARNA&lt;/P&gt;&lt;P&gt;u201CAt the end of printing 6 labels, check the condition as suggested by Marcin. To trigger the next page, use command node( Right click-&amp;gt; Flow logic-&amp;gt; Command Line.). Fill the next page field of this node to trigger the required page.u201D&lt;/P&gt;&lt;P&gt;Question: So I only need to insert the command line on the last window in my SF?  If you noticed, I have a lot of secondary windows, but not all them will have a data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 19:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565127#M1431917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-17T19:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565128#M1431918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@FARKAN&lt;/P&gt;&lt;P&gt;Yes, youu2019re correct, in one SF page, it can only hold 6 MATNR since there are only 6 windows allocated for it, so if the ITAB is greater than 6, the rest of the ITAB-MATNR will be passed through the next page.&lt;/P&gt;&lt;P&gt;In your code sample, does this mean that I have to &lt;STRONG&gt;create command lines&lt;/STRONG&gt; in &lt;STRONG&gt;each&lt;/STRONG&gt; of the SF window for MATNR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 19:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565128#M1431918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-17T19:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565129#M1431919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you have two create 6 command lines &amp;amp;STRING1&amp;amp;&lt;/P&gt;&lt;P&gt;                                                                     &amp;amp;STRING2&amp;amp;&lt;/P&gt;&lt;P&gt;                                                                    &amp;amp;STRING3&amp;amp;&lt;/P&gt;&lt;P&gt;                                                                   &amp;amp;STRING4&amp;amp;&lt;/P&gt;&lt;P&gt;                                                                  &amp;amp;STRING5&amp;amp;&lt;/P&gt;&lt;P&gt;                                                                 &amp;amp;STRING6&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear these variables evrytime before the loop at itab statement.&lt;/P&gt;&lt;P&gt;You can use only the main window and create a template in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: FARKAN on Feb 18, 2010 6:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 05:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565129#M1431919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T05:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForms: How to loop inside smartforms?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565130#M1431920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 07:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-how-to-loop-inside-smartforms/m-p/6565130#M1431920</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-02-18T07:02:32Z</dc:date>
    </item>
  </channel>
</rss>

