<?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: general in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190695#M467019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the code inside the WRITE_FORM.&lt;/P&gt;&lt;P&gt;just check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2007 13:19:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-25T13:19:49Z</dc:date>
    <item>
      <title>general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190694#M467018</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 dec a variable and incr its value in loop then prn it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: no type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;no = no +1.&lt;/P&gt;&lt;P&gt;call fn write_form.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here am getting the number 1 twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt; and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to ignore the first number from printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 13:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190694#M467018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190695#M467019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the code inside the WRITE_FORM.&lt;/P&gt;&lt;P&gt;just check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 13:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190695#M467019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190696#M467020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem in you subroutine. can u send that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 13:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190696#M467020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190697#M467021</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;Unable to conclude from the peice of code which you have sent can you send your code so that it would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 13:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190697#M467021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190698#M467022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Unable to conclude from the peice of code which you&lt;/P&gt;&lt;P&gt;&amp;gt; have sent can you send your code so that it would be&lt;/P&gt;&lt;P&gt;&amp;gt; helpful.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Varun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS IS MY CODE AND BELOW OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_EMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W_SNO = W_SNO + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 'SET'&lt;/P&gt;&lt;P&gt;   TYPE                           = 'BODY'&lt;/P&gt;&lt;P&gt;   WINDOW                         = 'MAIN'&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 1&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 2&lt;/P&gt;&lt;P&gt;   TYPE                           = 3&lt;/P&gt;&lt;P&gt;   UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;   UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;   WINDOW                         = 6&lt;/P&gt;&lt;P&gt;   BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;   SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;   CODEPAGE                       = 9&lt;/P&gt;&lt;P&gt;   OTHERS                         = 10.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;1     00003      09.09.19890  4345&lt;/P&gt;&lt;P&gt;1     00003      09.09.19890  4345&lt;/P&gt;&lt;P&gt;2       0004      8.09.98         3423&lt;/P&gt;&lt;P&gt;3       00005     8.08.98   234234&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;Siri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 13:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190698#M467022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190699#M467023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Siri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change your table type, the problem will get solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: T_TEMP type table of ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently you are using an internal table with header line; I guess, Somewhere in&lt;/P&gt;&lt;P&gt;your code, you are calling WRITE_FORM before the loop statement, and it is&lt;/P&gt;&lt;P&gt;printing the record in the header line (though the body part of the internal table &lt;/P&gt;&lt;P&gt;is looped, the header will contain the data if you have not cleared the header&lt;/P&gt;&lt;P&gt;using &amp;lt;b&amp;gt;clear t_temp&amp;lt;/b&amp;gt; statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternatively, you can use CLEAR T_TEMP statement to clear the header, &lt;/P&gt;&lt;P&gt;after the internal table is manipulated in the code.&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;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 14:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2190699#M467023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T14:19:23Z</dc:date>
    </item>
  </channel>
</rss>

