SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software Kodyaz SAP and ABAP Programming Tutorials
Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Windows, Windows Phone, SAP and ABAP, like SAP UI5, Screen Personas, etc.




CRM Companies List
Web Based CRM Software


Delete All Data from SAP Database Table

ABAP developers can delete all data from SAP database table using one of two methods. First method is to create an ABAP program which runs DELETE ABAP command to remove all data from database table. And the second method is to use SAP transaction SE14 ABAP Dictionary Database Utility to delete data from ABAP table.

As summarized in introduction of this ABAP tutorial, SAP developers or SAP professionals can choose one of two methods to delete data from database table.
To run ABAP program which includes the ABAP statement DELETE or to call SAP transaction SE14 Database Utility.


Execute DELETE Command to Remove Data from ABAP Table

Create a custom ABAP report and execute following ABAP program code.
"DELETE FROM [tablename]" ABAP code deletes all rows from database table.

delete from /BSHS/TR_PFORM_H.

I want to truncate table data for the following ABAP table

SAP table to delete all its data using ABAP program

After I execute "Delete From" command, as seen in below screenshot all data is deleted.

delete SAP table data using ABAP


SAP Transaction SE14 to Delete Data from Database Table

Use SAP transaction code SE14 "ABAP Dictionary: Database Utility" SAP screen.

Here is my demo table which I want to delete all entries in it.

delete data from ABAP database table using SE14 utility

Type the ABAP database table name and press Enter

remove all table data using SE14

Be sure that you select option "Delete data"
Then press "Activate and adjust database" button.

SAP SE14 transaction: Utility for database tables

A confirmation request will be displayed to delete table data and truncate all data in the database table. Approve the deletion by pressing Yes

Adjust and Delete data from ABAP table using SE14

When I check the number of records in the database table using SE11, the query returns 0 entries.

delete table data using SE14 transaction in SAP






SAP Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table






