<?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: code plz for classical report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258852#M778506</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;Here you can use Control Break Statements:&lt;/P&gt;&lt;P&gt;1.At First&lt;/P&gt;&lt;P&gt;2.At New&lt;/P&gt;&lt;P&gt;3.At End&lt;/P&gt;&lt;P&gt;4.At last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.At End is going to trigger at the end of a new value of a particular fields.&lt;/P&gt;&lt;P&gt;It is used for subtotals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.At Last is going to trigger at the last loop of the internal table.&lt;/P&gt;&lt;P&gt;It is used for finding grand totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but these control break statements must be used within the loop itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2008 11:29:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-10T11:29:11Z</dc:date>
    <item>
      <title>code plz for classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258851#M778505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The report take input as range of materials and shows subtotal of the stock for each storage location and grand total of the stock at the end of the plant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 12:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258851#M778505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T12:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: code plz for classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258852#M778506</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;Here you can use Control Break Statements:&lt;/P&gt;&lt;P&gt;1.At First&lt;/P&gt;&lt;P&gt;2.At New&lt;/P&gt;&lt;P&gt;3.At End&lt;/P&gt;&lt;P&gt;4.At last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.At End is going to trigger at the end of a new value of a particular fields.&lt;/P&gt;&lt;P&gt;It is used for subtotals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.At Last is going to trigger at the last loop of the internal table.&lt;/P&gt;&lt;P&gt;It is used for finding grand totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but these control break statements must be used within the loop itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 11:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258852#M778506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: code plz for classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258853#M778507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i can give one classical example,it prints the totals and subtotals.&lt;/P&gt;&lt;P&gt;change this to as ur requirement by adding the input fields and where condition in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;      BUKRS LIKE LFC1-BUKRS,&lt;/P&gt;&lt;P&gt;      UM01H LIKE LFC1-UM01H,&lt;/P&gt;&lt;P&gt;      UM01U LIKE LFC1-UM01U,&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;SELECT BUKRS UM01H UM01U INTO TABLE ITAB FROM LFC1.&lt;/P&gt;&lt;P&gt;SORT ITAB BY BUKRS.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;WRITE:/ ITAB-BUKRS,7 ITAB-UM01H,ITAB-UM01U.&lt;/P&gt;&lt;P&gt;AT END OF BUKRS.&lt;/P&gt;&lt;P&gt;  SUM.&lt;/P&gt;&lt;P&gt;  WRITE:/ ITAB-BUKRS COLOR 7,7 ITAB-UM01H COLOR 7,ITAB-UM01U COLOR 7.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;AT LAST.&lt;/P&gt;&lt;P&gt;  SUM.&lt;/P&gt;&lt;P&gt;  WRITE:/ &amp;#145;TOTAL&amp;#146; COLOR 3,ITAB-UM01H COLOR 1,ITAB-UM01U COLOR 1.&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;reward points,if it is useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 11:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258853#M778507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T11:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: code plz for classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258854#M778508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES mard.

SELECT-OPTIONS: s_matnr FOR mard-matnr.

DATA : itab LIKE STANDARD TABLE OF mard WITH HEADER LINE.

SELECT matnr lgort labst INTO CORRESPONDING FIELDS OF
itab FROM mard WHERE matnr IN s_matnr.
  COLLECT  itab.
ENDSELECT.
SORT itab BY matnr lgort.


LOOP AT itab.
  WRITE :/ itab-matnr, itab-lgort, itab-labst DECIMALS 0.
  AT LAST.
    SUM.
    ULINE /(50).
    WRITE :/ 'GRAND TOTAL       ', itab-labst DECIMALS 0.
  ENDAT.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 11:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-plz-for-classical-report/m-p/3258854#M778508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T11:56:04Z</dc:date>
    </item>
  </channel>
</rss>

