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: 

can we insert data directly in standard table

Former Member
0 Kudos

hi

how can we insert data in standard table directly.

pls reply urgently.

5 REPLIES 5

Former Member
0 Kudos

No you shouldnt , use BDC , BAPI and other techni

Former Member
0 Kudos

Check if there is any maintenance view provided.

Else write a report containing the INSERT statement and run it...

But this is not recommended for SAP standard tables...

Former Member
0 Kudos

Hi

In ur table having table maintance genarator avaialble r not(maintance view).Otherwise directely not possible to upload directely.

Regards:

Prabu

Former Member
0 Kudos

Hi Sapna,

Direct Insert shouldn't be used to Standard SAP Tables.

It can be used only for Custom/Z tables.

For inserting values to Standard SAP tables, either you have to use BDC for respective T.Codes.

Hope, it will help you.

Regards,

Anbalagan

Former Member
0 Kudos

Hi sapna yes u can insert data to the SAP tables, as shown below...

use the table mara in the place of m

REPORT ZTEST_INSERT.

TABLES: <m>.

DATA: wa_m TYPE <m>.

wa_m-ernam = 'ZTEST'.

insert into <m> VALUES wa_m.

if sy-subrc = 0.

WRITE / 'Records inserted Successfully'.

ENDIF.

reward if usefull,

Vishnu. R

Edited by: vishnu ramanathan on Sep 18, 2008 2:17 PM