Deleting archived material document

Hello All,
Can we delete any material document which is archived ?
Please advise.
Thanks,
Manoj

Deletion of archived documents is  one step during archiving.
SAP reads the archive and verifies that it can read any record, and then deletes it from the database.
This step can be seen in SARA.
enter object MM_MATBEL.
Click the delete button, select your archive and shedule the job.

Similar Messages

  • Cancel Archived Material Document

    Hi Experts
    I have scenario, where I need to cancel a Material document(PGR ref to a delivery) which appears to be archived. I was archived by the system, due to an update termination error, following some conversion issues in material master.
    How can I cancel this archived material document
    thanks & regards
    Vin

    your question is not clear
    if a material document is already archived (deleted physically from the tables), then you cannot cancel it, as you can only cancel what is available.
    In this case you would need to perform a new movement using the cancellation movement type, but without reference to a material document.
    I was archived by the system, due to an update termination error,
    this is just impossible. Archiving is only done by execution of certain transaction, but not by termination of postings.
    If the update has terminated, then the movement has never been in your system, hence you dont need to cancel it.

  • Transaction MB5B takes not into account the archived material documents

    Transaction MB5B takes not into account the archived material documents . Is it possible?

    Hi
         It is not possible to see the archieved materials. Once archieved it will remove from the registry. Cannot be retrieve back.
    Thanks
    Ganesh

  • Can the badi of MIRO be used to add/delete the material documents in MIRO?

    Hi ,
    Can the BADI of MIRO be used to add/delete the material documents in MIRO? As I use call transaction to call 'MIRO' , during I fill in the bdc tab of the MIRO, I want to use its badi to delete/add some listed material documents in the items of the MIRO.
    If you have solution, please let me know. Thank you very much.

    Thank you for your reply.
    Yes, I have finished the call bapi code. But the users want to change some post date, tax, amount and some account values
    during MIRO. So I tried to use call bdc.
    But when I call bdc to run miro, I need to update the material documents reciords which are choosed according to some specific logic.

  • Material documents archiving

    Presently trying to archive material documents through SARA and using object MM_MATBEL. Is this only for inventory maange ment or mat doc generated through process orders can also be archived (transaction type WR).
    For variant picking the document on the date basis. But when execute it says no document found while documents are there in the MKPF table.
    Further when trying using program RM07MARCNot able to do archive the same.
    it display the following message
    "Plants/Transact./Event Types for Which Doc. Ret. Period Has Not Been Maintained"
    where this needs to be maintained.
    kindly help.
    anya

    In SARA -> Application Specific Customizing for MM_MATBEL -> Define document life
    one can set the residence time for material documents per plant and transaction type. Check if you have maintained any entry for transaction type WR or if there is any entry where Plant is '####'  and Transaction Type is '##'
    If you dont find either entries then you have 2 options.
    - Maintain an explicit residence time for transaction type of WR
    - Maintain a implicit residence time for all transaction types ie add a entry where transaction type is '##' (This residence time effects only those transaction types which are not maintained explicitly)
    Hope this helps
    -Samanjay

  • Can we delete the reversed material documents?

    Dear Experts,
    A PO has been Goods recieved several times and the corresponding material documents have also been reversed.
    Because of this, we have an issue in final Goods reciept.
    Can we advise our cleint to delete the revrsed material docs (Tbis is in production)?
    Is this advisabe?  We are only deleting those material documents which have been revresed.
    please suggest.
    Regards,
    Shashidhar

    Hi All,
    Thanks for the reply.
    I have explained my actual problem in another thread:  PU Val. GR Blckd St. exceeded by 1.000 EA : POXXXXXXX  Plant  Sloc
    When 107 posting done more than once, SAP considers the quantity of the
    first GR only during PGR in VL32N to post 109.
    Steps to replicate:
    PO qty = 500
    Inbound Delivery Qty = 500
    1st GR in MB01 with 107 for qty = 250
    2nd GR in MB01 with 107 for qty = 250
    Now Post GR in VL32N (remember delivery with stock type Q/X)
    Error message M7022 displayed (PU Val. GR.Blocked Qty Exceeded by 250)
    I tried to reverse both document and post a new 107 with qty = 500.  Now also I get the same error message in VL32N.
    But If I remove the old documents from EKBE table (which are actually reversed ) and retain only the latest 107 , then I am able to post GR without any error in VL32N
    Please help me.
    regards,
    Shashidhar

  • Retriving archived material doc in MB51

    Hi All,
    I have archived few material documents, I am able to retrive them using the T.code MB51, here there are 3 check boxes at the bottom of the screen.
    1. Data base
    2. short documents
    3. Reread short docs in Archive.
    1.can any one let me know from where(from which table) the system will fetch the data and display when we select the check box. "short documents" alone and execute?
    2. what is the defference between the "short docs" check box and "reread short docs in archive" check box?
    Thanks
    Mahendra

    Dear Jurgen,
    I have one doubt, if i am opening any archived material document number using MB51 using "reread short docs in Archive". we are able to see the correctly. And if we are clicking on output field Material Document then its opening t code MB03.
    but if we are trying directly to open  in MB03 using fiscal year and material document we are getting error message" Document xxxxxxxxxx does not exist in calendar year xxxx".
    Any solution to solve the above issue.
    Thanks
    Regards
    Ashutosh

  • Retriving material documents

    Hi All,
    what are the ways to retrive the archived material documents other than retriving via MB51.
    what is the purpose of the push button storage system - retrieve files and store file in the T.code SARA for the archiving object MM_matbel.
    is it required to run any batch job before retriving or we can always retrieve via MB51 after archiving.
    Thanks
    Mahendra

    Hi Mahendra,
    Let me answer your second question first. Sometimes the terms 'restore', 'retrieve' and 'display' of archived documents is confusing.
    Restore is to bring back the data from archive files back into the SAP database. This feature is not available for all archive objects; and also not a recommended action to do.
    When you run a archiving job, it first create archive files in the file system, which can later be moved (optional) to a external storage system (like IXOS). Retrieve (as in SARA-> Storage System) is the process of bringing back the archive file to file system from the external storage system. So the store and retrieve option can be used only if you have a external storage system.
    What happens thru transactions like MB51 is the display of archived document, where in the specific document (or range of documents / data) is fetched from the archive (either archive file or external storage system) for temporary display.
    Hope this clarifies.
    You can also use Archive Information System (transaction SARI) and Document Relationshiop Browser (transaction ALO1) to view the archived material documents. Earlier there was a option of viewing archived material documents using transaction MB03 (see note 431689) but is no longer supported as this feature requires index MKPF_ARIDX, which is no longer supported.
    However, if you go to document display from either SARI or ALO1, it will be thru MB03.
    Thanks,
    Naveen

  • Delete Material Document

    Dear All,
    Is there any way to delete material document in the test client permanently.
    Regards,
    qsm sap

    MBAD can only delete documents that are contained in an archive.
    Instead of this single transactons, execute SARA, enter MM_MATBEL as object and hit enter.
    Now you get a couple of buttons, that need to be processed from top to down.
    But first you have to customize the object. you have to define where you want store the archive, after how much records you want close an archive file and create a new one.
    details can be found in the docu:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/8d/3e5d37462a11d189000000e8323d3a/frameset.htm

  • Deleting ? Archive Material Master

    Hi,
    Please help me how to delete or Archieve Material Master?
    how to use Tx SARA and MM71?
    Please Urgent.
    Thanks
    Prasad

    hi
    Archiving the Material Master
    Transaction SARA contains all the SAP archiving objects for all the SAP R/3 applications modules.  All the SAP archive functions are shown in SARA.  Choose the corresponding SAP archive object, hit enter and the archive administration menu will be shown.  Provided here will be an example on how to archive the SAP Material Master.
    Archive a Material Master Record
    When a material is no longer required in a company or plant, you can archive and delete the material master record. 
    You have to Flag the material master record for deletion. This is known as logical deletion. 
    Before a material master record can be archived and deleted, other objects (such as purchasing documents) that refer to this material must themselves be archived. You can see which objects these are and the dependencies between them in the network graphic.
    If a material master record cannot be archived and deleted at a given organizational level, the reason is given in the log (for example, a purchase order exists for the material). The log also contains technical data such as the number of material master records read and the number deleted.
    Some of the archive error log message :-
    Costing data exists
    Use in routing
    Use in sales and distribution
    Use in bill of material
    Delivery exists
    Costing data exists
    Info record exists
    Purchase order exists
    The Archiving steps :- 
    Archiving object MM_MATNR for archiving material master records.
    You can display the archived data, but not reload it.
    To archive the material master, first goto transaction MM71.
    Type in a variant name and click Maintain.  (Tick the Test Mode for archive simulation).
    Save the variant.
    Maintain the Start date and Spool parameters and click execute.
    Click Goto Job Overview to check the archive status.
    To do a permanent delete, goto transaction SARA and click Delete button.
    Maintain the Archive Selection, Start date and Spool parameters.
    Click Test Session for testing or click execute to start the deletion program.
    Click Goto Job Overview to check the delete status.
    Now, if you goto MM02/MM03, you will not be able to find the record in the material master.
    Reward points if helpful
    Thanks and regards
    Ravikant Dewangan

  • Physical Inventory documents mass delete and reference in material document

    Dear Experts,
    I have 3 questions,
    1. Is there any option to mass delete physical Inv documents
    2. How can i know if the physical inventory documents are posted  (MI07) or not yet
    3. If i see any material document of mov type 701 or 702, there is no reference of physical Inv Doc # in it. How can i know that this material document is created as a result of which physicl Inv document.
    Appreciate your help
    SAPXPT

    Hi,
    "1. Is there any option to mass delete physical Inv documents"
    Yes You can delete the Physical Inv Documents with MIAD but for that you need to maintain one variant with it and copy all the Document no. in TEXT file paste in the in Archiving Selection's.
    "2. How can i know if the physical inventory documents are posted (MI07) or not yet"
    Please check ISEG table and provide the time Period as search menu so that you can see all the Doc's posted on today's date.
    "3. If i see any material document of mov type 701 or 702, there is no reference of physical Inv Doc # in it. How can i know that this material document is created as a result of which physical Inv document."
    go to MB59 and check the Material documents with respect to Movement type and date. and the difference you will see in MMBE as per the movement used.
    Regards,
    Ninad Kshirsagar

  • How to figure out which material documents should be deleted?

    Hi,
    I am creating a report that sums up material movement. But I meet a problem about reversal material documents.
    In my report, I collect all the documents and delete all the document with field SMBLN is not empty. Code is like below.
    MOVE it_mseg[] TO it_mseg2[].
      LOOP AT it_mseg WHERE smbln <> ''.
        LOOP AT it_mseg2 WHERE mblnr = it_mseg-smbln AND zeile = it_mseg-smblp.
          it_mseg-del = 'X'.
          MODIFY it_mseg.
          it_mseg2-del = 'X'.
          MODIFY it_mseg2.
        ENDLOOP.
      ENDLOOP.
      LOOP AT it_mseg2 WHERE del = 'X'.
        LOOP AT it_mseg WHERE mblnr = it_mseg2-mblnr AND zeile = it_mseg2-zeile.
          it_mseg-del = 'X'.
          MODIFY it_mseg.
        ENDLOOP.
      ENDLOOP.
      DELETE it_mseg WHERE del = 'X'.
    But sometimes users may cancel a material document, and later they may cancel the reversal document also.
    Then there are 3 documents. In my report, all these 3 documents will be deleted.
    Is there any method to only have the last document left and delete the others?
    Thank!
    Wesley

    Thanks Dzed, it seems the code works succesfully, and I also figure out another code like below, it also works~
      MOVE it_mseg[] TO it_mseg2[].
      LOOP AT it_mseg.
        LOOP AT it_mseg2 WHERE mblnr = it_mseg-mblnr AND zeile = it_mseg-zeile.
          IF it_mseg2-del = 'Y'. 
            it_mseg-del = 'X'.
            MODIFY it_mseg.
          ENDIF.
        ENDLOOP.
        IF it_mseg-del = 'X'.
          CONTINUE.
        ENDIF.
        LOOP AT it_mseg2 WHERE smbln = it_mseg-mblnr AND smblp = it_mseg-zeile.
          it_mseg-del = 'X'.
          MODIFY it_mseg.
          it_mseg2-del = 'Y'.  
          MODIFY it_mseg2.
        ENDLOOP.
      ENDLOOP.

  • Delta update - delete material documents

    Hi,
    We have some problem during delta updates for 0IC_C03 (material movement).
    In the source system, we have deleted the material master, but its material documents and accounting documents still exist.
    The delta updates shows error saying those deleted material doesn't exist while loading the material documents.
    please help.
    we have problem deleting the materials document and accounting documents in the source system.
    In BI side, how to enable the delta updates?
    regards,
    zl

    Hi,
    After the error, we have deleted the materials and material documents from the source system.
    May I know why the delta update still select the deleted materials and material documents from the source system in the PSA?
    May I know how to modify the extraction logic?
    Thank you.
    regards,
    zl

  • Return Delivery when the material document has been archived

    Hi There,
    We have a situation in which we need to return some consignment material to a vendor because we don't need it anymore. We have 74 units in unrestricted stock. The thing is that the PO's material documents have been archived. This causes we can't do the return delivery using MIGO transaction.  
    Could someone tell me what options do I have?
    Thanks for your help.
    Luis

    Hi,
    You can create a return purchase order to do that, just flag the checkbox "Return" in the PO item line.
    Good luck
    Tao

  • Delivery document archived and material document has zero quantity

    Hello Gurus,
    This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    Is there any sap notes or any other way to fix this?
    Please guide.
    Regards
    Nilesh

    Niles Raut wrote:
    Hello Gurus,
    >
    > This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    >
    > When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    >
    > Is there any sap notes or any other way to fix this?
    >
    > Please guide.
    >
    > Regards
    > Nilesh
    Where is actually the problem, if one only reversed 0 quantity?
    Why do you think you need to reverse this reversal again?
    why with year 2010?
    Dont you do anual inventories?  Such stock counts have corrected your stock anyway. if you start cancelling older movements then you create stock inconsistencies again.

