Shared Top Border

Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Home arrow Tips and Tricks arrow ABAP Reports arrow Sort during Select vs. ABAP sort
Sort during Select vs. ABAP sort PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Anon.   
Friday, 09 March 2007

ABAP provides 2 methods of sorting.  One is executing the sort on the database server and the other is executing the sort on the application server.
   

DON'T
Example: Sorting data within select statement
    SELECT MATNR WERKS DISPO
           FROM MARC
           INTO TABLE T_MARC
           WHERE DISMM = 'ND'
           ORDER BY DISPO MATNR.
-> Sort is executed on database server

DO  
Example: Sorting data within ABAP
    SELECT MATNR WERKS DISPO
           FROM MARC
           INTO TABLE T_MARC
           WHERE DISMM = 'ND'.
    SORT T_MARC BY DISPO MATNR.
-> Sort is executed on application server

Recommendation:
    
  • Sorting should take place on the application server.
  • In general, sorting large amounts of data on database server adversely affects overall system performance

Related Items:

Last Updated ( Friday, 09 March 2007 )
 
< Prev   Next >

Google Search

Google Ads

Shared Bottom Border

Contact Us | Polls | Add URL | Contribute | Privacy | Terms | Feedback

Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job
Financials Consultant | Consultant Review | Gallia Consulting | Supply Chain Project | SAP Financials Forum
GenieHoldings.COM, Inc. | Genie Press | WorkflowGenie | ESAGenie | ERPTopSites | ABAP Tips and Tricks | SAP Solutions Database

EDIGenie | Searching Survivor