<?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: getting values into sapscript via loop in driver program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720717#M1873083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi debapriya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write labels in the in the header only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 17:19:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-12-22T17:19:39Z</dc:date>
    <item>
      <title>getting values into sapscript via loop in driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720714#M1873080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new at sapscripts and I want to know how to pass values into sapscript via a loop. the requirement is like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice No.: Invoice No.1, Invoice No.2, Invoice No.3, and so on......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice Date: date1, date2, date3 and so on......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the invoice numbers and invoice dates are coming from loop. but the problem is the labels are also getting printed for each loop iteration, as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice No. :&lt;/P&gt;&lt;P&gt;Invoice Date:&lt;/P&gt;&lt;P&gt;Invoice No. :&lt;/P&gt;&lt;P&gt;Invoice Date:&lt;/P&gt;&lt;P&gt;Invoice No. :&lt;/P&gt;&lt;P&gt;Invoice Date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in the script it is like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="HTHeadertext"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Tax Invoice No.: &lt;SPAN style="background: gray;"&gt;&amp;amp;V_INVNO&amp;amp;&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Tax Invoice Date: &lt;SPAN style="background: gray;"&gt;&amp;amp;V_INVDATE&amp;amp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So plz suggest me where I should write the labels so that they will appear once. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 11:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720714#M1873080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-20T11:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: getting values into sapscript via loop in driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720715#M1873081</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;Segregate the Invoice &amp;amp; Invoice in to two different internal table in the driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First print the invoice no label In the command box of the SAP script there is a command to handle to continue printing in the same line. &lt;/P&gt;&lt;P&gt;2. Then loop over invoice number internal table then print the invoice no using WRITE_FORM . In the command box of the SAP script there is a command to handle to continue printing in the same line. &lt;/P&gt;&lt;P&gt;3. Next print the invoice date label In the command box of the SAP script there is a command to handle to continue printing in the same line. &lt;/P&gt;&lt;P&gt;4 Then loop over invoice date internal table then print the invoice no using WRITE_FORM . Similarly in the command box of the SAP script there is a command to handle to continue printing in the same line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know, if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 12:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720715#M1873081</guid>
      <dc:creator>atul_mohanty</dc:creator>
      <dc:date>2014-12-20T12:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: getting values into sapscript via loop in driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720716#M1873082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="margin: -9px 0 0; font-size: 11px; color: #333333; text-align: right; background: #ffffff;"&gt;Debapriya Gupta,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="margin: -9px 0 0; font-size: 11px; color: #333333; text-align: right; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="margin: -9px 0 0; font-size: 11px; color: #333333; text-align: right; background: #ffffff;"&gt;it's hard to create a Form from scratch if you are new to sapscript.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="margin: -9px 0 0; font-size: 11px; color: #333333; text-align: right; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="margin: -9px 0 0; font-size: 11px; color: #333333; text-align: right; background: #ffffff;"&gt;You may check &lt;/STRONG&gt;&lt;SPAN style="font-family: inherit; font-size: 30px; font-style: inherit; font-weight: inherit; text-indent: -0.3em;"&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/d6/0db44e494511d182b70000e829fbfe/content.htm"&gt;Example of a Print Program &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 30px; font-style: inherit; text-indent: -0.3em;"&gt;You will use text elements in the FORM and trigger them via &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;FUNCTION 'WRITE_FORM', i.e. create a text element for invoice no and one for invoice date, then loop at invoices and call the two elements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;Sorry for the bad formatting - always dangerous to use sap scn. Never expect it will be user-friendly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;Regards Clemens&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 30px; font-style: inherit; font-weight: inherit; text-indent: -0.3em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 30px; font-style: inherit; font-weight: inherit; text-indent: -0.3em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="margin: -9px 0 0; font-size: 11px; color: #333333; text-align: right; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 20:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720716#M1873082</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2014-12-20T20:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: getting values into sapscript via loop in driver program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720717#M1873083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi debapriya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write labels in the in the header only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 17:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-into-sapscript-via-loop-in-driver-program/m-p/10720717#M1873083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-22T17:19:39Z</dc:date>
    </item>
  </channel>
</rss>

