<?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 Change page format dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512148#M236096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way in SAP Script that we can specify/change the format of the page dynamically , like before calling the Script functions or something like that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2006 12:27:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-04T12:27:27Z</dc:date>
    <item>
      <title>Change page format dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512148#M236096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way in SAP Script that we can specify/change the format of the page dynamically , like before calling the Script functions or something like that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512148#M236096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change page format dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512149#M236097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt if this can be done.&lt;/P&gt;&lt;P&gt;Alternatively, you can call different layouts based on some condition, using start_form and end_form function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open_form.&lt;/P&gt;&lt;P&gt;if cond1.&lt;/P&gt;&lt;P&gt;start_form. " layout1&lt;/P&gt;&lt;P&gt;close_form.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if cond2.&lt;/P&gt;&lt;P&gt;start_form. "layout 2&lt;/P&gt;&lt;P&gt;close_form.&lt;/P&gt;&lt;P&gt;endif.&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;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512149#M236097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change page format dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512150#M236098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to Ravi's comments you can't change the page size / orientation of a SAPScript dynamically because it's part of the Forms attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi's solution is the only practical way forward for you, but it does require maintaining multiple forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the business requirement which has lead to this question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512150#M236098</guid>
      <dc:creator>former_member641343</dc:creator>
      <dc:date>2006-08-04T12:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change page format dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512151#M236099</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;Ravi and Rossie were straight to the point. You cannot the change page attributes of a SAPSCRIPT layout dynamically, bcoz you need to maintain the same page format for the entire form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can do this functionality using SMARTFORMS which can address your need. If your business need is that, migrate your SAPSCRIPT layout to smartforms. You can do that from tcode SMARTFORMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512151#M236099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change page format dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512152#M236100</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;Thank you all . The requirement is that : for two companies codes the page format is A4 and for others it has to be Letter . I cant do smartforms , because this is Correspondence type set up(FI) which as per my awareness doesnt support smartforms &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; . &lt;/P&gt;&lt;P&gt;So , Is this the only soultion : to create new forms and correspondence types for the two company codes ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512152#M236100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change page format dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512153#M236101</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;If thats the case, you have no choices left but to maintain different layouts : one on A4 and the other on Letter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use function modules START_FORM and END_FORM to initiate the respective layouts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find something better,let us know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 15:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-page-format-dynamically/m-p/1512153#M236101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T15:00:14Z</dc:date>
    </item>
  </channel>
</rss>

