Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Difference between line type and internal table?

Former Member
0 Likes
515

Hi..

I wanted to know, what is the difference between Line type and Internal Table?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

Hi,

Before the 4.7 release in SAP if we want to define an internal table we have to write the defination using the occurs statement and we need to define all the fields using INCLUDE STRUCTURE or indidually all the fields ine by one.

From 4.7 release of R/3 SAP introduced the Line type concept and it's part of the ABAP OOPS concept. for internal table defination we don't need to use the occur statements. Instead INCLUDE structure we need to create a Line type for that structure in Se11 and then we can define the internal table like :

DATA : ITAB TYPE TABLE OF <LINE_TYPE>.

Only thing is this table will be a table without header. So for internal table processing we need to define a work area structure of type line of line type . EX:

DATA: WA_ITAB TYPE LINE OF <LINE_TYPE>.

Hope this helps.

Thanks,

Greetson

2 REPLIES 2
Read only

Former Member
0 Likes
472

Hi,

Before the 4.7 release in SAP if we want to define an internal table we have to write the defination using the occurs statement and we need to define all the fields using INCLUDE STRUCTURE or indidually all the fields ine by one.

From 4.7 release of R/3 SAP introduced the Line type concept and it's part of the ABAP OOPS concept. for internal table defination we don't need to use the occur statements. Instead INCLUDE structure we need to create a Line type for that structure in Se11 and then we can define the internal table like :

DATA : ITAB TYPE TABLE OF <LINE_TYPE>.

Only thing is this table will be a table without header. So for internal table processing we need to define a work area structure of type line of line type . EX:

DATA: WA_ITAB TYPE LINE OF <LINE_TYPE>.

Hope this helps.

Thanks,

Greetson

Read only

Former Member
0 Likes
471

Think of line type as the column heading of a bunch of rows in an Excel spreadsheet.

Think of an internal table as the rows themselves in a 2-dimensional structure, based on the line type.