Application Development and Automation 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: 
Read only

Importing data

Former Member
0 Likes
494

Hi Experts,

I have thousand of records need to insert to database.

However, I only know how to insert to database line by line.

May I ask is there a faster way to import data to database?

BR,

King

1 ACCEPTED SOLUTION
Read only

ramakrishnappa
Active Contributor
0 Likes
470

Hi King,

I think you need to save multiple records into a database table at a time.

Hope the below statement would help you.

MODIFY ztable FROM TABLE lt_my_data.

Regards,

Rama

3 REPLIES 3
Read only

ramakrishnappa
Active Contributor
0 Likes
471

Hi King,

I think you need to save multiple records into a database table at a time.

Hope the below statement would help you.

MODIFY ztable FROM TABLE lt_my_data.

Regards,

Rama

Read only

Former Member
0 Likes
470

Hi,

You can collect the all the records into one internal table and perform the insert option at once.

I mean just collect the all relevant information  with in the loop. Perform the INSERT after the loop.

* No need to perform update record by record!

INSERT DBTABLE FROM TABLE ITAB.

COMMIT WORK.

Read only

Former Member
0 Likes
470

Hello,

Whether you want to update custom database table or Standard data base table ????

For custom database table

through Programmatically you can insert the record using modify or append statements

There are some ways of update the standard database table.

1.Through Programmatically you can insert the record.

2.Based on availability of BAPI, you can add records using BAPI.

3. You can use the BDC and update record to database record.

Please explain what is your exact requirement means whether you want update records for material creation or sales order data etc...