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

internal table and structure

Former Member
0 Likes
684

Hi guru,

1. I understood Internal table is used to take the copy of the existing table and

Structure is the skeliten of the internal table and it won't have the memory space.

2. I am not able to get where to use structure and where to use internal table.

will any of u plz clarify my doubts.

Thanks & Regards,

Kalyani..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

Hi Kalyani,

Structures are created in Data dictionary and are persistent. whereas internal table are confined to a program and exist till the execution of the program.

Regards,

Younus

Reward Helpful Answers!!!

5 REPLIES 5
Read only

Former Member
0 Likes
660

Hi Kalyani,

Structures are created in Data dictionary and are persistent. whereas internal table are confined to a program and exist till the execution of the program.

Regards,

Younus

Reward Helpful Answers!!!

Read only

dani_mn
Active Contributor
0 Likes
659

HI,

You will use structure if you have to hold data of only one row. if data is more than one row than you have to use internal table.

Structure can also be used to hold the data of internal table header data. as object oriented does not support internal tables with header line.

LIke

*this is internal table.

DATA: itab like standard table of tab.

*this we can say structure or work area.

data: itab_wa like line of itab.

Regards,

Read only

Former Member
0 Likes
659

Structure can also containmemory space.

Structure is used to have a single record, internal table is for no. of records.

Structure is also used to define an internal table using 'DATA' statement.

<u><b>Award if useful</b></u>

Sudheer

Read only

Former Member
0 Likes
659

hii

whenever you want to store the data then you have to use internal table

when you want to define the internal table with any particular fields then use structures and use table type structure

vikaas

Read only

Former Member
0 Likes
659

U need to <b><u>award points for all the useful replies</u></b>, and also u nees to <b><u>mark it as Answered if ur problem is solved</u></b>.

Regards

Sudheer