<?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: Changing following page logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972838#M398993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for handling this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 15:16:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T15:16:11Z</dc:date>
    <item>
      <title>Sapscript-Problem: Changing following page logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972836#M398991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a SAPSCRIPT-Form with 4 pages.&lt;/P&gt;&lt;P&gt;Page FIRST with follow page AGB, page AGB with follow page NEXT,&lt;/P&gt;&lt;P&gt;page NEXT with follow page NEXT and page AGB2 with no follow page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The page AGB2 is called by command NEW-PAGE in a element at the main window at page FIRST, as we don't want to print a clear sheet, when we use the normal follow page logic and the new-page command if the is only one formpage to print ( the pages AGB and AGB2 don't have a main-window).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This logic is correct if we have to print a PO for foreign customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for interior customer we need the following logic:&lt;/P&gt;&lt;P&gt;FIRST-&amp;gt;NEXT-&amp;gt;NEXT-&amp;gt;...-&amp;gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 14:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972836#M398991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T14:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-Problem: Changing following page logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972837#M398992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the interior customer the normal program flow is correct. You only have to implement the coding for foreign customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your ABAP you have to identify the foreign customer with a variable like gv_foreign_customer TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your ABAP will seems like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;IF gv_foreign_customer = 'X'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;element = 'NEW_PAGE_AGB2'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the SAPScript in MAIN window:&lt;/P&gt;&lt;P&gt;/E NEW_PAGE_AGB2&lt;/P&gt;&lt;P&gt;/: NEW-PAGE AGB2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 15:13:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972837#M398992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-Problem: Changing following page logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972838#M398993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for handling this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 15:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972838#M398993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T15:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-Problem: Changing following page logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972839#M398994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The AGB2 page is calling externally from the Program, so that will be in the CONTROL_FORM function module, so here you need to write the simple if condition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Customer = interior customer.&lt;/P&gt;&lt;P&gt;Call the CONTROL_FROM Fucntion moduel and call the NEW page.&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 15:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972839#M398994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-Problem: Changing following page logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972840#M398995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to explain the problem more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a modified 'SAPLMEDRUCK' for printing the form, a modified 'MEDRUCK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need the point where the is the change from page FIRST to the follow page, so I can differ between foreign and interior customer by the field 'LFA1-LAND1' the logic therefore I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best point in my opinion is the end of the first page, but at the end of the main window of page first there is automatically the change the next page with a main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there were a special event I could catch, it would help me to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 18:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972840#M398995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T18:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript-Problem: Changing following page logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972841#M398996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just solved the problem with changing the complete logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page First -&amp;gt; Next -&amp;gt; ... -&amp;gt; Next -&amp;gt; if foreign customer page AGB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your Help and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 14:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-changing-following-page-logic/m-p/1972841#M398996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T14:04:14Z</dc:date>
    </item>
  </channel>
</rss>

