<?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: Simple Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170778#M123021</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;if you want the no.of sales and total quantity in the header then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use another internal table which stores the header details using a separate loop. Before the used loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jan 2006 05:34:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-28T05:34:42Z</dc:date>
    <item>
      <title>Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170771#M123014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends, i want to print a report like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cust no:________ totalsalesdocuments_______  totalsales quantity__________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  ............           .......&lt;/P&gt;&lt;P&gt;  ...........            .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cust no:________ totalsalesdocuments_______  totalsales quantity__________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  ............           .......&lt;/P&gt;&lt;P&gt;  ...........            .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cust no:________ totalsalesdocuments_______  totalsales quantity__________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  salesdocument          quantity&lt;/P&gt;&lt;P&gt;  ............           .......&lt;/P&gt;&lt;P&gt;  ...........            .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting the total sales quantity by using the SUM controlbreak event AT NEW.&lt;/P&gt;&lt;P&gt;but how to calculate the total sales documents of a customer before printing those documents. because it is not a numeric field SUM is not work.&lt;/P&gt;&lt;P&gt;plz tell me how to do this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 21:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170771#M123014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T21:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170772#M123015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prashant,&lt;/P&gt;&lt;P&gt;  Create another internal table with Customer No &amp;amp; add the sales documents quantity &amp;amp; append for each customer by looping at this internal table.&lt;/P&gt;&lt;P&gt;While writing just read that table with the cust no. &amp;amp; write the value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 21:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170772#M123015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T21:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170773#M123016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create another internal table with Customer No total Qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to call this loop before your current loop.&lt;/P&gt;&lt;P&gt;Loop at Itab (Your table).&lt;/P&gt;&lt;P&gt;L_intdex = Sy-tabix.&lt;/P&gt;&lt;P&gt;Counter = Counter + 1.&lt;/P&gt;&lt;P&gt;At end of Customer.&lt;/P&gt;&lt;P&gt;Read itab index l_tabix.&lt;/P&gt;&lt;P&gt;Move Itab-customet to itab_new-customer.&lt;/P&gt;&lt;P&gt;Move counter to itab_new-Total_lines.&lt;/P&gt;&lt;P&gt;append Itab_new.&lt;/P&gt;&lt;P&gt;Clear Counter.&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;In your loop  read this Itab_new by using:&lt;/P&gt;&lt;P&gt;Read itab_new with key Customer = Itab-customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 22:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170773#M123016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T22:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170774#M123017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Check the sequence of fields in internal table you are using, sort them by order and issue AT END event and SUM up the values in AT END event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should get desired results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 22:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170774#M123017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T22:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170775#M123018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : pack type p,&lt;/P&gt;&lt;P&gt;       sumdoc type p.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;pack = itab-salesdoc.&lt;/P&gt;&lt;P&gt;sumdoc = sumdoc + pack.&lt;/P&gt;&lt;P&gt;at new salesdoc.&lt;/P&gt;&lt;P&gt; write : sumdoc."which is the actual sum&lt;/P&gt;&lt;P&gt; clear sumdoc.&lt;/P&gt;&lt;P&gt;endat.&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;hope this works fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points in case its helpful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2006 02:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170775#M123018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-28T02:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170776#M123019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,thanks for u answers. still my problem is not solved. i am giving my code. &lt;/P&gt;&lt;P&gt;i am not getting total sales documents for a particular customer.&lt;/P&gt;&lt;P&gt;plz modify my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;data types&lt;/STRONG&gt;**********&lt;/P&gt;&lt;P&gt;types: begin of ty_orders,&lt;/P&gt;&lt;P&gt;       kunnr  type vbak-kunnr,&lt;/P&gt;&lt;P&gt;       vbeln  type vbak-vbeln,&lt;/P&gt;&lt;P&gt;       kwmeng type vbap-kwmeng,&lt;/P&gt;&lt;P&gt;       sdoc1  type i,&lt;/P&gt;&lt;P&gt;       end of ty_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_orders type ty_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_orders type standard table of ty_orders initial size 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;STRONG&gt;selection-screen&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options: cno for vbak-kunnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;STRONG&gt;initialization event&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;cno-low = 1000.&lt;/P&gt;&lt;P&gt;cno-high = 2000.&lt;/P&gt;&lt;P&gt;append cno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;STRONG&gt;start-of-selectionevent&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data sdoc1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       select vbak~kunnr&lt;/P&gt;&lt;P&gt;              vbak~vbeln&lt;/P&gt;&lt;P&gt;              vbap~kwmeng  into table t_orders&lt;/P&gt;&lt;P&gt;                             from vbak&lt;/P&gt;&lt;P&gt;                             inner join&lt;/P&gt;&lt;P&gt;                               vbap on &lt;/P&gt;&lt;P&gt;                               vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;                               where vbak~kunnr in cno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       sort t_orders by kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       loop at t_orders into w_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      at new sdoc1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      w_orders-sdoc1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      endat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_orders-sdoc1 = w_orders-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     on change of w_orders-vbeln.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     sdoc = sdoc + 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endon.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       at new kunnr.&lt;/P&gt;&lt;P&gt;       sum.&lt;/P&gt;&lt;P&gt;       write: /5  'cust no:', w_orders-kunnr,&lt;/P&gt;&lt;P&gt;               20 'no.of.sales documents:', w_orders-sdoc1,&lt;/P&gt;&lt;P&gt;               45 'total sales orders quantity:' , w_orders-kwmeng.&lt;/P&gt;&lt;P&gt;        uline.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       write: /15 'sales document no',&lt;/P&gt;&lt;P&gt;               45 'order quantity'.&lt;/P&gt;&lt;P&gt;          uline.     &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       write: /20 w_orders-vbeln,&lt;/P&gt;&lt;P&gt;               35 w_orders-kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;       at end of kunnr.&lt;/P&gt;&lt;P&gt;       uline.&lt;/P&gt;&lt;P&gt;       skip.&lt;/P&gt;&lt;P&gt;       endat.&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;STRONG&gt;top-of-page&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: /25 'customer wise sales document details'.&lt;/P&gt;&lt;P&gt;uline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2006 04:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170776#M123019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-28T04:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170777#M123020</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;there is small change you will get the sum in the footer of the endat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;data types&lt;/STRONG&gt;**********&lt;/P&gt;&lt;P&gt;types: begin of ty_orders,&lt;/P&gt;&lt;P&gt;kunnr type vbak-kunnr,&lt;/P&gt;&lt;P&gt;vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;kwmeng type vbap-kwmeng,&lt;/P&gt;&lt;P&gt;sdoc1 type i,&lt;/P&gt;&lt;P&gt;end of ty_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_orders type ty_orders.d&lt;/P&gt;&lt;P&gt;data: count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_orders type standard table of ty_orders initial size 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;STRONG&gt;selection-screen&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options: cno for vbak-kunnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;STRONG&gt;initialization event&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;cno-low = 1000.&lt;/P&gt;&lt;P&gt;cno-high = 2000.&lt;/P&gt;&lt;P&gt;count = 0.&lt;/P&gt;&lt;P&gt;append cno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;STRONG&gt;start-of-selectionevent&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data sdoc1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbak~kunnr&lt;/P&gt;&lt;P&gt;vbak~vbeln&lt;/P&gt;&lt;P&gt;vbap~kwmeng into table t_orders&lt;/P&gt;&lt;P&gt;from vbak&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;vbap on &lt;/P&gt;&lt;P&gt;vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;where vbak~kunnr in cno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort t_orders by kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_orders into w_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;at new sdoc1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_orders-sdoc1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_orders-sdoc1 = w_orders-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;on change of w_orders-kunnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sdoc = sdoc + 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;endon.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new kunnr.&lt;/P&gt;&lt;P&gt;count = 0.&lt;/P&gt;&lt;P&gt;write: /5 'cust no:', w_orders-kunnr,&lt;/P&gt;&lt;P&gt;uline.&lt;/P&gt;&lt;P&gt;endat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;write: /20 w_orders-vbeln,&lt;/P&gt;&lt;P&gt;35 w_orders-kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end of kunnr.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;write:/ 20 'no.of.sales documents:', count,&lt;/P&gt;&lt;P&gt;45 'total sales orders quantity:' , w_orders-kwmeng.&lt;/P&gt;&lt;P&gt;uline.&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;endat.&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;STRONG&gt;top-of-page&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: /25 'customer wise sales document details'.&lt;/P&gt;&lt;P&gt;uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Harikishore Sreenivasulu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2006 05:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170777#M123020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-28T05:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170778#M123021</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;if you want the no.of sales and total quantity in the header then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use another internal table which stores the header details using a separate loop. Before the used loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2006 05:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170778#M123021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-28T05:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170779#M123022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prashanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I don't prefer to use Control-Break logic.&lt;/P&gt;&lt;P&gt;   Its not much reliable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Instead i use COLLECT logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In your same program,&lt;/P&gt;&lt;P&gt;    i have made one EXTRA FORM,&lt;/P&gt;&lt;P&gt;    which will do all the work&lt;/P&gt;&lt;P&gt;   in a better way (WITH COUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;LI level="7" type="ol"&gt;&lt;P&gt;MODI&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Just copy paste in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;TABLES:vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;data types&lt;/STRONG&gt;**********&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_orders,&lt;/P&gt;&lt;P&gt;kunnr TYPE vbak-kunnr,&lt;/P&gt;&lt;P&gt;vbeln TYPE vbak-vbeln,&lt;/P&gt;&lt;P&gt;kwmeng TYPE vbap-kwmeng,&lt;/P&gt;&lt;P&gt;sdoc1 TYPE i,&lt;/P&gt;&lt;P&gt;END OF ty_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;LI level="12" type="ol"&gt;&lt;P&gt;MODIFY&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;DATA : BEGIN OF summary OCCURS 0,&lt;/P&gt;&lt;P&gt;kunnr TYPE vbak-kunnr,&lt;/P&gt;&lt;P&gt;kwmeng TYPE vbap-kwmeng,&lt;/P&gt;&lt;P&gt;cnt TYPE i,&lt;/P&gt;&lt;P&gt;END OF summary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : doctotal TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_orders TYPE ty_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_orders TYPE STANDARD TABLE OF ty_orders INITIAL SIZE 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;STRONG&gt;selection-screen&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: cno FOR vbak-kunnr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;STRONG&gt;initialization event&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  cno-low = 1000.&lt;/P&gt;&lt;P&gt;  cno-high = 2000.&lt;/P&gt;&lt;P&gt;  APPEND cno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;STRONG&gt;start-of-selectionevent&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data sdoc1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbak~kunnr&lt;/P&gt;&lt;P&gt;  vbak~vbeln&lt;/P&gt;&lt;P&gt;  vbap~kwmeng INTO TABLE t_orders&lt;/P&gt;&lt;P&gt;  FROM vbak&lt;/P&gt;&lt;P&gt;  INNER JOIN&lt;/P&gt;&lt;P&gt;  vbap ON&lt;/P&gt;&lt;P&gt;  vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;  WHERE vbak~kunnr IN cno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT t_orders BY kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;LI level="12" type="ol"&gt;&lt;P&gt;MODIFY&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;  PERFORM doprint.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_orders INTO w_orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;at new sdoc1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_orders-sdoc1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_orders-sdoc1 = w_orders-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;on change of w_orders-vbeln.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;sdoc = sdoc + 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;endon.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT NEW kunnr.&lt;/P&gt;&lt;P&gt;      SUM.&lt;/P&gt;&lt;P&gt;      WRITE: /5 'cust no:', w_orders-kunnr,&lt;/P&gt;&lt;P&gt;      20 'no.of.sales documents:', w_orders-sdoc1,&lt;/P&gt;&lt;P&gt;      45 'total sales orders quantity:' , w_orders-kwmeng.&lt;/P&gt;&lt;P&gt;      ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WRITE: /15 'sales document no',&lt;/P&gt;&lt;P&gt;      45 'order quantity'.&lt;/P&gt;&lt;P&gt;      ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE: /20 w_orders-vbeln,&lt;/P&gt;&lt;P&gt;    35 w_orders-kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT END OF kunnr.&lt;/P&gt;&lt;P&gt;      ULINE.&lt;/P&gt;&lt;P&gt;      SKIP.&lt;/P&gt;&lt;P&gt;    ENDAT.&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;STRONG&gt;top-of-page&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: /25 'customer wise sales document details'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;LI level="12" type="ol"&gt;&lt;P&gt;MODIFY&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM doprint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt; Get Statistics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT t_orders BY kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_orders INTO w_orders.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING w_orders TO summary.&lt;/P&gt;&lt;P&gt;    summary-cnt = 1.&lt;/P&gt;&lt;P&gt;    COLLECT summary.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt; For Printing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT summary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; '----&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; summary-kunnr , summary-kwmeng , summary-cnt.&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; '----&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_orders INTO w_orders WHERE kunnr = summary-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; w_orders-kunnr , w_orders-vbeln , w_orders-kwmeng.&lt;/P&gt;&lt;P&gt;&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "doprint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2006 05:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170779#M123022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-28T05:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170780#M123023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks amit ur code working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;full points to u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2006 07:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-report/m-p/1170780#M123023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-28T07:02:34Z</dc:date>
    </item>
  </channel>
</rss>

