Mass delete records in SAP

Hi,
I am just wondering if anyone can tell me how to mass delete the record in SAP. I mistakenly uploaded like 500 values in a wrong table and want to delete them.
Thank you in advance,
Sunny

Hi,
If u want to delete records in ZTEST table.
Then u can do as
Select * from ztest into table i_ztest.
if sy-subrc = 0.
Delete ztest from TABLE i_ztest.
endif.
Or if u have any dtae field in the table can do as
TABLES SBOOK.
DELETE FROM SBOOK WHERE CARRID = 'LH'      
similarly u can give the where conditon with the specified date.
Do a COMMIT after u delete.
Also check
http://help.sap.com/saphelp_46c/helpdata/en/7e/c81e1f52c511d182c50000e829fbfe/frameset.htm
http://www.sapdevelopment.co.uk/abap/bypass/bp_updtable.htm
Thanks & Regards,
Judith.

Similar Messages

  • Mass deletion of batches - SAP Archiving Object MM_SPSTOCK

    __SAP Archiving Object MM_SPSTOCK (Batches and Special Stocks)__
    Would like to know if there is any standard program or report available through which the batches (to be deleted) can be set with a deletion flag. We are in the process of implementing the archiving object MM_SPSTOCK and the batches have not been flagged. There is no pre-processing job for MM_SPSTOCK that can be used to set the deletion flag for all eligible batches.
    This object MM_SPSTOCK does not have any date or selection criteria for the write job. All batches with set deletion flag will be archived/deleted.
    We are in the process of implementing LO_CHVW (Batch where-used data) for which imlementing MM_SPSTOCK is a pre-requisite.
    Would appreciate any leads around this. Any other suggestions around the MM_SPSTOCK & LO_CHVW will be great.
    Thanks
    Sam

    I am basically looking for a method (program / report) through which mass deletion flag can be set for eligible batches prior to using MM_SPSTOCK archiving object to archving / deleting the batches.
    Thanks
    Sam

  • How to find deleted records in Sap

    Hello,
    i am searching for a possibility, to scan deletionstubs.
    My Problem
    I do have absence 2001 records. Now one record is deleted. In order to find out which record was deleted,
    i have to build before deletion a positive list and compare afterwards, which elements are no longer in the
    list. This is very, very time consuming.
    There are tables in SAP, which hold those deletion entries, but i don't know, which table is used in this
    case.
    I am using the modul HR.
    Thanks a lot for any hints
    bye
    Christian

    Hi Huber ,
    I have no idea which table delete data store. But there are one Standard program RPUAUD00 (Logged Changes in Infotype Data), Transactions code:- PC00_M16_UAUD.
    Pass the selectin screen input  Personnel number - xxxxxxxx , Infotype -2001, Checked the ( Long-term documents & Short-term documents) Both & Unchecked the output in ALV.
    After the output double click the selected record.
    Thanks & Regards
    Rahul

  • Delete record from sap tables

    Hi,
    i wont to delete duplicates recored from sap standard  table,
    i can do that?
    Regards

    Hi Ricardo.
    As you know we can use the concept of DELETE ADJACENT DUPLICATES  FROM with options according to your specifications like
    COMPARING
    OR
    COMPARING ALL FIELDS...   (ADDITIONS).
    But, don't forget to sort the table according to the COMPARISON ORDER.
    Reward points if usefull.
    Regards
    Harsh

  • Mass Deletion Of Unposted Assets

    Does anyone know how to mass delete unposted assets. We have over 3500 assets we need to delete using AS06 will take a long time. Is there a mass delete function in SAP to do this or do we need to write a program. Any ideas would be appreciated. Thanks in advance.

    You can record an ECATT (T Code SECATT) for T Code AS06 and execute it with the flat file containing the list of all assets to be deleted.  An LSMW should work too.
    For ECATT, your client should allow eCATT and CATT (use T Code SCC4 for this).

  • MASS DELETION OF MATERIAL RECORDS

    hi frds,
    is is possible to delete all the material records at single trial (mass deletion of material records).is that any t-code for this.
    is any other way to do this.please advice in this regard.
    your advice is consisdered valuable.
    regards,
    G.V.SHIVAKKUMAR

    No, there is nothing that can do that.
    I know there is a transaction that is able to delete all FI data, but no such transaction available for MM.

  • Mass Deletion of Condition Records

    Hi
    I have created tax condn. records for various combination of plant regions and customer regoins. Can you pls. tell me how can I delete all of them without going to VK12 for each separately? Is there any mass deletion facility. LSMW does not work here since it is not defaulting the region fields.
    Thanks

    answered
    Solution - the values would be replaced once i upload new values th. LSMW
    Thanks

  • Mass deletion of variants for Total Records

    Hi there,
    during tranings we create a lot of variants for the Total Records (UCWB->Analysis->Total Records->Save Variant). Is there a way to do a mass deletion of those variants?
    The standard options of deleting variants only allows to delete one variant per selection.
    We work with a SEM BCS EHP 4.
    Thanks for all help,
    Helge

    Helge
    you can do a mass deletion of variants.
    First you will need to find the program name for the Totals Records.  This can be found from the totals records screen when you click the Get Variant button. Across the top of the dialogue box you will see;
    "Variant catelogue for program XXXXXXXXX". 
    Note this program ID.
    Go to TCode SE38
    Key in the program - make sure the Short description for the Program is "List of Totals Records"
    Check the Variants checkbox
    Click on Display
    From the menu - go Variants > Catelogue
    This should give a list of the variants for the Totals Records. If not then you must have the wrong program.
    Click the button which has the picture of the rubbish bin with the words "Selection Criteria".
    This will then allow you to put a check mark against all the variants you want deleted.
    Click the button which has the picture of the rubbish bin with the word "Variant"
    This will then mass delete your variants.
    Regards

  • Mass delete of condition records

    Hi All,
    Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long. Also please advise that if a record is marked for delete indicator, then can it be used again ? or can i reomve it completely becasue i want to upload again with correct prices.
    Appreciate your help
    SAPXPT

    Hi,
    Let's get one by one.
    > Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long.
    There is no such Transaction available to delete those like in MASS.
    Best thing is to use a LSMW with VK12 transaction.
    > Also please advise that if a record is marked for delete indicator, then can it be used again ?
    Yes, You can.
    Once marked for deletion they won't appear in the sales order automatically. Pricing Analysis will show you like this.
    "Condition record has been deleted"
    If you want to use it again go to VK12, and go in to your condition record.
    Highlight the condition line item and press "Details" button (Magnifying Glass)
    Un-tick the "Deletion lndicator" check box.
    Save.
    Then you can use it again as normal way.
    > can i reomve it completely becasue i want to upload again with correct prices.
    Yes, You can.
    You can remove it completely from the data base. First you have to configuret your condition type in IMG to enable that function..
    Go to V/06
    Select you condition record & go in to details.
    There you get a filed called "delete fr. DB"  under "Master data" section.
    Change it to "A with popup" or "B without popup".
    Which means your going to delete it from the data base. (Where as you cannot use it again, like you do in Deletion indicator)
    Save
    Then come to VK12,
    Go in to your condition record.
    Highlight the condition line item and press Delete button from lower area.
    If you set "A with pop up" in the condition record, you'll get a pop up saying,
    "The condition type XXXX is set so that when the deletion indicator is set, the condition record can be physically deleted from the database.Do you want to delete the condition record physically?"
    Once save system will delete it from the data base.
    If you set "B without pop up", system will delete it without a pop up.
    Hope this helps you !
    Best regards,
    Anupa

  • Mass Delete of BDocs in SAP CRM system

    Dear SDC team,
    We like to hard delete some BDocs which are hanging in the txn SMW01 in CRM 5.2 system.
    As of now we do not see a option to delete these unnecessary BDocs,  as they are in Intermediate state (I04) .
    Please tell us if there any standard report which can be used to do Mass Delete of BDocs in SAP CRM system.
    Or Is there any Tables which need to be emptied .
    Please help ..Points would be rewarded .
    Regards
    Ritvij

    hi
    Concerning the BDOCs without error, there is a job that you can schedule to run daily that cleans the BDocs processed without errors from the database.
    The details of this job are:
    Job name: SMO6_REORG
    Job program: SMO6_REORG
    Variants: SAP_MW_REORG
    Trace data (days to hold): 7 (recomended by SAP)
    Trace log (days to hold): 7 (recomended by SAP)
    Period: daily.
    Besides i should tell you I looked through Help and there are no best practices that I could find.We went through this process at one of my clients. They had 40,000 pluserror'd BDOCs and thousands of processed ones. The Middleware guycreated a program to delete the BDOCs that were over 2 months old andhad completed successfully to prevent the further build up of theseBDOCs. SAP Help says they are marked for deletion after they areprocessed, but it doesn't look like they get removed as wanted..
    From SAP Help:
    Deleting Processed BDoc Messages
    1. Processed BDoc messages cannot be archived.
    2. BDoc messages that have been processed successfully are marked fordeletion.
    Procedure
    To delete processed BDoc messages choose Architecture and Technology >Middleware > Message Flow > Delete Processed BDoc Messages
    The messages you selected will be deleted.
    and regarding deletion of non errant Bdocs
    Usually there are two schools of thought on this issue:
    1) Make the hard decision to go back to the beginning and startcorrectly all the things that caused these to error out (bank codes, taxcodes, config on R/3 side but not on CRM side, etc.). Then these can bereprocessed and everything will be brought up to date in the system.This takes time and may neccesistate hiring a Middleware resource for ashort term to help go through the process. The big part of this isidentifying those config items that are out of synch between R/3 andCRM.
    2) The other way to handle these is to go through the errors quickly,gain an insight into the cause of the errors, and correct the bigthings. Delete all the old error'd BDOCs and then bring down all the bigitems again - BPs, Sales orders, products, and so forth. This is muchfaster process, but has it's own risks and problems vs Option 1 above.As these items come in, if you haven't fixed the config problems, theywill error out again. It's a fix and move - fix and move process. In theend you may have some missing data still, but the time commitment ismuch lower. You just need to get leadership's buy-in to this process.
    Those error'd BDOCs are a problem and point out all the datainconsistencies that exist in the system. They are also a drag onperformance and need to be processed one way or another. After that,keeping them under a "1000" number is imperative. If you don't, theproblem will get away from you again.
    finally Some Transaction Codes that people might find useful for working withBDOCs:
    SMW01 Display BDocs
    SMW02 Display BDoc Summary
    SMW02A BDoc Messages: Show Top N Errors
    SMW03 Show stats of unproc. BDoc messages
    SMW10 Bdoc structure chekker
    SMW19 Copy BDoc and process
    SMW20 Process BDocs
    SMW3EX1 Flow Carrier Example
    SMW3FDBDOC Maintain Bdoctype dep. Flows
    SMW3FDCUST Maintain Customer Flows
    SMW3FDIF Maintain Bdoctype dep. Attributes
    SMW3FDSTD Maintain Standard Flows
    SMW3RBM Convert BDoc Messages to XML
    SMW3RC BDoc Message Error Recovery
    SMW3RCW BDoc Message Error Processor
    SMW3STOP1 General Stop Configuration
    SMW3STOP2 BDoc Type Stop Configuration
    SMW3WD Watchdog for failed BDoc Messages
    SMW3_00 BDoc Type Settings
    SMW3_GSB Generic Bridge Activation
    SMW3_GSB2 Generic Synch. Bridge Configuration
    SMW3_GSB_SHOW Display Generic Synch Bridge Config
    SMWMBSTATDISP BDoc statistics
    hope info will help your cause,i told all this coz before deleting the Bdocs complete understanding of the errant and non errant Bdocs is necessary,
    best regards
    ashish

  • How to update Records of SAP table from .CSV file

    Hi,
    I have written a code which takes a data from (,) delimited CSV file and adds it into the Internal table.
    Now I want to update the all fields in SAP table with the Internal table.
    I want to use Update statement.
    Update <table Name> SET <field needs to update> WHERE connditon.
    I don't want to iterate through thousand on record in sap table to check the where condition.
    Could you please tell me how to do it.

    Hi. I thing you will not workaround the iterating of the internal table.
    You can pre-load all the records into another internal table
    check lt_csv[] is not initial. " important, otherwise next select would read all records of the table
    select .... into lt_dbitab for all entries in lt_csv where key-fieds = lt_csv-key_fields...
    check sy-subrc eq 0 and lt_dbitab[] is not initial.
    then do in-memory update of the it_dbitab
    loop at it_dbitab assign <fs>.
      read table lt_csv assign <fs_csv> with key ... " lt_csv should be sorted table with key, or you should try to use binary search
      if sy-subrc eq 0.
        ...change required lt_dbitab fields: <fs>-comp = <fs_csv>-comp...
      endif.
    endloop.
    ant then you can do mass-update
    update dbtab from table lt_dbitab.
    From performance view, this solution should be much faster than iterating lt_csv directly and updating every single database record
    Br
    Bohuslav

  • Mass Deletion of Material Master

    Hi All
    Please am trying to delete material master have created. i need a Tcode for mass deletion.
    Thank you.

    Hi,
    In MM06 you can set deletion flag for materials (mara-lvorm).  For multiple materials, use T. Codes MM17 or MASS. 
    ---> Select MARA Table
    ---> Select multiple selection, past all material list and execute.
    ---> Select DF at client level from field selection tab.
    To delete the Material Master records totally, use SARA.  If there is posting done, then need to archieve that too.

  • Best Practice for Mass Deleting Transactions

    Hi Gurus
    Can you please guide on this - We need to mass delete Leads from the system. I can use Crm_Order_Delete FM. But want to know if there are any best practices to follow, or anything else that i should consider before deleting these transactions from the system.
    We have our archiving policy under discussion which may take some time, but due to large volume of reduntatn data we have some performance issues. For example when searching for leads and using ACE, the system goes through all the lead data.
    That is the reason we are plannign to delete those old records. My concerns is that using CRM_ORDER_DELETE, would it clear all the tables for those deleted transactions and if there are any best practices to follow.
    Thanks in Advance.
    Regards.
    -MP
    Edited by: Mohanpreet Singh on Apr 15, 2010 5:18 PM

    Hi,
    Please go through the AppModel application which is available at: http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    The OnePage Table Based example shows exactly how to use deleting multiple rows from a datatable...
    Hope this helps.
    Thanks,
    RK.

  • Deletion of Parked Invoices - Mass deletion

    Can any one please guide the T.code for the Mass deletion of parked IRs.
    With regards,
    Gokul.

    Mass Archived/Deletion of Parked Invoice Document:
    T.code : MRA2 -Delete Documents/Archiving Invoice
    You can excute the standard program for invoice deletetion RM08RADE  the invoice documents from Invoice Verification that were archived with program RM08RARC (object MM_REBEL) from the database. Also this will execute in Test mode But its Records are deleted from the following tables:
    RBKP: Document Header: Invoice Receipt
    RBTX: Taxes: Incoming Invoice
    RSEG: Document Item: Incoming Invoice
    RBCO: Account Assignments
    RBWS: Withholding Tax Data, Incoming Invoice
    KONV: Conditions in the Incoming Invoice
    NAST: Message Status
    RBVS: Splitting the Vendor Line Item
    CDHDR/CDPOS: Change Documents
    Prerequisites :
    Documents that have reached the end of the retention period set in Customizing. For the retention period, the posting date in the invoice document header is relevant. If no retention period is set in Customizing, the system uses 9999 days as the minimum retention period.
    Procedure
    1. If the program is only for testing purposes, that is you do not want it to actually delete any data, select the option Test run.
    The variant entered in the Archive Customizing (Environment -> Customizing) under Settings for the deletion program in the field Test run variant, is used in this case.
    (If the test run option is not flagged, then the system will use the variant which is specified in  Archive Customizing in the field Productive run variant.)
    2. Specify which data should be deleted with the pushbutton Archive selection.
    3. Specify when the job should run with the pushbutton Start time.

  • Deleted records are not captured in 2lis_02_itm

    Hi SDN,
    I am extracting Purchase order records(more specifically Outline agreements ME23K) from 2LIS_02_ITM.
    When I delete a PO with Purchase Order History in ME23K and save it I am able to see the change recorded in LBWQ and now i run the collective run in LBWE I can see the total coloum in RSA7 filling with value 1.
    Now when i try to see the record in in RSA7 it is showing nothing and also when the delta infopackage is run zero records are being pulled.
    In a nutshell I am missing the deleted records with Extractor.
    Is there any way I can see the actual delta record sitting in LBWQ after the deletion is posted.
    Please help me out folks

    Hi,
    check this notes:
    FAQ: Business Warehouse (BW) in Purchasing
    SAP Note Number: [459517|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bct/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d343539353137%7d]
    Note [527490|https://websmp130.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=527490] - BW: Deletion indicator not set correctly - Part 2
    Regards
    Andreas

Maybe you are looking for

  • Firefox 3.6.14 is not displaying any site styles correctly on Mac OS 10.6 with Flash Player 10.

    I've spent some time researching this problem. These are things I've already tried: - updating Firefox, restarting browser - clearing cache, restarting browser - updating to Flash Player 10, restarting browser, clearing cache, restarting browser - re

  • Importing Item Intrastat Data using DTW

    Hi,  Is there any documentation on importing the SBO item Intrastat data?   V8.81 PL04. Thanks Simon

  • HELP: Windows 7 Ultimate installation issues

    Hi, I have used BootCamp to install Windows 7 Ultimate on my MAC but after partition it goes to a blank black screen and says "No bootable device -- insert a bootable disk and press any key". I have tried all the tricks I could find on the net like u

  • Full dvd movie to ipod free

    i just got a video ipod and i want to put movies on it for free can i do that because all the other programs i tried to download the full movie but it only put 5-10 min on it please help hp   Windows XP  

  • Weight Calculations

    Dear Experts, I have a question to the Forum on Logistics. My client is a Steel Manufacturer. The finished material is sold on two ways. a) Theoritical Weight Basis i.e. say ONE BUNDLE IS 2 TONS as per theory. b) Actual Weight Basis i.e. Actual weigh