09-18-2008 12:53 PM
hi
how can we insert data in standard table directly.
pls reply urgently.
09-18-2008 12:55 PM
09-18-2008 12:55 PM
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...
09-18-2008 1:02 PM
Hi
In ur table having table maintance genarator avaialble r not(maintance view).Otherwise directely not possible to upload directely.
Regards:
Prabu
09-18-2008 1:08 PM
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
09-18-2008 1:16 PM
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