<?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: Trigger smartform multiple times from nace in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566561#M1659531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you just pass all the line items to the form and have a line break before each line item? In this way it'll be just one form call but you'll get as many pages as there are line items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 21:57:45 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2012-02-13T21:57:45Z</dc:date>
    <item>
      <title>Trigger smartform multiple times from nace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566557#M1659527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m working for T.Code ML83 (Service Sheet).....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously, for this T.Code SAPSCRIPT was using.... But now, I have developed a smartform and configured Smartform name in NACE and using Z  Report which  is already using same for  PO Print. Its working fine. But when along with same parameters &lt;/P&gt;&lt;P&gt;I am calling my new smartform(ML83) using parameters EBELN , smartforms triggering again an again. I mean, if i have 10 line item&lt;/P&gt;&lt;P&gt;i need to press 10 times on print preview and it comes on first select query of smartform. I need, it finish all the queries of smartform once, it should display output . I m not getting, what is the problem now.... Pl help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Reards,&lt;/P&gt;&lt;P&gt;Swapnika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 06:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566557#M1659527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T06:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger smartform multiple times from nace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566558#M1659528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U probably have used in the driver program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop on ekpo / Item .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Smartform FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endlloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. may have used TDCOPIES = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the 2 things&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 07:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566558#M1659528</guid>
      <dc:creator>mithun_shetty4</dc:creator>
      <dc:date>2012-02-13T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger smartform multiple times from nace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566559#M1659529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapnika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              I think you might have used the below logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;item table&amp;gt; into &amp;lt;work area&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL smartform FM.&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;in this case you will have to give print preview many times (number of entries in your item table). consider using the below logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(previously you were using a script. hence there you would have looped the item table and called the main window inside the loop, because you cannot handle a table inside a script. But in case of smartform, you should not loop the item table and call the smartform, because you have an option to handle the tables inside the smartform) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of calling the FM inside a item table loop, since this is only for one EBELN, call the FM directly, dont call it inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now  the importing parameter of the FM pass your item table and handle the item table inside your SMARTFORM by using a TABLE in the main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means that instead of looping the item table you are going to pass it to the smartform and process it in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 07:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566559#M1659529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger smartform multiple times from nace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566560#M1659530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swapnika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.If you want the the smartform to get generated for each line item .Place the FM "SSF_*" in the loop of item table  EKPO.&lt;/P&gt;&lt;P&gt;2.If you want the smartform to get generated after comeplete calulation of item values.Place the FM 'SSF_*" outside item table.&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;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 08:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566560#M1659530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T08:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger smartform multiple times from nace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566561#M1659531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you just pass all the line items to the form and have a line break before each line item? In this way it'll be just one form call but you'll get as many pages as there are line items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 21:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566561#M1659531</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2012-02-13T21:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger smartform multiple times from nace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566562#M1659532</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;As praveen and mithun said you can loop the item table and write a where condition based on the "SSF_" FM which will help you in triggering your item data multiple times in the NCAE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutam Kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 04:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-smartform-multiple-times-from-nace/m-p/8566562#M1659532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T04:04:51Z</dc:date>
    </item>
  </channel>
</rss>

