<?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: report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3683861#M887053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi adaper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove the else statement from your code.&lt;/P&gt;&lt;P&gt;b'coz there is no need to clear the tbox otherwise it will flush the previous total of the number of boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE I_VBTAB-VBELN TO INV_NO.&lt;/P&gt;&lt;P&gt;IF INV_NO = I_VBTAB-VBELN.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;TBOX = TBOX + I_VBTAB-BOX_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 15:57:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T15:57:30Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3683860#M887052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My senario is&lt;/P&gt;&lt;P&gt;there is 3 line item for a invoice no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate total no of box of  3 line item of invoice no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE I_VBTAB-VBELN TO INV_NO.&lt;/P&gt;&lt;P&gt;    IF INV_NO = I_VBTAB-VBELN.&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;    TBOX = TBOX + I_VBTAB-BOX_NO.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;    CLEAR TBOX.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its is not showing total no of lineitem box of invoiceno.&lt;/P&gt;&lt;P&gt;it is add all boxs of other invoice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 15:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3683860#M887052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3683861#M887053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi adaper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove the else statement from your code.&lt;/P&gt;&lt;P&gt;b'coz there is no need to clear the tbox otherwise it will flush the previous total of the number of boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE I_VBTAB-VBELN TO INV_NO.&lt;/P&gt;&lt;P&gt;IF INV_NO = I_VBTAB-VBELN.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;TBOX = TBOX + I_VBTAB-BOX_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 15:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3683861#M887053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T15:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3683862#M887054</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;for your requirement its better to use internal table event at new.&lt;/P&gt;&lt;P&gt;in your internal table you have headeritem and lineitem.each header item will have multiple lineitems.so you want to sum the line items box number for each header item.&lt;/P&gt;&lt;P&gt;so let us suppose that the header field is denoted by 'h' in your internal table and the box field is denoted by 'b'.first make sure that the box field is before header field in the internal table.now use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;at new headerfield.&lt;/P&gt;&lt;P&gt;sum box.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will definitely work.but if your not clear about internal table events your code is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 15, 2008 5:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 20:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3683862#M887054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T20:56:32Z</dc:date>
    </item>
  </channel>
</rss>

