Internal tables are structured data types provided by ABAP/4. Internal tables are instances of database tables which are created at run time with 8KB size. Internal tables cannot be accessed outside the program environment. This post gives the information about SAP Internal tables.
• Internal tables are used to reorganize the contents of database tables according to the needs of your program
• Internal tables are used to perform calculations on subsets of database tables.
• The number of lines in an internal table is not fixed.
• Internal tables exist only during the run time of a program.
Internal tables are a means of storing data with a particular structure in ABAP memory. The data is stored line-by-line in memory, and each line has the same structure. The individual columns of a line are known as the columns of the internal table.
An internal table is one of the two structured data types in ABAP/4.
• Internal tables exists only during the runtime of the program.
• Number of lines of an internal table are not fixed.
• There are additional commands to loop through internal tables and process records one by one.
• As Internal Tables are held in the current programs memory space,the access time to read and process the data stored in internal tables is less than the read of a database table.
Structure of Internal Tables
An Internal Table has a header record and individual item records.
The Header record is a temporary “holding” record for the Internal Table.
The item records are the records already stored in the Internal Table.
Accessing Internal Tables
• For accessing Internal Tables we have to use a work area as an interface for transferring data to and from the table.
• You access internal tables line by line. You must use a work area as an interface for transferring data to and from the table.
• When you read data from an internal table, the contents of the addressed table line overwrite the contents of the work area.
• When you write data to an internal table, you must first enter the data in the work area from which the system can transfer the data to the internal table.
"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.