• ABAP Online Training @ $50

    Now you can learn ABAP by watching and listening video classes by experienced consultant.

  • ABAP Tutorials N Materials

    Read, Surf and Download useful ABAP tips, tutorials, code and download many eBooks and documents free

  • Latest ABAP Job in India

    Get all latest opening for SAP ABAP and related jobs, vaccancies across India and apply for the same.

    Monday, May 14, 2012

    We can always follow the best practise rules while dealing with abap dictionary objects. While selecting data form database tables, We have to follow the below rules :

     

    • Do not use SELECT * from….ENDSELECT... while selecting data from any table. This acts like a loop and fetch all records. For few fields we can specifically SELECT only those fields.
    • Use WHERE clause in your SELECT statement to get specific records.
    • Always try to use all the primary keys of the table in the WHERE clause to get best result.
    • In case all the primary keys are not available, use UP TO 1 ROWs.
    • Avoid using nested SELECT statement, SELECT within Loops.
    • Avoid using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO TABLE.
    • Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot. And before using FOR ALL ENTRIES always check whether the table is initial or not.
    • Avoid using ORDER BY in SELECT statements (instead, sort the resulting internal table), because this may add additional work to the database system which is unique, while there may be many ABAP servers.
    • Avoid Executing a Select multiple times in the program. Instead of that we can create a subroutine and use that multiple times if required.
    • For SELECT from multiple tables try t search for any combine VIEW, if not available then go for Inner JOIN.
    • While reading data from internal tables, always sort the table and try to use BINARY SEARCH.

     

    These are the few points we should remember while handling data dictionary.

    0 comments:

    Post a Comment

    Easy2learnabap.co.in @ 2012 All product names on this web site are trademarks of the companies that own them .

    Easy2learnabap.co.in is not affiliated with SAP AG in any way. SAP AG is the registered trademark holder of SAP, SAP R/3, mySAP, ABAP, xApps, NetWeaver, and other proprietary terms.

    The technical information on this site is verified to the greatest extent possible, however, any information found on this site is used at the site visitor's own risk. All the tutorials are collected from various sources, if anyone is having problem with the content, report this to us. We will take action accordingly.

    Easy2learnabap.co.in reserves the right to correct any errors or omissions in any portion of this site at any time without obligation.

    This website is created to teach people about ABAP technology. The Video contents provided in Premium service are completely owned by us and copyrighted.