‎2007 Feb 16 9:39 PM
Hi
How to define a internal table for a data base table .
i need all the fields available in the database table also should available in the internal table without declaring each fields.
please hlep me
KP
‎2007 Feb 16 9:44 PM
‎2007 Feb 16 9:42 PM
Hi KP,
You can use include structure statement.
Please check this sample code.
DATA: BEGIN OF I_MARA OCCURS 0.
INCLUDE STRUCTURE MARA.
DATA: END OF I_MARA.
Regards,
Ferry Lianto
‎2007 Feb 16 9:44 PM
‎2007 Feb 16 9:45 PM
‎2007 Feb 16 9:49 PM
Hi,
another way ..
DATA: ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.
Thanks,
Naren
‎2007 Feb 16 9:55 PM
hi
you could use the below format..
data itab like table of mara.
data wa like line of itab.
or
data itab like table of mara with header line.
Cheers,
Hakim