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.

Similar Messages

  • 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

  • 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

  • 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

  • Error While canceling a invoice document in MR8M

    Dear All,
              While canceling a MIRO document in MR8M one error is coming as "Inconsistent temporary document number assignment" Message no. F5726.
              This error is coming now in a production server which has been running from last 6 months.
    Diagnosis
    Temporary document number '$$1' has been assigned to items in company code '1000'. However, the same temporary number ('$$1') is also used for periods '07' and '08'.
    System Response
    Items with the same values for company code, fiscal year, period, document type and other accounting header data must have the same temporary number in the accounting interface.
    Procedure
    This is a system error in the calling application.
    If the document number assignment is internal, the temporary document number can be copied with its initial value.
    If the document number assignment is external, you must follow the rules laid down for the accounting component.
               Awaiting suggestions.
    Regards
    Abhijit Das

    Hi,check note 1376351

  • Error (Short Dump) while posting any Material document

    Hello All Experts,
    I am facing an error (short dump) while doing all material document related transactions (for example MIGO,MB1A etc) . I am getting the below message:-
    Short text of error message:
    Document number 1000 5000000000 2009 was already assigned
    Earlier, I had posted some material documents using the same transactions.
    Kindly help
    Regards,
    Atul

    Hi Atul,
    Please use T-code OMBT to check the number range status of material document. You can click on the 'Intervals' button to check the 'Current number', the last material document number the system was created so far. Try to change the 'Current number' to a number greater than 5000000001, save the change, and post material document again.
    Hope it can solve your issue.
    Cheers

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

  • 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

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

  • 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

  • Material Document in MIGO

    Hello,
    I processed a good receipt on MIGO with mvt code 101. I use MIGO transaction code, but when I display the material document in MIGO, in Doc Info, SAP shows that Transaction code MIGO_GR has been used.
    Is there a way to make SAP show the transaction code actually used by the user, and not the one corresponding to the mvt code?
    thanks,
    Laure

    Hi Laure
    This is a standard behaviour. MIGO_GR is just a view of MIGO. When you select, Good receipt in MIGO, system takes it as MIGO_GR.
    Best regards
    Ramki

  • BADI while Cancellation of Invoice in SRM5.0

    Hi,
    I need to fill some own data while cancellation of invoice. Which BADI will be suitable for it?
    e.g. I need to fill field REF_DOC_NO (Inv (ext) number) data for canceled new invoice with own logic instead SAP's standard one. Currently SAP is filling X in front of original invoice's field data for every cancellation of invoice.
    How could be done for it?
    Thanks in advance.
    Rahul Mandale

    Hi,
    Thanks for your reply. I was really required to bypass SAP's standard logic for entering that field "ref_doc_no" for new invoice after cancelation of old invoice.
    Scenario : While cancleation/reverse of every sucessful invoice,
    SAP's standard =>  For new invoice document (of cancelation old invoice) is with field "ref_doc_no" = X + Old invoice Ext number
    Custom requirement :  For new invoice document (of cancelation old invoice) is with field ref_doc_no = Old invoice Ext number + X
    with those BADI's, how it can be done?
    Thanks,
    Rahul Mandale

  • BAPI_GOODSMVT_CREATE - Error while posting a Material Document

    Hi Experts,
    We are  trying to do the material document posting using the transaction "MB1C" manually in SAP. The movement type which we are using for the same is "261".  While doing this is, it is asking for a work order number and the Recipient number. We gave the Recipient Number as "123". Material document is created successfully.
    Again using the same transaction  "MB1C" , we are trying to do the reversal of the material document which we posted previously against another work order number for the same material and the serial number if the material is serialised and as well as for the non serialised material.
    Both this case, in SAP the material document is created succesfully. This is done manually in SAP.
    When we are trying to create the material document using the BAPI 'BAPI_GOODSMVT_CREATE', for the above scenario, posting the material document '261' movement type for one work order and the reversal for another work order '262' movement type for the same material (whether it is a serialised or non serialised) we are getting the eror as "RE Qty. transferred exceeded 1 PC: 50,003,695 C001 USED 1200".
    We are passing the following at the item level. MATERIAL Number, Plant, STGE_LOC, ENTRY_QNT, MOVE_TYPE, BATCH, ORDERID, RESERV_NO,  RES_ITEM, ACTIVITY, XSTOB for reversal.
    We are passing the GM_CODE as '05'.
    Please let us know what needs to be changed inorder to create the material document properly without getting errors.
    Thanks in Advance,
    Mohan.

    Hi,
    We fixed this issue by removing the reservation number of the material when we are trying to post the material document with the movement type "262".
    The reason for removing the reservation number for the movement type "262"
    The reservation number is getting created against a work order when we trying to create the work order in IW32. This reservation number is used for validating the stock while we are trying to consume and doing the reversal.
    SAP is allowing us to reverse the consumed quantities only based on the reservartion number and hence we got this error.
    To fix this error, if we are trying to reverse a particular material against a different work order for which it has been consumed previiously, remove the reservation number and item number and try posting the material document.
    Hope this solution will solve your issue:)
    Thanks and Regards,
    Mohan.

  • Error while cancelling GR material is at Block stock

    Hi,
      I have created a GR for material QM view is maintain , after GR material updated from QM it is rejected,  then we have transfer it in Blocked stock in QA11  now we want to cancel the GR,  but while GR  cancel with MBST or MIGO  the stock type it is shoing as X  i.e quality stock  now in quality stock is 0  because material is at blocked stock.  so while cancelling it is giving error as  Deficit of SL Stck.in qual.insp 5,000 NO : 928 MS10 S101
      how to solve this,
      regards,
       zafar

    Hi
    you have to move the stock first quality only.  once you got the stock in quality you can send the material to vendor with (122) movement type.
    For your reference:
    1. SAP NOTE 175842 needs to be implemeted first.
    2. User Exit QEVA0008 needs to be activated.
    3. Then First of all reverse the UD by transaction QA12, by clicking the Customer Function Tab.
    4. Now the stock can be reversed for the same Lot by running program RQEVAC50 in SE38.
    above procedure you have to do must if amterial belongs to quality.
    laxman

Maybe you are looking for

  • How to add a second wireless network in my house..

    Hello, I have Verizon FIOS with the supplied Actiontec wireless modem/router M1424WR. This current setup works perfectly and has since I got it about 5 months ago. Note that all of my computers connect wirelessly. Here is what I would like to do and

  • Moving iTunes Music to external hard drive

    I am trying to move my iTunes music library to an external hard drive to free up space on my HD, but I'm having trouble. Tried the following, suggested by MacMuse: iTunes Preferences -> Advanced tab; Keep Music Folder organized ... should be enabled.

  • Dropping in PDF files into iDVD? How?

    I have a client who would like to put some PDF files as well as video into a DVD I am making for here. What is the best way to throw some PDF's in? I would like a button that would point to those. Any help would be greatly appreciated? Best, Tom

  • How to read an html file and replace a text using text_io

    hi, i want ro read an html file using text_io and replace a particular text with a new text eg: i want to replace a text called "data.js" and with "maps.js" how do i do this?

  • How to detect a -1 in while reading data from socket

    Hi Am faced with a problem in socket reading Whenever I try to read any data from a socket and I encounter a -1, I assume that the steam has reached End of File and close that connection. This logic was introduced overcome a problem of connection get