Skip to Content
avatar image
Former Member

internal table

what is the diffrence between structure and internal table?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 20, 2007 at 04:44 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 04:46 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 04:47 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 04:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 04:53 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded