2009 Feb 16 6:06 AM
Hi all.
Can you pls let me know how to delete all the records from database table.Thanks in advance.
Thanks & Regards,
sami.
2009 Feb 16 6:07 AM
hi,
Delete <database-tab>.in program.
Thanks
Sharath
2009 Feb 16 6:07 AM
2009 Feb 16 6:08 AM
Hi SAMI ,
You try this code -
DELETE FROM dbtab_name.Regards
Pinaki
Edited by: Pinaki Mukherjee on Feb 16, 2009 7:12 AM
2009 Feb 16 6:08 AM
Hi Sami,
Use DELETE command. Keep ur cursor on DELETE, press F1 and you will get the syntax for DELETE.
Thanks,
Ibrahim
2009 Feb 16 6:09 AM
2009 Feb 16 6:09 AM
Hi Sami,
You can use
DELETE FROM sflight.or you can specify the where condition.
Hope your query is resolved.
Have a best day ahead.
2009 Feb 16 6:10 AM
(this can be along way to do.)
u can fetch all the recoreds into an internal table. loop at itab.
DELETE itab FROM 1.
endloop.
modify database table from itab.
Edited by: Kalyan Chakravarthi on Feb 16, 2009 7:13 AM
2009 Feb 16 6:11 AM
Hello,
DELETE { {FROM tgt [WHERE sql_cond]}
| {tgt FROM source} }.
check this....
2009 Feb 16 6:12 AM
2009 Feb 16 6:15 AM
Hi,
To delete data from the data base.
Simply wirte
Delete dbtab. " delete is the key word dbtab pass the database table name
Thanks
Arun
2009 Feb 16 6:17 AM
Hi,
Go to transaction SE14, select delete data radio button and click on Activate and Adjust database.
Regards.
2009 Feb 16 6:18 AM
Hi Sami,
I think you should not remove the habit of reading the SAP help provided just because you get answers in SDN...for finding formulas you can always refer help, because it might give you a perfect syntax based on the requirement as in SDN you will ask for some requirement and if its not clear you may end up getting an incorrect syntax...
just write the keyword delete in the ABAP editor and then press F1, you can get all the information..
Regards,
Siddarth
2009 Feb 16 6:18 AM
Sami,
before even considering of deleting any records from a database table, you might wanna think about the following. If there any other tables, referencing the table you are trying to delete the records from, this will have a major impact on the integrity of your database.
As a rule of thumb: Never ever delete any records from database by using the DELETE statement, unless you are absolutely sure this has no further impact. In most cases, this will only be when you are doing this on a custom table (a non-standard SAP table).
So in case of standard table, try to find the standard delivered function modules for this.
Just a word of advice.
2009 Feb 16 6:22 AM
Hi.
Just write the following
DELETE FROM (NAME OF THE TABLE).
DELETE FROM MARA. (Where mara is the name of the d/b table)
You can even add the where condition based on your requirent for example you won to delete specific records
DELETE FROM MARA WHERE MATNR = -
.
Regards
Sumeet malhotra
2009 Feb 16 6:23 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |