<?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 Issue with Smart form in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669442#M1574975</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 have a smart form where information regarding order needs to be printed, such that each order should get printed in one new page. I kept condition at the end of Main window such that if current line of order internal table is less than or equal to total lines in order internal table then same page is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to print more than one order, first order is printing properly, but for second order header part is being printed in a new page but Main window is not printing and printing gets stopped there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &amp;lt;removed by moderator&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 21, 2011 1:56 PM - no ASAP please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2011 12:53:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-21T12:53:22Z</dc:date>
    <item>
      <title>Issue with Smart form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669442#M1574975</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 have a smart form where information regarding order needs to be printed, such that each order should get printed in one new page. I kept condition at the end of Main window such that if current line of order internal table is less than or equal to total lines in order internal table then same page is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to print more than one order, first order is printing properly, but for second order header part is being printed in a new page but Main window is not printing and printing gets stopped there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &amp;lt;removed by moderator&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 21, 2011 1:56 PM - no ASAP please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 12:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669442#M1574975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Smart form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669443#M1574976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use event and command combination....write click in a table / loop you will get in the list...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 19:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669443#M1574976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T19:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Smart form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669444#M1574977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subbarao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check a few things:&lt;/P&gt;&lt;P&gt;1)There should be 2 pages defined in the smartform.&lt;/P&gt;&lt;P&gt;2) Creation of page 2 is by simple copying the main window of the page 1 into Page 2and any other window as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain what do u mean by " condition at the end of the main window".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally,You need to add the condition in the command window by setting a variable and also in the "Genaral Attributes" set Go To New Page as Page2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 22:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669444#M1574977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T22:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Smart form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669445#M1574978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually implement this kind of requirement ( printing Multiple Invoice,order,shipments etc) by explicitly opening and closing the smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First Open the Smartform by calling FM 'SSF_OPEN' &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   DATA :control type ssfctrlop .
    
   control-no_open   = 'X'.
    control-no_close  = 'X'.

 CALL FUNCTION 'SSF_OPEN'
     EXPORTING
        control_parameters       = control
   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Now call the generated  smartform  FM . &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
     LOOP AT ORDER_HEADER...
          call the generated smartform FM.          
    ENDLOOP. 
   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;3. Close the smartform by calling FM  'SSF_CLOSE' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 22:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669445#M1574978</guid>
      <dc:creator>tushar_shukla</dc:creator>
      <dc:date>2011-02-21T22:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Smart form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669446#M1574979</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;&lt;STRONG&gt;But when I try to print more than one order, first order is printing properly, but for second order header part is being printed in a new page but Main window is not printing and printing gets stopped there.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding on your query, Follow below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly create program lines inside your loop, program line should populate additional temp variable. and it shouldbe the first one to populate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: IF lv_vbeln is initial.&lt;/P&gt;&lt;P&gt;LV_VBELN = vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Secondly, Place you command in the first line of your loop to trigger new page, with condition as LV_VBELN NE VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display all line items in main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of your loop.&lt;/P&gt;&lt;P&gt;IF LV_VBELN NE vbeln.&lt;/P&gt;&lt;P&gt;LV_VBELN = VBELN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope, It will helps to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 18:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-smart-form/m-p/7669446#M1574979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-07T18:26:34Z</dc:date>
    </item>
  </channel>
</rss>

