<?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: Script issue with multiple lines printing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237496#M1629756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i Mentioned in my earlier post, the same coding working fine in Quality server --&amp;gt; Printing multiple lines in script output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, I have the same reqt. in another window.&lt;/P&gt;&lt;P&gt;So, I did the same coding.&lt;/P&gt;&lt;P&gt;But, this time it's printing the last line of the internal table in all the lines.&lt;/P&gt;&lt;P&gt;This is happening in Quality Server only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference between the previous internal table and this int. table is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The first int. table content is printing in MAIN Window. ---&amp;gt; working fine&lt;/P&gt;&lt;P&gt;2. The second int. table content is printing in VARIABLE window. ---&amp;gt; NOT WORKING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me what's the issue with this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2011 15:12:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-21T15:12:43Z</dc:date>
    <item>
      <title>Script issue with multiple lines printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237493#M1629753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to print multiple lines of my internal table in a script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only the last line is being printed all the time in all the lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...

    CLEAR GS_REGUP.
    LOOP AT GT_REGUP INTO GS_REGUP.

* Start the Form
      CALL FUNCTION 'START_FORM'
        EXPORTING
          ARCHIVE_INDEX = TOA_DARA
          FORM          =  'ZFORM'                                    "T042E-ZFORN
          LANGUAGE      = SY-LANGU                          "T001-SPRAS
          STARTPAGE     = 'FIRST'
          PROGRAM       = 'ZPROG'.

* Net Amount
      CLEAR GV_NETWR.
      GV_NETWR = ( GS_REGUP-WRBTR - GS_REGUP-PSSKT ).

* Print the Content
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT  = '525'      "Header
          FUNCTION = 'APPEND'
          TYPE     = 'BODY'
          WINDOW   = 'MAIN'.

* End the Form
      CALL FUNCTION 'END_FORM'
        IMPORTING
          RESULT = ITCPP.
      IF ITCPP-TDPAGES EQ 0.       "Print via RDI
        ITCPP-TDPAGES = 1.
      ENDIF.

    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the flaw in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 12:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237493#M1629753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-20T12:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue with multiple lines printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237494#M1629754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call WRITE_FORM in loop only not START_FORM and END_FORM. &amp;lt;&amp;lt; Point begging and 2 points removed &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 21, 2011 11:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 18:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237494#M1629754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-20T18:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue with multiple lines printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237495#M1629755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a strange issue. &lt;/P&gt;&lt;P&gt;The same code did not work in Dev System.&lt;/P&gt;&lt;P&gt;But, it worked in Quality system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 18:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237495#M1629755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-20T18:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue with multiple lines printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237496#M1629756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i Mentioned in my earlier post, the same coding working fine in Quality server --&amp;gt; Printing multiple lines in script output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, I have the same reqt. in another window.&lt;/P&gt;&lt;P&gt;So, I did the same coding.&lt;/P&gt;&lt;P&gt;But, this time it's printing the last line of the internal table in all the lines.&lt;/P&gt;&lt;P&gt;This is happening in Quality Server only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference between the previous internal table and this int. table is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The first int. table content is printing in MAIN Window. ---&amp;gt; working fine&lt;/P&gt;&lt;P&gt;2. The second int. table content is printing in VARIABLE window. ---&amp;gt; NOT WORKING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me what's the issue with this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 15:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-issue-with-multiple-lines-printing/m-p/8237496#M1629756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-21T15:12:43Z</dc:date>
    </item>
  </channel>
</rss>

