‎2007 Sep 13 11:51 AM
hi Expert,
what is different b/n internal table and fieldstring?
with regards
rajarao
‎2007 Sep 13 11:58 AM
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
‎2007 Sep 13 12:06 PM
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
‎2007 Sep 13 12:06 PM
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.
‎2007 Sep 13 12:10 PM
‎2007 Sep 13 12:15 PM
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
‎2007 Sep 13 12:35 PM
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