<?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 Dynamically changing layout in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719951#M1872999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a requirement of printing two shipment smartforms of different layouts in SAP SD.When I say ,two different smartfoms , I mean one for shipment of Object XYZ and other for Object ABC.&lt;/P&gt;&lt;P&gt;Layouts differ in the way as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Shipment of Object XYZ, Page 1 will have header details and some constant text and Page 2 will have item data and customer details and so one.&lt;/P&gt;&lt;P&gt;For Shipment of Object ABC,header data and item details starts form here itself.&lt;/P&gt;&lt;P&gt;It wud have been easier if we wud have executed it via se38 directly by calling two smartforms based upon some condition of a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in our project the smartform needs to be configured to a specific output type and it wud be called when that particular output type will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence , we cannot go with two smartforms with different layouts. Now functional want the two different layouts in a single smartform as the client is not willing to create separate output types.But the problem is how wud I be able to print page 1 with constant text in case of object XYZ while same page will be used for item details for object ABC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some fields as well which have different&amp;nbsp; names and may be missing in one but present in other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help with your ideas and experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 18:54:19 GMT</pubDate>
    <dc:creator>former_member694142</dc:creator>
    <dc:date>2014-11-04T18:54:19Z</dc:date>
    <item>
      <title>Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719951#M1872999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a requirement of printing two shipment smartforms of different layouts in SAP SD.When I say ,two different smartfoms , I mean one for shipment of Object XYZ and other for Object ABC.&lt;/P&gt;&lt;P&gt;Layouts differ in the way as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Shipment of Object XYZ, Page 1 will have header details and some constant text and Page 2 will have item data and customer details and so one.&lt;/P&gt;&lt;P&gt;For Shipment of Object ABC,header data and item details starts form here itself.&lt;/P&gt;&lt;P&gt;It wud have been easier if we wud have executed it via se38 directly by calling two smartforms based upon some condition of a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in our project the smartform needs to be configured to a specific output type and it wud be called when that particular output type will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence , we cannot go with two smartforms with different layouts. Now functional want the two different layouts in a single smartform as the client is not willing to create separate output types.But the problem is how wud I be able to print page 1 with constant text in case of object XYZ while same page will be used for item details for object ABC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some fields as well which have different&amp;nbsp; names and may be missing in one but present in other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help with your ideas and experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 18:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719951#M1872999</guid>
      <dc:creator>former_member694142</dc:creator>
      <dc:date>2014-11-04T18:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719952#M1873000</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;In this case put two windows (One for text and another one for line item ) in page 1.&lt;/P&gt;&lt;P&gt;Add condition to print the information based on requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page 2 Add a window to print line item , In this case it should print line item for particular case.&lt;/P&gt;&lt;P&gt;because it printed in page 1 for alternate case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you are clear now.Please let me know, if you need more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gowrishankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 20:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719952#M1873000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-04T20:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719953#M1873001</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 it is easy to create a single form go for it (less maintenance in the long run) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 forms .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can HARD CODE the form names when using FUNCTION&lt;/P&gt;&lt;P&gt;'SSF_FUNCTION_MODULE_NAME' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call in your print program the one you need .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for HARD CODE Objects like that are not changed every 5 minutes....&lt;/P&gt;&lt;P&gt;Also table TNAPR have 5 "PDF/Smart Form: Form Name" fields maybe it is possible to have one program name and two forms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 05:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719953#M1873001</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-11-05T05:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719954#M1873002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Gowrishankar. But can you please elaborate as I am still not clear &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1078/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 06:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719954#M1873002</guid>
      <dc:creator>former_member694142</dc:creator>
      <dc:date>2014-11-05T06:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719955#M1873003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better 2 smartforms and the driver program has logic to decide the smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you can create 2 pages with different main windows and change the first page dynamically based on the driver program value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 06:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719955#M1873003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T06:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719956#M1873004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Requirement 1 - Print Text and line item in Page1&lt;/P&gt;&lt;P&gt;Requirement 2 - Print line item in Page2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page 1 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add two windows one for text and another one for line item.&lt;/P&gt;&lt;P&gt;Before printing text or line item add program line to write your code to validate the condition.&lt;/P&gt;&lt;P&gt;if the condition met set some flag and use that one in condition tab while printing object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Window(To print Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program line - Write your logic to validate requirement 1. if condtion met, set flag x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text line - flag eq X - Print the required text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Window 2(To print line item)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program Line - Add condition to validate requriement 1. if condition met, set flag X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text line - if&amp;nbsp; flag eq X - Print the line item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page 2 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add line item window and use the same line item table to print line items.&lt;/P&gt;&lt;P&gt;in this case you have to write logic in program line to check for your requirement 2.&lt;/P&gt;&lt;P&gt;if it meets it should print the line item.This line item will not print for requirement 1 because it will not pass your condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Window 1(To print line item)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program Line - Add condition to validate requriement 2. if condition met, set flag X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text line - if&amp;nbsp; flag eq X - Print the line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you are clear now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gowrishankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 14:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719956#M1873004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T14:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719957#M1873005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say that having two output types with two forms would probably be a more "clean" and rational solution if there are major layout differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the Smartforms it is possible to apply conditions to pretty much every element. There is also 'goto page' command. So to me it seems that one would just need to pass the criteria to the form and then add the conditions accordingly. It's pretty straightforward, so what exactly is a problem here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 20:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719957#M1873005</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2014-11-05T20:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719958#M1873006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can&amp;nbsp; accomplish this by using "window conditions"( we can call windows by providing conditions) at runtime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 10:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719958#M1873006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-14T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719959#M1873007</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;Just in case you didn't know this: you can control the starting page of smartform via &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/content.htm?frameset=/en/a5/de6838abce021ae10000009b38f842/frameset.htm&amp;amp;current_toc=/en/a9/de6838abce021ae10000009b38f842/plain.htm&amp;amp;node_id=156"&gt;control parameters STARTPAGE&lt;/A&gt;, it can be set in "driver" program (preferable) or the INITIALIZATION part/tab of the form itself. So create all the necessary page layouts and then control the page sequence per type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Jānis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 08:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719959#M1873007</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-11-16T08:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719960#M1873008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guyz for your help. I am trying the way Gowrishankar has explained .Will definitely update you all on this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 11:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719960#M1873008</guid>
      <dc:creator>former_member694142</dc:creator>
      <dc:date>2014-11-16T11:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing layout in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719961#M1873009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnaks Gowrishankar and all others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have successfully able to achieve my requirement with your help. Thanks buddy!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 09:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-layout-in-smartforms/m-p/10719961#M1873009</guid>
      <dc:creator>former_member694142</dc:creator>
      <dc:date>2014-12-07T09:19:26Z</dc:date>
    </item>
  </channel>
</rss>

