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

Similar Messages

  • 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

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

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

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

  • 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

  • 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

  • PO print OUT And material Document Print Out is coming In English

    HI all.
    I have Created Vendor In ZH(chinese Language,)and in material master I have maintained description in Chinese language.
    I'M taking PO and material Documents print outs  in Chinese Server log-in.
    even Though Im taking Print outs in Chinese Log-In server, IM getting Print outs in English Language only not In chines language..
    At the Time Of PO creation the Communication Language is ZH(Chines)..
    I have read some related post even 89899..
    But I have not find solution
    plz help me.
    thanks and regards
    ramesh reddy.'

    Check SAP Note 894444 - Tool for server-based printing on Windows (SAPSprint) for your requirement,
      Installation
    Before you install SAPSprint, delete SAPLPD manually. To do this, you normally need to completely delete the installation directory only. If you installed SAPLPD as a service using the srvany tool, you can remove the service by calling 'Instsrv SAPLPD remove'.
    You can download SAPSprint as a self-extracting executable file from SAP Service Marketplace:
    1. Entry by Application Group (on the left)
    2. SAP Frontend Components (on the right)
    3. SAPSPRINT (on the right)
    4. SAPSPRINT <Release> (on the right)
    5. SAPSPRINT <Release> (on the right)
    6. Win32 (on the right)
    Start the program. After you enter the installation path, the system prompts you to enter the TCP/IP port.
    Normally, the default setting of 515 is suitable for the port. You should only change this setting if the Windows TCP/IP print service is also running on the computer. The SAPSprint Windows service starts as soon as the installation is over.
    We recommend that you set up the following options for the service in the Windows Service Control Manager:
    The service should run under a domain user that has the relevant authorizations for the required printers. After the installation, the service runs under "Local system account". This can access locally-defined printers only. You can set the user in the Windows Service Control Manager, in the options of the SAPSprint service.
    If you want to delete SAPSprint, you can do so using the normal Windows uninstall tool.
    We recommend that you install the SAPSprint service on a separate computer and not together with a SAP system, especially if you use a large number of printers. All printers that SAPSprint uses must be installed on the SAPSprint computer. This applies particularly to released printers from other computers. These should be installed as a queue on the SAPSprint server.
    Also note further settings in accordance with Note 1069483.
    Settings
    You can display the call parameters available for SAPSprint by calling 'sapsprint -?' on the command line. The most important parameters are those that set options, especially log options for troubleshooting.
    You can set the log level to 5 by specifying 'sapsprint -oi LogLevel 5'. Immediately after installation, no log level is set up, which means that no log file is created. By setting the log level to 1, 5, or 9, you can ensure that more information is available in the directory that you specified during the installation. A file called sapsprint.dbg and a print job specific file with a variable name are generated. The second file is deleted after successful printing. It is only retained if the printout is recognized as incorrect. If you set the option 'sapsprint -oi KeepFile 1', then both this file and the print file are retained. This is primarily intended for troubleshooting by SAP Support.
    All options are case-sensitive. You can display the most important SAPSprint options by calling 'sapsprint -?'. All possible options are described in Note 85469. Normally, the options described there are not necessary - you should use them only in exceptional circumstances.

  • Link between Service Entry Sheet and Material Document

    Hi
    I am busy with developing a report where i am required to find the link between the Material Document and Service Entry Sheet. 
    I am aware that on the Purchase Order Data tab of the Material Document has the service entry sheet number and line item.  However the problem I have picked up here is in the event I create a Service Entry Sheet  with a service in line 1 and for some reason Delete that Line and then capture the service again, it is saved in table ESLL as line 2.  This is correct.  However when I have a look at the material document, it references it as line 1 of the service entry.  Is there any way to get this in sync?
    Thanks
    Vinesh

    Thanks
    This table does show the service entry sheet number and line item however the line item does not correspond with the line item on the service entry sheet.
    Eg.
    I create a service entry sheet where I capture a service in line 1.
    I delete Line 1
    I recapture on line 2.
    Post Service Entry
    The Material Doc reference document is the service entry however the line item for the reference is 1.
    I need to try and link the line items
    Thanks
    Vinesh

  • Material document cannot be processed Error

    Hello,
    I have issue regarding the material document posting.
    Scenario: Discrete manufaturing
    1. Production order is created for A  177 PC and Operation wise confirmation is done with auto GR.
    2. The stock A 174 PC is issued to other production orders.
    3. Cancellation of confirmation CO13 is done for 177 PC since the stock is not available it has thrown error to COGI.
    4. The error entry is deleted by the user in COGI.
    5. Now they want to post the confirmation with 174 PC and 3 PC scrap.
    But the problem is am not able to cancel the docuement which is posted intially for 177 PC since the error entry is deleted for 102 mvt.
    I tried MBST and MIGO also not able to cancel the document.
    How to go about on this issue. Pls let me know.
    Thanks and Regards,
    Satish

    Satish,
    I hope while cancelling the operation with CO13, the cacellation has been taken place as the entry has been passed to COGI.
    In this case you need to work around the solution
    First of all cancel the material document of issue of the 174 pcs of A to another porduction order.
    Now post an entry of 177 with movement type 102 with reference to the order in MB31.
    In the production order replace the auto GR key with non auto GR key.
    Carry out confirmation with confirmed quantity as 174 & scrap as 3.
    Now in MB31 carry out GR against the order with movement type 101.
    I hope this would work.
    Try it out & revert.
    SmanS

  • Mass cancellation of material documents created

    We have generated 400 material documents during initial inventory upload using lsmw. Now we want to cancel/delete the documents created. Is there any method to delete it.
    Thanks

    My suggestions:
    - LSMW + MBST
    - BAPI_GOODSMVT_CANCEL >> with the help of an ABAP programmer...
    Regards,
    Csaba

  • 2 material document number having the same delivery number???

    hi
    is it possible to have 2 different material document numbers assigned to the same Outbound delivery number????
    the situation is that one of the material document number was assigned to a particular delivery number  say 'a'  and deleted later on a particular date.
    on the same date another material document number was created with  the same delivery number 'a'.
    is this possible to happen .(i.e functionally correct)   ?????? bcoz i am getting such type of output in transaction "MIGO"...
    PLZ HELP .POINTS WILL B AWARDED!!!

    Hi,
    Yes,it is possible.If you take example of partial delivery then say for example one delivery contains 10 items.Out of whixh I have delivered 4 yesterday and 6 today.This is done via creating transfer orders.Then two material documents will be created at time of PGI but they will refer to same delivery number.
    Reward points if useful
    Regards,
    Amrish Purohit
    Message was edited by:
            AMRISH PUROHIT

  • Deleting  material movements data for IM

    Hi,
    I have to re-initialize the stock for IM using BX and similarly need to fillup the set up tables for BF and UM. I deleted the contents using LBWG TCode for the Application 03(Inventory Controlling). I checked the data for BX and UM and it is showing me 0 records after deletion. But when I checked for BF it is still showing me records. I am not sure how to delete BF data as well.
    Please let me know your thoughts....
    Thanks.

    Hi,
    I have a doubt in filling up the set up tables for BF. Which one is more preferable while doing it, either by Material Document Number or by Posting date? If I have to do it by Material Document Number then how will I come to know the range and what coulld be the Posting date if I use the later option? It runs forever if I give even 4 days as the posting date and gets cancelled. Say for example I have to load the data from Jan 2005 to till now then what should be my strateg? I mean for BX, BF and UM?
    Please reply to this....
    Thanks.

  • Material Document Output Message

    Hi
    I cutomize the Mat.Doc Output Message WE01 to ZE01.
    In OMJ3 I already removed the WE01 for the new plant.
    However still in the Plant#2000 material document picks up both message
    Where else i should remove ?
    Thanks
    MM

    Hi Garapati 
    Output WE01 is already in use at other plants (ex; 1000) using different forms.
    ZE01 which is to be used for plant 2000.
    So, I can't delete in Output Determination or NACE/T.
    I thought if I dont maintain the WE01 output type in OMJ3 for Plant 2000, suppose to not appear and only appear the ZE01.
    But now both appears.
    Rgds
    MM

  • Reservation in Material Document

    Hi all,
    I am facing with and issue related to Reservation.
    Problem Defination.
    In the Material document List for a particualar MAterial i am able to see the Reservation no.
    i.e a material has been issued against a reservation so material document is created and in mateiral document in reservation tab i am able to see the reservation no also.But when i am double clicking on that reservation ,it is taking me to display reservation where  i am getting message
    =================================================
    Reservation 0000022986 does not exist
    Message no. M7520
    Diagnosis
    The reservation you entered does not exist in the data base.
    Procedure
    Make sure your entries are correct.
    Choose the input help in the "Reservation" field to search for a reservation for a material or an account assignment.
    ============================
    It has to be noted that in the reservation tab in the material document .
    The requirement quantiy is " 0 "
    Withdrawal Quantity is " 0"
    Whereas the Material document which has been posted against the reservation is for 10 quantity.
    the requirement quantiy should have been 10 and withdrawal quantity should have been 10 because the reservation i have made is of 10 quantity.
    I have checked the reservation list ,the reservation is not there too.
    Please help me on this issue
    Thanks and Regards
    Shailesh

    Hi
    Can you provide me the information ,i.e how to restrict the user from deleting the reservation at Document level,
    Though i want to give him authorization of MB22 but i want to restrict him from deleting the reservation at document level.
    Is there any user exit
    regds
    shailesh

