abapinternal-tablessap-data-dictionary

Syntax for creating internal table from existing database table?


I'm new to ABAP. Started learning about internal tables. I was reading on the ways to create internal tables.

I came across the following syntax to create an internal table from an existing database table:

data: it_mara type table of mara.

I'm confused since mara is a table and if both l.h.s and r.h.s are of the same type then shouldn't it be just:

data: it_mara type mara.

What is the need to convert mara into a table when it is already a table?


Solution

  • MARA is a transparent table which means that it functions at the same time as the structure type MARA. This is the way SAP works. :)