Maybe you are looking for

  • Error: Field BNKA-BNKLZ . is not an input field

    Dear Experts, My client following vendor creation process is as follows Requestor logs his request into EP -> it is recorded into MDM -> after approval from central team, it syndicate into SAP -> Idoc entry -> Table entry Now in case of vendor reques

  • Logon screen doesn't allow to navigate b/w fields.

    Hi, I have deployed successfully forms on web using Forms6.0 and OAS4.0.7 with 8i as the back-end. I have a strange problem with the Logon Screen. When I request for the URL it loads the applet and displays the forms Logon screen, here, I can't navig

  • JSP Execution Problem

    We have implemented a servlet that uses a RequestDispatcher to forward to a JSP. The JSP instantiates an object (passing the Request and Response as parameters) that uses the RequestDispatcher once again to include another JSP. This has been working

  • Publishing to quicktime 7.5 from Flash 8

    Hello, I'm trying to publish or export my flash fla file to quicktime. I followed the instructions to reduce the flash player, only to run into the same error. I'm working with Flash 8 and Quicktime 7.5 and unfortunately do not have the funds to upgr

  • Since I upgraded to Mavericks Mail does not work at all

    I upgraded to Mavericks yesterday (10.9.1) and now Mail simply will not work. The first time I opened the app it said it was upgrading messages and spent a while working on that. I did not interrupt the process but then it crashed and now it does not