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

Former Member
0 Likes
538

hi Expert,

what is different b/n internal table and fieldstring?

with regards

rajarao

6 REPLIES 6
Read only

Former Member
0 Likes
517

Hi,

The header line is a field string with the same structure as a row of the body, but it can only hold a single row.

but in the Internal table we can hold lot of number os records in it

Regards

Sudheer

Read only

Former Member
0 Likes
517

Hi,

An Internal table is a temporary table sotred in RAM on application server, it is created and filled by a program during execution and is discard when program ends

Internal table consists of HEADER and BODY or only BODY.

HEADER nothing but field string which it stores only one record and

So the header line is a field string with the same structure as a row of the body, but it can only hold a single row.

but in the Internal table it can hold number of records in it.

Filed stirng also called as structure

<b>Filed stirng holds one record.

Internal table holds multiple records.</b>

<b>Reward with points if useful.</b>

Regards,

Vijay

Read only

Former Member
0 Likes
517

Field strings are a special form of dynamic string, which

have all the capabilities of a dynamic string, but may also

represent a defined part of a random file buffer or a

defined part of a dynamic string.

Field strings must always be declared using LOCAL.They may

be used in the same manner as a dynamic string variable, or

they can be bound to a file buffer for an open random-

access file or a dynamic string using a corresponding FIELD

statement. Each field string occupies sixteen bytes of

memory, and requires slightly more general overhead than a

regular dynamic string variable

The TABLES statement automatically defines a field string .

they are mainly used in screen painter.

Read only

Former Member
0 Likes
517

Hi

internal table is a table with n fields and n lines of data.

field string is a structure with n fields and only 1 line of data

please refer to this sdn link for more details it will clear all your doubts

reward if helpful

vivekanand

Read only

0 Likes
517

hi,

chk this.

DATA: begin of int_table occurs 0,

field1 like table-field1,

field2 like table-field2,

end of int_table.

here an internal table with work area is created.This work area is the fieldstring.

int_table[] - > content or body of int_table.

int_table - > work area.

if u use itab then its header line ,

if u use itab[] then it refers to the body

Read only

Former Member
0 Likes
517

Hi,

INTERNAL TABLE

-


internal table is a Data Object of variable length.

-> INDEXE TABLE

|------> Standard Table --> can be accessed with index,key

| prefreed is Index

|------> Sorted Table --> can be accessed with index,key

key. prefreed is Key (Binary search)

-> HASHED TABLE --> can be accessed with hash key

key. prefreed is Key

the next question is field symbol i think. if its

FIELD SYMBOLS

-


Field symbols allows you to access an assigned data object. with this we can create a dynamic internal tables.

Use the ASSIGN statement to assign a data object to the field symbol <fs>.

The statement UNASSIGN <fs>.sets the field symbol <fs> so that it points to nothing.

thanks