Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Copying data from a table in the Database to an internal table.

Former Member
0 Kudos

Hello,

How do I copy data that is a table that is in the database and and then load the data to an internal table in the ABAP/4 Aditor.

Please help.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

This is the sample code to transfer the MARA table data to Internal table itab.

Data: itab like mara occurs 0 with header line.

Select * from mara into table itab.

Regards,

Satish

2 REPLIES 2

Former Member
0 Kudos

Hi,

This is the sample code to transfer the MARA table data to Internal table itab.

Data: itab like mara occurs 0 with header line.

Select * from mara into table itab.

Regards,

Satish

Former Member
0 Kudos

hi,,

do this way ...


tables : mara.
 
 parameters : p_matnr like mara-matnr,
                
 start-of-selection.
 select <fields>  from mara into table it_mara
     where matnr = p_matnr.
  if sy-subrc = 0.
 endif.