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

Insert Record into Standard Table...

Former Member
0 Likes
3,311

Dear All,

Which statement I have to use to insert a new record into SAP Standard Table.

Regards.

7 REPLIES 7
Read only

Former Member
0 Likes
1,082

USe BAPIS or Direct Update FM's

Dont use direct update to SAP.

Which table you want to insert? and What data you want to insert??

VJ

Message was edited by: Vijayendra Rao

Read only

Laxmana_Appana_
Active Contributor
0 Likes
1,082

Hi,

you can use normal insert statement to do this . but if you want to insert records into standard SAP table , then use any FM or BAPI to add new records to the table.

syntax :

insert <DBtable> from <workarea>

insert <DBtable> from table <internal table>

Regards

Appana

Read only

Manohar2u
Active Contributor
0 Likes
1,082
Read only

Former Member
0 Likes
1,082

Hello Davabap

see the syntex and example.

syntax :

insert <DBtable> from <workarea>

insert <DBtable> from table <internal table>

e.g.

INSERT kna1 FROM TABLE itab ACCEPTING DUPLICATE KEYS.

Here itab has same structure as kna1.

Read only

0 Likes
1,082

The insert is not different from any other insert statement however, direct insert in SAP standard should be done only when none of the BAPI/FMs are helping you out. Standard BAPI/FMs does a lot of validations and your insert might not do all those validations.

hith

Sunil Achyut

Read only

abdul_hakim
Active Contributor
0 Likes
1,082

hi

you can use the INSERT Statement..

INSERT <dbtable> FROM <wa>.

INSERT <dbtable> FROM TABLE <itab>.

Cheers,

Abdul Hakim

Read only

0 Likes
1,082

Proiorities

1) Check if transaction exists that will help you update the table.

2) Check Bapi/ FM which will be helpful in updating the table standard way.

3) Use modify command with by making internal table which is having same columns as of table.

4) Use native commands.

Hope this clarifies the issue. Please note this is as per my knowledge and understanding. Actual method may be different.

Geeta.

Note : Please reward points if it helps.