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

Similar Messages

  • Mass deletion of Batch specific unit of measure

    Dear Experts,
    How to delete the batch specific unit of measure in the material master maintained in the additional data -unit of measure and proportional / production unit of measure in mass . We have some 1000 material for which we want to remove the datas related to batch specific unit of measure from the material master.

    I have not yet seen an option to delete data with MM17, but I am open to be educated.
    I would suggest you do it with LSMW or CATT.
    However, test it first in MM02, before you waste your time with mass processing. You might receive errors if that material was already in use and batches exist.

  • SAP Archived object in MM . Cross verify and test.

    Hi All,
    We are on Process of Archiving data from Production, Configuration and  Object done up to Quality client. We are started testing in Quality. As a functional consultant how to cross verify and check how the data like PO,PR,Material documents archived or not.
    Now data archived for only May 2008. I would like to test the case with in the period, the data is properly archived or not. any difference is there??
    Can you please let me know how to take care of this and do the testing for SAP archiving in MM perspective.
    Thanks for all your help.

    Hi Hare,
    For SAP Data Archiving testing you have to look at mainly two things: residence period and business completion requirements. Residence period is the time the data needs to be in SAP before it's eligible to be archived (data old enough) and business completion requirements is basically checking that the object is "closed" before archiving it. For instance, you can not archive a service order that is opened or an equipment that is installed.
    You should check different combinations like data old enough (for the period that you want) and not complete (should not be archived) and then data old enough and complete (should be archived).
    Check the data before running the archiving jobs and see what should be / not be archived according to you, run the archiving jobs and then check the data again to see if results are expected.
    Hope this guidelines help you.
    Cheers.

  • 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.

  • SAP Archive process

    Hi all,
    How to archive the data from SAP when the data have a delete tag?
    can any one please explain the archive process in SAP? we have to delete production order data?
    Thanks in advance.
    Regards,
    veera
    Edited by: Veerab on Oct 3, 2011 9:52 AM

    Hi,
    Main transaction is SARA of all SAP archiving objects;
    1) Complete the customization steps of the SAP archive object on SARA
    2) In order to delete the documents, you need to archive the object successfully, first
    3) Then, you can delete the archive session object
    4) Do not forget to reorganize the archived tables and create the statistics
    The object name is PP_ORDER.
    Best regards,
    Orkun Gedik

  • 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).

  • Archiving object for batch deletion

    Hi   ,
    Please let me know the archiving object for batch date deletion from table MCHA.
    MM_SPSTOCK is for archiving batch date from table MCHB.
    Thanks in advance,
    Vinayak

    MM_SPSTOCK - is for archiving all the Batch related data including speical stocks. This will take care of your Batch Tables MCH1, MCHA, MCHB(own stock) and also all of the special stock tables like MSKA, MKOL, MSKU, MKOP, MSLB .....(if used in your company)etc. You should be fine just using this object

  • Archiving Objects in SAP Retail (transaction SARA)

    Hi All.
    I have problem with archiving object WS_ACSITE in SAP RETAIL.(Transaction SARA)
    When I write data archiving, message appeard is that archive sessions are created.
    When I try to execute the next step: delete - the archive sessions are not appearing in the dialog box where we should choose the archive sessions for deletion.
    The above situation appear when I am working with plants existing in system for a while, but when I've create a new one and try to go through all SARA's steps it is OK, and master date of sites are deleted (e.g WB03).
    Can anyone help me?
    The second question is u2013 can I restore deleted sites to system?
    thanks in advance.
    Marcin

    Hello,
    Check below information for Material master record required to archive:
    1. Is there any stocks in the plant for which MMR need s to be archived? (Stock = Zero)
    2. Is there any open items at FI accounting? (There should be no pending bills or parked documents)
    3. Is there any pending delivery for this material? (there should be no open deliveries)
    If all the above criteria is met then set the deletion flag and indicator for perticular Plant you are looking for.
    Note: Make sure that non of the other plants which is sharing this MMR is marked for deletion flag / indicatory
    Then execute Archive run for archiving object MM_MATNR.
    Note: All the required configuration is done for archiving object MM_MATNR.
    Hope this will help you to archive MMR only for your required plant.
    -Thanks,
    Ajay

  • Count total number of record of table with deletion from archiving object

    Does anyone know is there any SAP standard program to count the total number of record of the table with deletion from Archiving Object and display in repprt?

    Not sure of the question. Are you looking to get the sql "select count(*) from table" from using the TopLink expression framework or are you getting that SQL already and want something else?
    If you are looking just to get the count from a table/class, you can use a ReportQuery:
    ReportQuery rquery = new ReportQuery(ClassToQueryOn.class);
    rquery.addCount(); //equivalent to count(*);
    session.executeQuery(rquery);
    You can use a report query to return data instead of objects, and use selection criteria just like a normal read query.
    Best Regards,
    Chris

  • Archive Records using object MM_SPSTOCK, MSKA records not archived.

    Hello ,
    I am trying to Archive some material using object MM_SPSTOCK, i used Tcode MM74, I have just checked only "other special stock " option and executed. its giving me below error messages :
    MSKA: 18345 EN30 EN31 E V57292 000100 unrestricted-use stock exists for previous period
    MSSA: 18345 EN30 E V57292 000100 dependent sales order stock records exist
    I have checked the stock, its cleared. In table MSKA, i can see one records with 0 stock.
    I have also checked the stock using MMBE, but no stock found.
    Can you guide me why above errors are coming, because of this i am not able to archive my sales order.
    Regards,
    Sujeet Mishra

    FM MSKA_EXTEND  is used to check previous period stock.
    the message and I told you already that you have stock in a previous period.
    And I told you to read OSS 30656 as this note explains how to remove stock in a previous period.
    further I told you that it does not make sense to archive something what is still in use, which is the case for a special stock if it has stock in the previous period.
    There is no legal work around. 
    Please open a message at SAP Support and have them confirm what was said, or  raise a developement request directly

  • 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

  • Mass upload of documents through SAP Archive Link

    Hi Experts,
    Our client is having a requirement, to upload legacy (old) data from third party tool to DMS Content server through Archive link. Tool is implemented and it works fine for attaching individual document along with SAP Object like, Purchase Order, material, etc.
    We dont have any idea as how to upload bulk of drawings for material, need your advice on this.
    Regards,

    Hi,
    I am trying to get more info on how to bulk upload employee documentation through SAP Archive Link' OpenText Enterprise Scan into the categories in OAWD. Once the documents are in Enterprise Scan the Administrator needs to link these to the categories in SAP. This is a manual process - is there a way to bulk upload these documentation to the right categories? Since these documents vary I am not sure that OCR will be a help.
    Pleae could you help in this regard.
    Thank you.
    Regards,
    -- Gustav de Bruyn

  • GOS objects SAP Archive Link

    Hello Experts,
    In transaction such as IW21, VA01, etc when we attach documents ( Excel, word, PDf's) in GOS ( Generic Services Objects) the document is stored in the Content repository and has a SAP Archive Link for e.g '&SO_KProObjectID=SOFFLOIO  4A6D66F30E37466EE1000000921B4EDD'
    Is its possible to convert this Archive Link into an URL?
    OR
    Is it possible to read the contents of the document at archvie Link into an internal table???
    Kindly help with possible solutions.
    Regards,
    Mansi.

    Hi,
    check this wiki [page|https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-SendingGOSattachmentstoanemailaddress]. It contains an example of attaching GOS objects to an email.
    Cheers

  • Want to mass-delete an object

    I have a 700 page document that has thick rule objects I wish to mass-delete. I am putting them on master pages for consistency and to isolate them to their own layer. The ones I wish to delete are all locked, but are inconsistently positioned.
    The Find/Change dialog provides for finding objects that meet certain criteria, but I see no option to DELETE the found object, just to CHANGE it. I realize there is a certain amount of danger in such an option, but If I were to change the objects to some unique color before subsequently searching on that color and deleting them all, that would be a kind of safety step.
    As a safer alternative to deleting the objects automatically, I would like the option to move these found objects to their own layer, so that I could just delete the entire layer after reviewing what was placed there.
    Can this kind of mass deletion or mass movement to another layer be done?

    OK, here you go—it appears to be necessary to calculate the length with the Pythagorean theorem (distance formula), since InDesign just returns the corners of the bounding box surrounding the stroke.
    Also, for convenience, the commented-out lines print out some information about each rule that is operated on -- you might uncomment them and comment out the .remove() if you want to see what it is going to do first.
    var
        i,
        doc = app.activeDocument,
        rules = doc.graphicLines,
        bounds, length, x, y, g;
    for (i=rules.length-1; i>=0; i--) {
        g = rules[i].geometricBounds;
        x = g[3]-g[1];
        y = g[2]-g[0];
        length = Math.sqrt(x*x+y*y);
        if (rules[i].strokeWeight >= 2 && length > 4) {
            // $.writeln("Found rule "+i+" x "+x+" y "+y+" length "+
            // length+" weight "+rules[i].strokeWeight);
            rules[i].remove();
    strokeWeight appears to give the apparent stroke weight, regardless of whether it was initially set or if the rule was scaled to get there.

  • Mass Deletion of Purchase Requisitions

    Hello Gurus,
    I have a unique issue. Our SAP system creates multiple MRP generated purchase requisitions on a daily basis and we do not have the manpower to delete each single PR using the ME52N transaction. I checked the MEMASSRQ transaction which is used for mass changes of PRs. However, in MEMASSRQ, there isn't any field mentioned particularly for deletion or blocking of purchase requisition. I found a BAPI, BAPI_REQUISITION_DELETE, but even this BAPI is used to delete the PRs one by one. Not for mass deletion.
    Right now, there are around 4000 PRs in our system which are lying and we have to delete them all. So, I want your help in finding out whether there is a transaction/report available for mass deletion of purchase requisitions.
    Your suggestions would be very much helpful for us.
    Thanks and Regards,
    Umakanth

    Hi,
    Perhaps you can try to archive them. Check archiving object MM_EBAN. See not Note 123900 - Archiving purchasing documents/purchase requisitns for futher information.
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • Excise Invoice tab not appearing in MIGO

    Hi all, While doing MIGO, we only capture Excise Invoice and Part I is updated. We avail Cenvat thru J1IEX and update Part II separately. We could process both these transactions but after posting, when we display the GR, we can not see the Excise In

  • FORMAT C DRIVE

     I have hp Pavilion 15-n209TX, I already created recovery disk (5 disk), and also there is 1 drive name as recovery disk, i just want to know how to format my C DRIV E ONLY using R-disk or R-drive? and i also want to know how to split DRIVERS ONLY fr

  • How do I add music to my iMovie using iTunes?

    HI, I just bought my macbook air and am a first time user, i want to make a movie thru imovie, Ive learned how to put in my pics so now its on to puttimg in the music. how do i add music from my itunes to put in my movie?

  • Requeste European AC POWER CORD

    Hi, I own a Magsafe 85W with the the AC powercord for the USA and I was wondering if anyone who has the magsafe with the Continental Europe Powercord could provide with the reference of the power cord only it should be something like Volex APC7Q (tha

  • Apple should flex some securities they are not neccessary at all

    How to enable whatsapp calling feature on whatsapp guys...help mi...is it posible i think if not then iphone is the waste phone ever for real...