2006 Nov 24 11:31 AM
TYPES: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
TYPES: ITAB TYPE TABLE OF LINE.
-
TYPES: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA : ITAB LIKE TABLE OF LINE.
-
DATA: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA: ITAB LIKE TABLE OF LINE.
-
Which is the Correct Declaration of INTERNAL TABLE ?
Thanks in Advance
Krish...
2006 Nov 24 11:37 AM
Hi,
the third declaration i.e.DATA: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA: ITAB LIKE TABLE OF LINE.
is correct but modify it as:
DATA: ITAB LIKE TABLE OF LINE <b>WITH HEADER LINE</b>.
Hope it helps.
Reward if helpful.
Regards,
Sipra
hi,
this declaration is correct.
DATA: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA: ITAB LIKE TABLE OF LINE.
-
regards,
Ajith
mark if useful.
2006 Nov 24 11:32 AM
TYPES: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA : ITAB LIKE TABLE OF LINE.
2006 Nov 24 11:33 AM
Hi,
TYPES: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
Data ITAB TYPE TABLE OF LINE.
is the correct one.
DATA: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA: ITAB LIKE TABLE OF LINE.
will create line as internal table and itab as work area.
Message was edited by:
Jayanthi Jayaraman
2006 Nov 24 11:33 AM
1 .
TYPES: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA : ITAB TYPE TABLE OF LINE with header line.
2.
DATA: BEGIN OF LINE, occurs 0
COL1,
COL2,
END OF LINE.
2006 Nov 24 11:33 AM
hi,
the third one is rite.
1st one creates only table type.
second one will throw an error saying there is no object line.
the third one is perfect
santhosh
2006 Nov 24 11:34 AM
Hi,
The third one is the right option, LIKE you can use for DATA only.
First one creates a TABLE TYPE not the internal table.
Second one is syntactically wrong.
So the third one is correct.
Regards,
Sesh
2006 Nov 24 11:35 AM
hi,
this declaration is correct.
DATA: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA: ITAB LIKE TABLE OF LINE.
-
regards,
Ajith
mark if useful.
2006 Nov 24 11:37 AM
Hi,
the third declaration i.e.DATA: BEGIN OF LINE,
COL1,
COL2,
END OF LINE.
DATA: ITAB LIKE TABLE OF LINE.
is correct but modify it as:
DATA: ITAB LIKE TABLE OF LINE <b>WITH HEADER LINE</b>.
Hope it helps.
Reward if helpful.
Regards,
Sipra
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |