<?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/3864279#M928798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sort is used at the subtotals and is used at the read statement using binary search..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 with key field = itab-field binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the sort is essential ...otherwise it will gives u dump some times..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 13:04:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T13:04:00Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864277#M928796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the main use of sort while writing a report program.?give with small ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864277#M928796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864278#M928797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to put it in the order you want or user wants in a more orderly fashion.. there are a tremendous number of reasons you would sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorting an internal table is as simple as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will sort using the entire row as the sort critieria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864278#M928797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864279#M928798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sort is used at the subtotals and is used at the read statement using binary search..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 with key field = itab-field binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the sort is essential ...otherwise it will gives u dump some times..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864279#M928798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864280#M928799</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;The SORT ITAB is used to sort (small to large OR A to Z) the data as assending or desending order based on ur selection.&lt;/P&gt;&lt;P&gt;by default it sort assending order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to sort iternal table by the specified field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gupta.....................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864280#M928799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864281#M928800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorts an internal table on the fields U want .. either Ascending&lt;/P&gt;&lt;P&gt;descending ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by field1 descending. (default ascending) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If U want to use control break statements .. the internal table &lt;/P&gt;&lt;P&gt;must be sorted with proper keys .&lt;/P&gt;&lt;P&gt;Also If U want to read internal table using binary search .. &lt;/P&gt;&lt;P&gt;internal table must be sorted ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864281#M928800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864282#M928801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sort is mainly used when we use control break statement such as at new, on change, at end of etc. It also increases the performance if we sort the internal table before using For all entries in a select query .&lt;/P&gt;&lt;P&gt;Go through this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/d0/a76d420a00de54e10000000a155106/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/d0/a76d420a00de54e10000000a155106/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this are the main place where sort keeps lots of importance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Anomitro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864282#M928801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864283#M928802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;sort is used for internal table in reports becoz if we read we read or search or delete the adjacent record from the internal table than it improves the processing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX &lt;/P&gt;&lt;P&gt;like it i use DELETE  satement on an internal table for duplicate entry  then i have to write condition where i frist read it and then compare and then delete .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead if i use sort like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by field1.&lt;/P&gt;&lt;P&gt;and now if i use the &lt;/P&gt;&lt;P&gt;DELETE ADJACENT  staement then it does the same as previous one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is ALso neaded it u r uding read statement with addition binary search &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers &lt;/P&gt;&lt;P&gt;Snehi Chouhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864283#M928802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864284#M928803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THE MAIN USE OF SORT STATEMENT IS TO SORT AN INTERNAL TABLE CONTENTS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GENERALLY IN REPORTING IF WE DATA THE RECORDS TO BE DISPLAY IN ORDER(ASCENDING OR DESCENDING)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND ALSO IF DO SUBTOTAL,TOTALS WE USE SORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO BEFORE READ STATEMENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND DELETE STATEMENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement sorts an internal table itab. As standard, numeric and byte-type components are sorted by their value and character-type components according to their binary representation code page). Textual sorting of character-type components is performed using the addition AS TEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no explicit sort key is entered using the BY addition, the internal table itab is sorted according to the table key. In this case, the table key can contain a maximum of 250 components. The priority of the sort is based on the order in which the die key field are specified in the table definition. In standard keys, the sort is prioritized according to the order of the key fields in the line type of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For itab, a standard table or a hashed table is expected. Sorted tables cannot be sorted using SORT and the application of the SORT statement on sorted tables is syntactically prohibited. If the system does not notice until runtime that a sorted table is to be sorted, an untreatable exception occurs if this could result in change in the existing sorting. The latter occurs in the following cases: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the BY addition is used to enter a different addition than the initial part of the table key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition DESCENDING is used, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition AS TEXT is used, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an attribute of an object is entered as a component in the BY addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: moazam hai on May 12, 2008 3:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864284#M928803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864285#M928804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ! Shirish kumar  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please view the example for Sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report Zcontrol_break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;ebeln LIKE ekko-ebeln,&lt;/P&gt;&lt;P&gt;bsart LIKE ekko-bsart,&lt;/P&gt;&lt;P&gt;ekorg LIKE ekko-ekorg,&lt;/P&gt;&lt;P&gt;ekgrp LIKE ekko-ekgrp,&lt;/P&gt;&lt;P&gt;bukrs LIKE ekko-bukrs,&lt;/P&gt;&lt;P&gt;ebelp LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;END OF ITAB.&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;SELECT EBELN&lt;/P&gt;&lt;P&gt;BSART&lt;/P&gt;&lt;P&gt;EKORG&lt;/P&gt;&lt;P&gt;EKGRP&lt;/P&gt;&lt;P&gt;BUKRS FROM EKKO INTO TABLE ITAB.&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;STRONG&gt;Important to sort the internal table first.&lt;/STRONG&gt;* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort itab by EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB .&lt;/P&gt;&lt;P&gt;AT FIRST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: /5'Purchas_Doc_No',&lt;/P&gt;&lt;P&gt;22'Purchasing_Document_Type',&lt;/P&gt;&lt;P&gt;47'Sales_organization',&lt;/P&gt;&lt;P&gt;67'Sales_Group'.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW bsart .&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;WRITE:/ ITAB-EBELN.&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;WRITE: 9 ITAB-EBELN,&lt;/P&gt;&lt;P&gt;22 ITAB-BSART,&lt;/P&gt;&lt;P&gt;47 ITAB-EKORG,&lt;/P&gt;&lt;P&gt;67 ITAB-EKGRP.&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;Dont forget to reward points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Basheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3864285#M928804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:30:01Z</dc:date>
    </item>
  </channel>
</rss>

