Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8545

Re: With Header Line in OO context

$
0
0

Hi Soma

Though it is possible in normal ABAP coding , Internal Table with Header Line is obsolete in OO context. and not recommended.


internal tables with Header line

<<  No Need of explicit work area, by default header line acts as work area

 

 

Internal tables without header line

<< work area required for processing the internal table like read/modify etc.

 

 

 

 

 

 

 

An internal table with header line consists of a work area (header line) and the actual table body. You address both objects  using the same name. The way in which the system interprets the name depends on the context. For example, the MOVE statement applies to the header line, but the SEARCH statement applies to the body of the table.

 

To avoid confusion, you are recommended to use internal tables without header lines. This is particularly important when you use nested tables. However, internal tables with header line do offer a shorter syntax in several statements 

( APPEND, INSERT, MODIFY, COLLECT, DELETE, READ, LOOP ).

 

Within ABAP Objects, you can only use internal tables without a header line. You can always address the body of an internal table <itab> explicitly by using the following syntax: <itab>[].  This syntax is always valid, whether the internal table has a header line or not.


Viewing all articles
Browse latest Browse all 8545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>