‎2008 May 05 5:20 AM
What is the difference between these statement ?
TYPES: BEGIN OF mytext,
number TYPE i,
name(10) TYPE c,
END OF mytext.
TYPES mytab TYPE STANDARD TABLE OF mytext WITH DEFAULT KEY.
thanks for your help.
-siva
Edited by: Sivanantham kandan on May 5, 2008 6:23 AM
‎2008 May 05 5:50 AM
Hi Siva,
TYPES: BEGIN OF mytext,
number TYPE i,
name(10) TYPE c,
END OF mytext.
TYPES mytab TYPE STANDARD TABLE OF mytext WITH DEFAULT KEY.
The fiirst one is a structure with two fields namely number and name
The other one is an internal table with the type of the structure and the first field as the key.
Pls reward if useful.
THanks,
Sirisha.
‎2008 May 05 5:24 AM
TYPES: BEGIN OF mytext,
number TYPE i,
name(10) TYPE c,
END OF mytext. -
> Declaring an internal table
data : mytab TYPE STANDARD TABLE OF mytext WITH DEFAULT KEY. ---> Creating Data object
Regards
Kannaiah
‎2008 May 05 5:25 AM
earlier one is used to define customized type... the late one is to use standard data type available...
‎2008 May 05 5:26 AM
Hi,
In first type statement "A structure is made in which the fields are directly attached to the data element"
In second statement "A table is created of the above defined structure with default key as the first field of the table".
reward if helpful,
kushagra
‎2008 May 05 5:29 AM
Hi Sivanantham,
TYPES: BEGIN OF mytext,
number TYPE i,
name(10) TYPE c,
END OF mytext.
This defines a structure with two fields.
TYPES mytab TYPE STANDARD TABLE OF mytext WITH DEFAULT KEY.
This creates a table for the above defined structure.
Hope it helps.
Regards
Hemant Khemani
‎2008 May 05 5:50 AM
Hi Siva,
TYPES: BEGIN OF mytext,
number TYPE i,
name(10) TYPE c,
END OF mytext.
TYPES mytab TYPE STANDARD TABLE OF mytext WITH DEFAULT KEY.
The fiirst one is a structure with two fields namely number and name
The other one is an internal table with the type of the structure and the first field as the key.
Pls reward if useful.
THanks,
Sirisha.
‎2008 May 07 1:03 PM