Mass cancellation of material document

Dear All,
Is there any way I can do the mass cancellation of material documents.
I know I can do one by one with "MBST". I have to cancel nearlly 1000 of documents. Please guide me how can i do that.
Thanks and Regards,
Vineet Dhawan

Hi Vinnet,
Write a Program by calling BAPI_GOODSMVT_CANCEL. Here input are Material Document Number, Year, Posting Date & User Name. No recording also required if we call BAPI in your program. Total number of documents call be given as feed file input with the above details. you may take ABAP help for this
Regards,
Ramakrishna

Similar Messages

  • 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

  • Mass reversal of material documents

    Hi All,
    We have MBST for reversing/cancelling trhe material documents. But how can we reverse/cancel the material documents on a mass basis?
    In transaction MASS, there is no object created for mass reversal of material documents.
    How can we create an object for mass reversal of material documents?
    Is there any other Tcode or program for mass reversal of material documents?
    Thanks and regards,
    Ramachandra DN

    Dear Ramachandra,
    We Create
    <b>LSMW</b> for <b>T.Code MBST</b>
    I hope it is better way to use Mass reversal of Material Documents
    Otherwise depend upon the size of the data we can move to other uploading programmees.
    For better clarification you can approch ur ABAPers to resolve the issue.
    With regards,
    B.Ravindranath

  • Error while cancelling the material document.

    HI,
    while cancellation of material document thru MIGO screen getting error
    Deficit of PU IR quantity 20.000 EA
    Message no. M7021
    Diagnosis
    Shortfall below the specified stock level or quantity amounting to 20.000 EA.
    Diagnosis
    Shortfall below the specified stock level or quantity amounting to 20.000 EA.
    The invoice of material document has been process thru ERS.....so no way we can cancel the invoice.
    waht is  the exact process to cancel this document which furher use ERS for invoice verification.
    thanks.....

    Hi Ayaan,
    You need to set the indicator against the movement type 102 under the following path :
    SPRO>Materials Management>Inventory Management and Physical Inventory>Goods Receipt>For GR-Based IV, Reversal of GR Despite Invoice
    Once set , try reversing the material document . This will work .
    Regards
    Ramesh Ch

  • Transaction code for mass cancelation of delievry document and sales docume

    Dear All,
    Is there any transaction for mass cancellation of delievry document and sales docume.
    any suggestion
    Thanks with Regards
    Subrat
    Edited by: subu sd on Jul 15, 2009 7:49 AM

    Hi ,
    Adding to Eduarodo's Point, if you dont want to Archive the documents and just wanted to cancel then you can do this by LSMW or eCATT.
    First cancel all the subsequent document and then Sales order . In sales order put Reason for rejection.
    Thanks,
    Raja

  • How To Cancel the Material Document Created in VL09

    Dear All,
               I have a crictical issue,please guide me to solve this.
    User has created the order and delivered on 31-03-2011,again he has reversed in VL09 on 07-04-2011.but the actual goods issue should happen only on 31-03-2011.Now when i try to deliver the same order on 31-03-2011 it's throwing error like defict of SL stock.I can't even cancel the material document that got created in VL09.I have to deliver only on 31-03-2011.
    Kindy guide me to solve this.
    Regards,
    Venugopal

    It is a mess! when the delivery is reversed, the user should have used correct reversal date. Now you can't cancel the material document. Consult MM specialist to add the quantity in the past period and off-set the same in the current period.
    On a second thought, check with your accounting if you PGI in the current period as the reversal and new PGI happened in the current period, which off-sets the entry in accounting.If they are OK, then you need not bother about this.
    Regards,
    Edited by: Shiva Ram on Apr 7, 2011 11:56 AM

  • Cancel Billing ,Material Document(PGI),Delivery,Sales order

    hi experts,
    pls help me Cancel Billing ,Material Document(PGI),Delivery,Sales order.
    so when ever given to billing number cancel to all the document
    plz send to me code and suggestions.
    plz it is urgent.
    advanced thanking you.

    you can do that from VF02 - application menu - billing document - cancel.
    if you want to do that from program use standard bapi's to cancel BAPI_BILLINGDOC_CANCEL1... also please reffer to transaction code BAPI for more bapis to reverse pgi - or you can write a BDC to reverse pgi - tcode is vl09.
    i dont think you cancel  order but you can delete depending on your config. check out in application menu on va02. use bapi BAPI_SALESORDER_CHANGE to reject the items in sales order.

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

  • Cancel the material document creation process

    Hello Experts
    I am having the requirement where i have to check for some custom validations before posting the material document. If those validation fail, material document should not be created.
    i tried that by finding suitable user-exit or BADI for MIGO but it seems every user-exit or BADI gets fired after material document is created. What i am looking at is when we 'Check' the document it should also include our custom validations.
    I have implemented the similar scenario for PO creation.
    Thanks in advance
    Regards
    Rajeev

    It is a mess! when the delivery is reversed, the user should have used correct reversal date. Now you can't cancel the material document. Consult MM specialist to add the quantity in the past period and off-set the same in the current period.
    On a second thought, check with your accounting if you PGI in the current period as the reversal and new PGI happened in the current period, which off-sets the entry in accounting.If they are OK, then you need not bother about this.
    Regards,
    Edited by: Shiva Ram on Apr 7, 2011 11:56 AM

  • How to cancel a material document

    i am using MBST transaction to cancel a material document which was posted for a STO movement type 351 but i keep on get an error saying "No postings can be made to profit center 104220 in company code 1020"

    Hi ,
            With ref. to your message , it seems  your proft center 104220 IS NOT ACTIVATED FOR COMAPNYCD 1020.................
    Pls refer link...  No postings can be made to profit center 1000 in company code 2000 l
    thanks

  • Error while cancelling the material document. MIGO

    i am getting following error while cancelling material document
    You cannot cancel GR, since inspection lot is already partly posted
    Message no. QA046
    Diagnosis
    You are attempting to reverse a goods receipt although quantity postings have already been made from the inspection lot. This means that stock for the goods receipt has already been transferred and, for this reason, a cancelation of the document is no longer possible.
    Procedure
    Ensure that the postings in QM (within the usage decision transactions) are carried out.

    hi,
    You can't do cancellation here just because you have given some lot/qty to QI:
    2 ways:
    1. Don't do cancellation, make returns for the rest of the qty...
    2. Take back the qty in the Unrestrcited stock back and then try to do cancellations...
    Regards
    Priyanka.P

  • Revoke of Service Entry Sheet and hence cancellation of Material document

    Suppose one Service entry sheet you created once you accept Service entry sheet it will create a material document once you revoke the service entry sheet it will create a reversal material document. which table and field we find the relationship in original Material document created against SES and canceled material document against revoke of SES.

    Hello,
      in table MSEG youo can enter with Purchase Order number (EBELN)  and Purchase order item (EBELP): this way you will have all the material documents created for that PO, both for the acceptance and the reversal of the entry sheet. You can use the Reference document (field LFBNR) to see the link between acceptance and reversal of the entry sheet. On top of that, you can use fields "Movement type" (BWART) and "Debit/Credit Indicator" (SHKZG) to distinguish acceptance and reversal of the entry sheet for the same PO item.
    Hope to be useful.
    Best regards,
    Andrea

  • Partial Cancellation of Material Document.

    Hi all....
    My client is having one requirement, we have project system & user wanted to return material from site to project stock, for eg. 10 quantity of material is issued to the user for internal consumption with 221Q, after one month user consume only 5 quantity of material and remaining will rerun to the stock which he no longer required. How to handle such returns?
    We are trying this with MIGO (transaction type Good Receipt with reference to Material Document with which the material is issued and Mov. Type 222Q, here system display all the data of reference material document. But it allow to change the quantity even more than the quantity issued. This is serious issue.
    Please help out......

    Hi,
    The problem is that system allow me to post irrespective of quantity what I entered in quantity field (i.e. greater than the issued quantity)

  • Userexit / BADI while cancelling a material document in MIGO.

    Hi all,
    I am searching for an userexit/badi while i'am cancelling a Mat.Doc(MBLNR). the whole idea is to cancel the delivery document if it not picked.
    Thanks and Regards.

    Please Be Specific By Providing Screen Number in MIGO transaction.
    Meanwhile  I think Implementation of BADI : MB_MIGO_BADI will solve your poblem.
    Contact me incase u want more help on BADI.

  • Mass Cancellation of confirmations , documents

    Dear Experts,
    We have created some more than 100 production order , for which we have issued materials , confirmations dobe , GR done , TECO done . Now we want to cancel all the posting , confirmations as we want to cancel these orders and create new orders . Is there is any provision in standard to cancel all documents , confirmations , GR , teco collectively in a single step or any work arounds.
    Thanks.

    Hi,
    There is no mass way to cancel the Confirmations and Documents.You have to cancel them manually one by one or create LSMW for it.Same case is applicable to revoke the TECO status.
    Regards,
    Dhaval

Maybe you are looking for