<?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 Sorting in Classical report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779575#M1308060</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;I am working with a Stasndard FI Report   RFKOPR00,Right now In this report,data is not getting diplayed profitcenter wise.hence user wants me add profit center in selection-screen and sort the output, it is a simple classical report,by priftcenter by proving a Sort button in application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know, How I can provide this option,and the proccedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly, provide me sample code if available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follwoing is the code that Prints output data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_item into wa_item.&lt;/P&gt;&lt;P&gt;format color col_normal.&lt;/P&gt;&lt;P&gt;write:/ sy-vline.&lt;/P&gt;&lt;P&gt;write : 2 wa_item-lifnr,&lt;/P&gt;&lt;P&gt;        12 wa_item-name1,&lt;/P&gt;&lt;P&gt;        30 wa_item-prctr,&lt;/P&gt;&lt;P&gt;        41 wa_item-bukrs,&lt;/P&gt;&lt;P&gt;        50 wa_item-belnr,&lt;/P&gt;&lt;P&gt;        60 wa_item-buzei,&lt;/P&gt;&lt;P&gt;        70 wa_item-netdt,&lt;/P&gt;&lt;P&gt;        80 wa_item-zfbdt,&lt;/P&gt;&lt;P&gt;        90 wa_item-budat,&lt;/P&gt;&lt;P&gt;        100 wa_item-bldat,&lt;/P&gt;&lt;P&gt;        110 wa_item-bschl,&lt;/P&gt;&lt;P&gt;        115 wa_item-zlsch,&lt;/P&gt;&lt;P&gt;        120 wa_item-WAERS,&lt;/P&gt;&lt;P&gt;        150 wa_item-wrshb.&lt;/P&gt;&lt;P&gt;WRITE : 170 SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color off.&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;Regards,&lt;/P&gt;&lt;P&gt;Xavier.P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 11:07:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-17T11:07:47Z</dc:date>
    <item>
      <title>Sorting in Classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779575#M1308060</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;I am working with a Stasndard FI Report   RFKOPR00,Right now In this report,data is not getting diplayed profitcenter wise.hence user wants me add profit center in selection-screen and sort the output, it is a simple classical report,by priftcenter by proving a Sort button in application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know, How I can provide this option,and the proccedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly, provide me sample code if available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follwoing is the code that Prints output data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_item into wa_item.&lt;/P&gt;&lt;P&gt;format color col_normal.&lt;/P&gt;&lt;P&gt;write:/ sy-vline.&lt;/P&gt;&lt;P&gt;write : 2 wa_item-lifnr,&lt;/P&gt;&lt;P&gt;        12 wa_item-name1,&lt;/P&gt;&lt;P&gt;        30 wa_item-prctr,&lt;/P&gt;&lt;P&gt;        41 wa_item-bukrs,&lt;/P&gt;&lt;P&gt;        50 wa_item-belnr,&lt;/P&gt;&lt;P&gt;        60 wa_item-buzei,&lt;/P&gt;&lt;P&gt;        70 wa_item-netdt,&lt;/P&gt;&lt;P&gt;        80 wa_item-zfbdt,&lt;/P&gt;&lt;P&gt;        90 wa_item-budat,&lt;/P&gt;&lt;P&gt;        100 wa_item-bldat,&lt;/P&gt;&lt;P&gt;        110 wa_item-bschl,&lt;/P&gt;&lt;P&gt;        115 wa_item-zlsch,&lt;/P&gt;&lt;P&gt;        120 wa_item-WAERS,&lt;/P&gt;&lt;P&gt;        150 wa_item-wrshb.&lt;/P&gt;&lt;P&gt;WRITE : 170 SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color off.&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;Regards,&lt;/P&gt;&lt;P&gt;Xavier.P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779575#M1308060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779576#M1308061</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;Check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/forums" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/forums&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779576#M1308061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779577#M1308062</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;On selection screen add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_prctr for  tablename-prctr . &amp;lt;--- add table name e.g mara-matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then before displaying report sort using following syntax -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT  it_item by prctr....    ( you can add the required fields here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You may need to use control statement like AT END .... ENDAT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779577#M1308062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779578#M1308063</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 an enhancement point in the subroutine : FORM raster_ausgabe_alv_grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just sort the output table before the ALV list display in the standard program,&lt;/P&gt;&lt;P&gt;SORT &amp;lt;tablename&amp;gt; by &amp;lt;profitcenter&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For addition of new field on selection screen its not possible as there is no enhancement point to add your custom code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you need to copy the report into a Z report and make changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779578#M1308063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779579#M1308064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it Possible to provide Two buttons( Sort ascending, and srot descending) in application toolbar so that when the user clicks these two buttons output will be sorted Just like in ALV Grid display?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Xavier.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779579#M1308064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779580#M1308065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you said, I am copying the standard report to Z and making changes, but can we provide two buttons( Sort Ascend and descend ) in Application toolbar of the classical report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Xavier.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779580#M1308065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in Classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779581#M1308066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you can add 2 buttons and code accordingly&lt;/P&gt;&lt;P&gt;SORT itab by field descending.&lt;/P&gt;&lt;P&gt;SORT itab by field ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-in-classical-report/m-p/5779581#M1308066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:26:13Z</dc:date>
    </item>
  </channel>
</rss>

