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

How to insert data in database table

Former Member
0 Likes
1,269

Hi experts,

How to insert data into database table using internal table from function module.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
913

Hi,

As per my understanding are you looking for the complete API feature of data insertion into the database using the Locking Mechanism? If yes, then you need to create a Lock Object using the Primary keys of the Primary Table and Secondary Tables. You need to call the lock object first and then you need to make the entry into the table. This principle is based on 'All or None Concept'.

For the insert Statement Key word you can have a look at the following link:

http://help.sap.com/abapdocu/en/ABAPINSERT_SOURCE.htm

Hope this helps.

Thanks,

Samantak.

4 REPLIES 4
Read only

Former Member
0 Likes
913

hi,

Use INSERT command to upload data into database table. Use F1 to explore more options

regards

Mudit

Read only

Former Member
0 Likes
913

hai ,

in function module also use the insert statement

same as u do normaly

afzal

Read only

Former Member
0 Likes
913

Hi,

You have an ABAP statement for this. Please use the below statement for your requirement.

INSERT dbtab FROM TABLE itab.

Thanks,

Vinay

Read only

Former Member
0 Likes
914

Hi,

As per my understanding are you looking for the complete API feature of data insertion into the database using the Locking Mechanism? If yes, then you need to create a Lock Object using the Primary keys of the Primary Table and Secondary Tables. You need to call the lock object first and then you need to make the entry into the table. This principle is based on 'All or None Concept'.

For the insert Statement Key word you can have a look at the following link:

http://help.sap.com/abapdocu/en/ABAPINSERT_SOURCE.htm

Hope this helps.

Thanks,

Samantak.