Maybe you are looking for

  • How do i save my web site to a cd

    How do i save my developing web site to a cd? and will all of the links still maintain their interety?

  • Inserting a new view  in place of already existed once

    Hai folks, In Ic Webclient on crm 5.0 system i got an issue In <b>identify customer</b> View set i have removed the view of <b>regestered product</b> and want to insert a  view <b>bupaLongTexts</b> there(in that deleted area) I am able to remove the

  • Tap clicking touchpad causes mouse pointer to move (ALPS)

    Usually when tap clicking on a touchpad, any pointer movements are suppressed as a tap is detected. This does not happen on my Arch machine. Whenever I tap click, the mouse pointer jumps several pixels in some direction. How can I stop this? (Arch is

  • Overview of Alive Flash Slideshow Maker

    Alive Flash Slideshow Maker is a professional slideshow builder to easily create high-impact photo slideshows. It turns your digital photos to flash ( SWF ) slideshow with background music and transition effects. So that you can upload the output fla

  • Will it work to recover from a Time machine data backed up under Snow Leopard?

    Hello, Mine a Mac Book Air that has 2.13 GHz Intel Core 2 Duo and RAM: 2GB 1067 MHz DDR3. I have time machine back up on an external HD. Once I install the Lion os, would I be able to use the backed up data under Snow Leopard to an external HD if any