<?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: SAPscript problem: writing data based on a condition. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301362#M158579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to achieve your functionality will be to follow the following steps :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Sort the table according to customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Print the details of a customer on a page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.As soon as you get a new customer, trigger the command new-page and then do print the details of the new customer on the new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2006 03:52:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-03T03:52:55Z</dc:date>
    <item>
      <title>SAPscript problem: writing data based on a condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301359#M158576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently having a problem on how to solve my problem. Now, my forms(write form, new-page, etc) are inside a loop. Now, what I want to do is for example, in the first loop, customer A is present then I would write its details on the corresponding windows. Now on the 2nd loop, customer B is present so I would trigger a new page for him. But what if on the 3rd loop customer A again is present so I need to write his details on the original page where the customer A appeared(during the first loop). Is there a way to this? again, thank you very much guys and I appreciate your help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 03:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301359#M158576</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-05-03T03:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript problem: writing data based on a condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301360#M158577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use the control events for the internal table. &lt;/P&gt;&lt;P&gt; First sort the internal table  and use AT NEW customer to first print all the customer A related info on first page and then use AT END and trigger a new page and start printing the second data of the new customer on the next page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can also use CONTROL_FORM to control it from the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: American Dreams&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 03:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301360#M158577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T03:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript problem: writing data based on a condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301361#M158578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viray,&lt;/P&gt;&lt;P&gt;You can &amp;lt;b&amp;gt;sort the table depending on the customer&amp;lt;/b&amp;gt; and then use trigger a new page for each customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think you can return back to a previous page in SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 03:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301361#M158578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T03:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript problem: writing data based on a condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301362#M158579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to achieve your functionality will be to follow the following steps :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Sort the table according to customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Print the details of a customer on a page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.As soon as you get a new customer, trigger the command new-page and then do print the details of the new customer on the new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 03:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-writing-data-based-on-a-condition/m-p/1301362#M158579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T03:52:55Z</dc:date>
    </item>
  </channel>
</rss>

