<?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 to stop repeating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-stop-repeating/m-p/3066337#M726632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys.....i have a requirement as below&lt;/P&gt;&lt;P&gt;my output is as per the database &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example: &lt;/P&gt;&lt;P&gt;doc:  '  tax1  '   tax2  '   tax3..........'taxn&lt;/P&gt;&lt;P&gt; 009      '   1%  '     0    '      0............'..&lt;/P&gt;&lt;P&gt; 009      '   0     '     2% '      0............'...&lt;/P&gt;&lt;P&gt; 009      '   0     '     0    '      3%.........'....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same document number has three different taxes or even more&lt;/P&gt;&lt;P&gt;so the requirement is to print all the taxes in one row for given document number&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;docno:    tax1     tax2     tax3..........taxn&lt;/P&gt;&lt;P&gt;          009       1%       2%         3% ............n%&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;Vikram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 16:19:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T16:19:54Z</dc:date>
    <item>
      <title>to stop repeating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-stop-repeating/m-p/3066337#M726632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys.....i have a requirement as below&lt;/P&gt;&lt;P&gt;my output is as per the database &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example: &lt;/P&gt;&lt;P&gt;doc:  '  tax1  '   tax2  '   tax3..........'taxn&lt;/P&gt;&lt;P&gt; 009      '   1%  '     0    '      0............'..&lt;/P&gt;&lt;P&gt; 009      '   0     '     2% '      0............'...&lt;/P&gt;&lt;P&gt; 009      '   0     '     0    '      3%.........'....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same document number has three different taxes or even more&lt;/P&gt;&lt;P&gt;so the requirement is to print all the taxes in one row for given document number&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;docno:    tax1     tax2     tax3..........taxn&lt;/P&gt;&lt;P&gt;          009       1%       2%         3% ............n%&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;Vikram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 16:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-stop-repeating/m-p/3066337#M726632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: to stop repeating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-stop-repeating/m-p/3066338#M726633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa1 like line of wa,
        lv_lines type i,
        cnt type i.
descibe table itab lines lv_lines.
loop at itab into wa.
 cnt = cnt + 1.
 if wa-doc = wa1-doc.
  delete itab from wa.
  modify itab from wa.
 endif.
 if cnt = lv_lines.
  xit.
 endif.
wa1 = wa.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 16:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-stop-repeating/m-p/3066338#M726633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T16:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: to stop repeating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-stop-repeating/m-p/3066339#M726634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a table, copy of your itab, and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT itab1.
  ON CHANGE OF itab1-doc.
* // This restart the cycle
     l_counter = 0.
  ENDON.
  l_counter = l_counter + 1.
  CONCATENATE 'TAX' l_counter INTO l_field.
  ASSIGN COMPONENT l_field OF STRUCTURE itab1 TO &amp;lt;field1&amp;gt;.
  IF sy-subrc NE 0.
* // Lines of DOC finished or components finished.
    APPEND wa TO itab2.
    CONTINUE.    
  ENDIF.
  ASSIGN COMPONENT l_field OF STRUCTURE wa    TO &amp;lt;field2&amp;gt;.
  IF sy-subrc NE 0.
    APPEND wa TO itab2.
    CONTINUE.
  ENDIF.
  IF &amp;lt;field1&amp;gt; IS NOT INITIAL.
    &amp;lt;field2&amp;gt; = &amp;lt;field1&amp;gt;.
  ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 22:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-stop-repeating/m-p/3066339#M726634</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2007-12-04T22:12:38Z</dc:date>
    </item>
  </channel>
</rss>

