<?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: How to display multiple line items using a driver program in smart form ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500734#M17316</link>
    <description>&lt;P&gt;Hi Jelena,&lt;/P&gt;
  &lt;P&gt;Yes, I used the same logic for header and item. Also, I referred to some standard smart form programs. &lt;/P&gt;
  &lt;P&gt;Still, I had three pages. So, I was in a confusion to reply to all of you. Finally, I got my result by swapping the main window to the third page and the secondary window to the second page.&lt;/P&gt;
  &lt;P&gt;I kindly convey my sincere apologies to all three people for my delayed response. Your help meant to be so helpful to me. Thanks a bunch for spending the time to reply my query.&lt;/P&gt;
  &lt;P&gt;Looking forward to the same help and cooperation from @&lt;A href="https://answers.sap.com/users/151952/jelenaperfiljeva2.html"&gt;Jelena Perfiljeva&lt;/A&gt;, @ &lt;A href="https://answers.sap.com/users/1270/raymondgiuseppi.html"&gt;Raymond Giuseppi&lt;/A&gt;, and @&lt;A href="https://answers.sap.com/users/12677/richardharper.html"&gt;Richard Harper&lt;/A&gt;. Thank you so much. &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shan.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 08:14:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-09-19T08:14:32Z</dc:date>
    <item>
      <title>How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500728#M17310</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am looping my internal table which contains two line items. Each line item belongs to two pages in my smart form. There are totally three pages in my smart form. &lt;/P&gt;
  &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/59519-1.jpg" /&gt;
  &lt;P&gt; ------&amp;gt; Selection Screen&lt;/P&gt;
  &lt;P&gt;The First page is &lt;STRONG&gt;header&lt;/STRONG&gt; &lt;STRONG&gt;level&lt;/STRONG&gt; which contains the RFQ number.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/59520-page-1-header.jpg" /&gt;--&amp;gt; &lt;STRONG&gt;RFQ number (Header)&lt;/STRONG&gt; which is the &lt;STRONG&gt;Page_1&lt;/STRONG&gt;.&lt;/P&gt;
  &lt;P&gt;The Second and the third pages belong to &lt;B&gt;item level&lt;/B&gt; which contains the line item number and their bidder details.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/59521-page-2-item.jpg" /&gt; --&amp;gt; &lt;STRONG&gt;Line Item No. 1 and it's description name&lt;/STRONG&gt; which is &lt;STRONG&gt;Page_2&lt;/STRONG&gt;.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/59523-page-3-item.jpg" /&gt; --&amp;gt; &lt;STRONG&gt;Line item no. 1 detail &lt;/STRONG&gt;which is the &lt;STRONG&gt;Page_3.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Please find attached the images for your reference.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Issue am facing:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;If I am calling my smart form inside my loop. I am getting only the first line item. If I call the smart form from outside the loop, I am getting only the second line item.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;A solution needed for:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Therefore, to display all the line items, How should I apply logic in the driver program.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500728#M17310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-08-03T10:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500729#M17311</link>
      <description>&lt;P&gt;Try to get some consistency between the interface of the form and the way you call it. &lt;/P&gt;
  &lt;P&gt;Also if you call the form multiple time (calling it once a header parameter and an internal table of items was too simple?) don't forget to manage open/close related parameters to get a single spool (parameters no_open and no_close in the &lt;A href="https://help.sap.com/erp2005_ehp_08/helpdata/en/4e/581d733a944f48e10000000a42189e/content.htm"&gt;Control Structure&lt;/A&gt;.)&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Start reading some document like &lt;IMG src="https://help.sap.com/erp2005_ehp_08/helpdata/en/images/page.gif" /&gt;&lt;A href="https://help.sap.com/erp2005_ehp_08/helpdata/en/4e/581bad3a944f48e10000000a42189e/content.htm"&gt;Defining the Form Interface&lt;/A&gt; in &lt;A href="https://help.sap.com/erp2005_ehp_08/helpdata/en/4e/50b68d95e14dd2e10000000a42189b/content.htm"&gt;Smart Forms&lt;/A&gt; online documentation.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 11:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500729#M17311</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-08-03T11:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500730#M17312</link>
      <description>&lt;P&gt;A smart form is not sapscript.&lt;/P&gt;
  &lt;P&gt;Change the smart form to accept an RFQ number.&lt;/P&gt;
  &lt;P&gt;In the smartform define a table of RFQ items and populate that item&lt;/P&gt;
  &lt;P&gt;Create a loop in the main window, printing out the header texts etc as required and the item details. Issue a new page to print page 2. At the end of page 2 if there are more items issue a new page command.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 12:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500730#M17312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-08-03T12:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500731#M17313</link>
      <description>&lt;P&gt;Do what Richard said in the form. You can look at a standard invoice Smartform, for example, to see how the form interface is done in the header/item scenario.&lt;/P&gt;
  &lt;P&gt;Naturally, in the driver program, in the LOOP you'll need to fill in the internal table with the line items and start the form (passing the data to it through its interface) as soon as you got all the items in that internal table. This is really simple, general logic looks like this:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;LOOP AT &amp;lt;headers&amp;gt;
  LOOP AT &amp;lt;items&amp;gt; WHERE something = header&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;  IF SY-SUBRC = 0.&lt;BR /&gt;    &amp;lt;time to call the form&amp;gt;&lt;BR /&gt;  ENDIF.&lt;BR /&gt;ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Don't forget about clean-up in between and what Raymond mentioned.&lt;/P&gt;
  &lt;P&gt;When in doubt - look at the standard SAP output programs.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 22:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500731#M17313</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2017-08-03T22:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500732#M17314</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt;
  &lt;P&gt;Thank you for spending time in replying to the post. You helped me understand how to use a page command &amp;amp; its purpose. Looking forward to your guidance for future posts as well.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shan.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 08:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500732#M17314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-19T08:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500733#M17315</link>
      <description>&lt;P&gt;Hi Raymond,&lt;/P&gt;
  &lt;P&gt;Thank you for your response and sharing the links. The open/ close related logic helped me a lot to close this object. Looking forward to your guidance and cooperation for the future posts as well.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shan.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 08:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500733#M17315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-19T08:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500734#M17316</link>
      <description>&lt;P&gt;Hi Jelena,&lt;/P&gt;
  &lt;P&gt;Yes, I used the same logic for header and item. Also, I referred to some standard smart form programs. &lt;/P&gt;
  &lt;P&gt;Still, I had three pages. So, I was in a confusion to reply to all of you. Finally, I got my result by swapping the main window to the third page and the secondary window to the second page.&lt;/P&gt;
  &lt;P&gt;I kindly convey my sincere apologies to all three people for my delayed response. Your help meant to be so helpful to me. Thanks a bunch for spending the time to reply my query.&lt;/P&gt;
  &lt;P&gt;Looking forward to the same help and cooperation from @&lt;A href="https://answers.sap.com/users/151952/jelenaperfiljeva2.html"&gt;Jelena Perfiljeva&lt;/A&gt;, @ &lt;A href="https://answers.sap.com/users/1270/raymondgiuseppi.html"&gt;Raymond Giuseppi&lt;/A&gt;, and @&lt;A href="https://answers.sap.com/users/12677/richardharper.html"&gt;Richard Harper&lt;/A&gt;. Thank you so much. &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shan.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 08:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500734#M17316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-19T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to display multiple line items using a driver program in smart form ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500735#M17317</link>
      <description>&lt;P&gt;Thanks for the follow-up! If your question is answered you might want to close it as explained in &lt;A href="https://blogs.sap.com/2017/08/15/what-to-do-with-my-answered-questions/"&gt;this blog&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 19:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-multiple-line-items-using-a-driver-program-in-smart-form/m-p/500735#M17317</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2017-09-19T19:47:51Z</dc:date>
    </item>
  </channel>
</rss>

