SAP DATA DICTIONARY
 
 
 
 
 
 
 
 
 
 

  SAP REPORTS
 
 
 
 
 
 
SAP ABAP Internal Table

SAP ABAP internal table is a dynamic sequential dataset in which all records have the same structure and a key. The internal tables is used as a arrays. You can read individual records of internal table using either the index or the key using READ statement. You can also loop the internal table to read all the records one by one.

The data type of an internal table is fully specified by its line type, key, and table type.

There are three types of internal table. They are - Standard Tables, Sorted Tables, and Hashed Tables.

The difference between standard tables, sorted table and hashed tables are -

    Standard Table
      - It has an internal linear index.
      - The system can access records either by using the table index or the key.
      - The response time for key access is proportional to the number of entries in the table.
      - You cannot specify a unique key. It has always non-unique key.


    Sorted Table
      - Sorted table are always saved sorted by the key. They also have an internal index.
      - The system can access records either by using the table index or the key.
      - The response time for key access is logarithmically proportional to the
         number of table entries, since the system uses a binary search.
      - The key of a sorted table can be either unique or non-unique. When you
         define the table, you must specify whether the key is to be UNIQUE or NON-UNIQUE.

    Hashed Table
      - Hashed tables have no linear index. You can only access a hashed table using its key.
      - The response time is independent of the number of table entries, and is constant,
         since the system accesses the table entries using a hash algorithm.
      - The key of a hashed table must be unique.
      - When you define the table, you must specify the key as UNIQUE.


What is Extracts? How it is different from internal table?
Extracts are dynamic sequential datasets in which different lines can have different structures. Each ABAP program may currently only have a single extract dataset. You cannot access the individual records in an extract using key or index. Instead, you always process them using a loop.

How to suppress the assignment of lines in LOOP statement?
If you do not want to transfer the contents of the internal table line to a work area or do not want to assign them to a field symbol, you can use the following statement:

      LOOP AT itab TRANSPORTING NO FIELDS condition.

 
 

  

  

  

  

  

  



                                                      Copyright © 2011 SAPApplication.com. All rights reserved.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/psarv/public_html/dbanalyticsconnect.php:2 Stack trace: #0 /home/psarv/public_html/st-page-counter.php(1): include() #1 /home/psarv/public_html/footer.php(32): include('/home/psarv/pub...') #2 /home/psarv/public_html/sap-abap-it.php(120): include('/home/psarv/pub...') #3 {main} thrown in /home/psarv/public_html/dbanalyticsconnect.php on line 2