Related Articles and Tutorials(http://www.kodyaz.com/sap-abap/delete-table-data.aspx)
Email Spool Request using SAPOffice - Spool to PDF
ALV Grid Color - Table Row Background Color in ALV List
ABAP Runtime Error ST22 Transaction using Short Dump Analysis
ABAP Authority-Check Object For User Other Than Current
Check Existence using ABAP SELECT
Convert the table using the Database Utility (SE14)
Create Search Help in ABAP for Web Dynpro Component
Delete Entries in NAST Table using RSCLNAST ABAP Program
Enable Remote Debugging in ABAP using RSRDEBUG
Export SAP Data to Fixed Length Text File
ABAP LOOP Statement with At New and At End
Primary key change not permitted for value table
ABAP Tutorial for SET and GET PARAMETER ID Command
Unicode Character Problem in IFS File Interface
Function module is not released for the Internet
How to Set Start Transaction in SAP GUI
How to find string length using STRLEN ABAP string function
ABAP Submit Report to Run Another ABAP Program within Code
Web Dynpro Text Translation using Assistance Class
Code Inspector: Unsecure use of FOR ALL ENTRIES
Update Database Table Data using ABAP SE16N_INTERFACE
VF31 SAP Transaction to Reprocess Billing Output Messages
Create Transaction Code for Web Dynpro Application
Create SAP Transaction to Maintain ABAP Table using SM30
Database Hint Pseudo-Comment for SAP Code Inspector
Delete All Data from SAP Database Table
List Locks in SAP system using SM12 Transaction Code
Prevent DYNPRO_SEND_IN_BACKGROUND Error in Background Process
How to Execute SAP Program in Background Task
How to Find Internal Table Row Count in ABAP
How to Find SAP Role Users Assigned for Transaction Code
How to Create SAPScript Text using SO10 Transaction Code
Main program for include RV61Bxxx not found
Move Minus Sign from Right to Left of Negative Number in SAP Smartform
ABAP Tutorial - SAP Split and ABAP Split String Function
ABAP Debugging using Log Point and Break Point
ABAP RegEx for ABAP Regular Expression to fetch Date from String
ABAP Shared Memory Objects Tutorial with Sample ABAP Code
Add Web Dynpro Applications to SAP Favorites Menu
Free Adobe LiveCycle Designer Download
SAP Code Inspector for ABAP Break-Point Statement
Call Function Module using RFC Destination in ABAP
CALL_FUNCTION_NOT_FOUND ABAP Run Time Error
Get Fullname of SAP user using Function Module in ABAP Program
How to Debug Popup Screen in ABAP
How to Transport SAP Graphics using SE78 Transaction
Compare Code in ABAP using SE39 SplitScreen Editor
Connect SAP from Eclipse using ABAP Project
Convert Smartform to PDF in Print Preview Mode
ABAP Tutorial - ABAP String Split Example Code
Complete List of SAP Modules
How to Upload Data to SAP from Excel File using alsm_excel_to_internal_table Function Module
ABAP - Create Hierarchy Tree List using rs_tree_construct, rs_tree_list_display and snodetext
Upload Data from Excel File in ABAP using TEXT_CONVERT_XLS_TO_SAP
Create CL_GUI_ALV_GRID ALV Grid Column Header using ABAP Data Element
How to Display SAP Graphics using SE78 Transaction Code
SAP ABAP Tutorial - ALV Grid Example with cl_gui_alv_grid and Screen Painter
SAP Smartforms - How to Call Smartform within ABAP Program
Create Business Object in SAP
Create SAP Dynamic Variant using Date Calculation
Create Scheduled Job using SAP SM36 Transaction
SAP Tutorial - Convert Spool Request to PDF File using RSTXPDFT4 ABAP Report
Set Default Single Values List for SAP Selection Screen Parameter
ABAP Try Catch for exception is neither caught Code Inspector Error
Add Year, Month or Day to Date Variable in ABAP using RP_CALC_DATE_IN_INTERVAL
Read Address Data using FM ADDR_GET instead of Querying ADRC Table
Change Fields for Selection in SE11 ABAP Data Browser
How to Spell Numbers using ABAP Spell_Amount Function Module
Convert Sales Unit into Text using Function Module in Target Language
ABAP Code Inspector Check Variants for HANA Migration Optimization
Create Transport Request for Text Translations using RS_LXE_RECORD_TORDER
Dynamic Programming using Field Symbols in ABAP Reports
Execute ABAP Program Automatically After Transport Request Import
Export Graphics from SE78 SAP Form Graphics Administration using ABAP program
How to Export IDOC as Excel and Save as Local File from WE02 Transaction
Export SAP Spool Requests as PDF using SP01 Transaction
SAP Purchase Order Tables, Transaction Codes and Output
Export Table Contents into Text File and Download File
SE63 Smartform Translation and Export using SLXT Program
SAP Code Inspector: Select-Statement can be Transformed
How to Delete Standard Text using SO10 SAP Transaction
How to Find User Exits in ABAP Codes of SAP Transaction
Read Integer and Decimals of a Numeric Value in ABAP Programming
Import and Export SO10 Standard Text using RSTXSCRP ABAP Program
Business Document Service Error: Error when accessing graphic (BDS), RC = 5
Read Pricing Condition Text using ABAP in SAP Sales Document Output
Read Text Symbols in Specific Language using ABAP RS_TEXTPOOL_READ
Get SAP Document Flow using SD_DOCUMENT_FLOW_GET ABAP Function Module
Graphics White Background Displayed Grey on SAP Smartform Output
Search and Find SAP Transaction Code using SE93 or SEARCH_SAP_MENU
SAP Code Inspector Error: Select For Cluster Table Without Order By
ABAP Select Statement using Space instead of Null or Initial
ABAP CONVT_NO_NUMBER Error on SP01 due SP01_WARN Parameter
Transport Variants of an ABAP Program into Workbench Request
TVAP Item Category and SAP Table TVAPT for Text Translations
Unlock Objects Locked in Request or Task using Transport Organizer Tools
Update Multiple Variables in ABAP Select Single Statement
Find Number of Rows Selected in ABAP SELECT Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement
Activate Fixed Point Arithmetic Flag for Open SQL Statement


Copyright © 2004 - 2017 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems