<?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: Smartform Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-problem/m-p/2863766#M671605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm. Complicated...&lt;/P&gt;&lt;P&gt;I have thought of two possible ways.&lt;/P&gt;&lt;P&gt;The second solution is easiest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 1:&lt;/P&gt;&lt;P&gt;When looping over the table with all records, you would first have to build a new internal table that has the data for two columns. Only for two people (Pedro and Jose). This can be done in program lines just under the loop in the main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table could look like:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Pedro&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Age:&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;24&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Age:&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;32&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, pass it to a table in the main window. When the data for these two people has been processed, do it again for the next two.&lt;/P&gt;&lt;P&gt;etc. etc.&lt;/P&gt;&lt;P&gt;This way you can put boxes around each block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 2 (if that works, it's the easiest solution):&lt;/P&gt;&lt;P&gt;Create 8 windows, no main window.&lt;/P&gt;&lt;P&gt;In each window create a loop over the data table.&lt;/P&gt;&lt;P&gt;Loop at the records in the data table. Keep a counter running. When processing the first employee, the counter is 1. At each new employee, increase the counter.&lt;/P&gt;&lt;P&gt;A condition on the first window to only print if the counter is 1. &lt;/P&gt;&lt;P&gt;A condition on the second window to only print if the counter is 2. &lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;Remove each printed record from the data table (having a copy of the table would be nice).&lt;/P&gt;&lt;P&gt;When the counter = 8, reset the counter and start a new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't think of a better way... I do not know if what you want is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2007 12:07:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-21T12:07:45Z</dc:date>
    <item>
      <title>Smartform Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-problem/m-p/2863765#M671604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this problem, how can i do to have one page with several divisions in smartform, it's like ms word print 8 pages in one page.&lt;/P&gt;&lt;P&gt;Or how can I do to have divisions, this is for credentials for employees, but they print 8 by page... so each division have a different data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;____________________________________________&lt;/P&gt;&lt;P&gt;I.................................I...........................................I&lt;/P&gt;&lt;P&gt;I  Name: pedro ............|....Name:Jose .....................|&lt;/P&gt;&lt;P&gt;I  age: 24.....................|....Age:32............................|&lt;/P&gt;&lt;P&gt;I..................................I..........................................I&lt;/P&gt;&lt;P&gt;I_____________ ______I___ ___ _________________I&lt;/P&gt;&lt;P&gt;I..................................I..........................................I&lt;/P&gt;&lt;P&gt;I  Name: jorge. ............|....Name:Juan .....................|&lt;/P&gt;&lt;P&gt;I  age: 25.....................|....Age:33............................|&lt;/P&gt;&lt;P&gt;I..................................I..........................................I&lt;/P&gt;&lt;P&gt;I_____________ ______I___ ___ _________________I&lt;/P&gt;&lt;P&gt;I..................................I..........................................I&lt;/P&gt;&lt;P&gt;I  Name: Fabri. ............|....Name:Ivan.......................|&lt;/P&gt;&lt;P&gt;I  age: 29.....................|....Age:38............................|&lt;/P&gt;&lt;P&gt;I..................................I..........................................I&lt;/P&gt;&lt;P&gt;I_____________ ______I___ ___ _________________I&lt;/P&gt;&lt;P&gt;I..................................I..........................................I&lt;/P&gt;&lt;P&gt;I  Name: Claus ............|....Name:Flor.......................|&lt;/P&gt;&lt;P&gt;I  age: 22.....................|....Age:35............................|&lt;/P&gt;&lt;P&gt;I..................................I..........................................I&lt;/P&gt;&lt;P&gt;I_____________ ______I___ ___ _________________I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok That's the idea.&lt;/P&gt;&lt;P&gt;That's an example of what I need in smartform, if somebody have an idea or solution please let me know step by step please &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 23:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-problem/m-p/2863765#M671604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T23:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-problem/m-p/2863766#M671605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm. Complicated...&lt;/P&gt;&lt;P&gt;I have thought of two possible ways.&lt;/P&gt;&lt;P&gt;The second solution is easiest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 1:&lt;/P&gt;&lt;P&gt;When looping over the table with all records, you would first have to build a new internal table that has the data for two columns. Only for two people (Pedro and Jose). This can be done in program lines just under the loop in the main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table could look like:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Pedro&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Age:&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;24&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Age:&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;32&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, pass it to a table in the main window. When the data for these two people has been processed, do it again for the next two.&lt;/P&gt;&lt;P&gt;etc. etc.&lt;/P&gt;&lt;P&gt;This way you can put boxes around each block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 2 (if that works, it's the easiest solution):&lt;/P&gt;&lt;P&gt;Create 8 windows, no main window.&lt;/P&gt;&lt;P&gt;In each window create a loop over the data table.&lt;/P&gt;&lt;P&gt;Loop at the records in the data table. Keep a counter running. When processing the first employee, the counter is 1. At each new employee, increase the counter.&lt;/P&gt;&lt;P&gt;A condition on the first window to only print if the counter is 1. &lt;/P&gt;&lt;P&gt;A condition on the second window to only print if the counter is 2. &lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;Remove each printed record from the data table (having a copy of the table would be nice).&lt;/P&gt;&lt;P&gt;When the counter = 8, reset the counter and start a new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't think of a better way... I do not know if what you want is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 12:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-problem/m-p/2863766#M671605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T12:07:45Z</dc:date>
    </item>
  </channel>
</rss>

