Application Development 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: 

internal table

Former Member
0 Kudos

what is the diffrence between structure and internal table?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

structure is central object we can use that from any program.and it will hold only one record(row) of data.

internal table is only useful with in the program in which u have defined.and it will hold number of records(rows).

<b>reward if helpful</b>

rgds,

bharat.

5 REPLIES 5

Former Member
0 Kudos

Hi,

structure is central object we can use that from any program.and it will hold only one record(row) of data.

internal table is only useful with in the program in which u have defined.and it will hold number of records(rows).

<b>reward if helpful</b>

rgds,

bharat.

former_member223537
Active Contributor
0 Kudos

Structure holds only one record at runtime.

Internal table can hold multiple records at runtime. Workarea of internal table holds only a single record, same as structure.

Former Member
0 Kudos

Hi ,

An internal table can contain many record where as a structure can contain only one record .

Internal table declaration:

Data : begin of itab occurs 3 ,

ebeln type ekpo-ebeln,

ebelp type ekpo-ebelp ,

end of itab .

work area declaration

Data : begin of itab ,

ebeln type ekpo-ebeln,

ebelp type ekpo-ebelp ,

end of itab .

Regards

Former Member
0 Kudos

HI,

structure will be a reference .

but internal table will be having the records in the run time

if an internal table format is being used in several programs

we wil declare it globally in the se11 transaction so that every one can use it

but an internal table can use the format of a structure and can store the data

in the run time

structure will not store data but they too can store data only in the runtime

they can store one record at a time

but the internal table can store more than one record and max depends onthe

how we declare the internal table

like

begin of itba occurs 0 ( dynamic memory)

like this ...

structure will be created in se11 transaction

internal tables wil be creatd in the programms

and strurctures can be used as work areas also in the run time

thanks & regards,

Venkatesh

Former Member
0 Kudos

hi,

structure can't store any data

structure can be useful for creating a type of it.

it doesn't occupy any memory.

it doesn't have diff types as with internal tables.

internal tables are used for storing data temporarily.

internal tables are created from existing sap objects , structures, or user defined.

it occupies memory [ using occurs keyword].

internal tables are of two types

1. internal table with out header line.

2. internal table with header line.

if helpful reward some points.

with regards,

Suresh Aluri.