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

Similar Messages

  • 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

  • User Exits / BADIs triggered during the Material document creation

    Hi Experts,
    Can anybody tell me the User Exits / BADIs /Possibilities that can be triggered during the Material Document Creation which can be used to update the Equipment Master User Statuses.
    Thanks,
    Sangeeta.

    Hey Sangeeta,
      Try these User Exit's
    MGA00001  Material Master (Industry): Checks and Enhancements
    MGA00002  Material Master (Industry): Number Assignment
    MGA00003  Material Master (Industry and Retail): Number Display
    Using Enhancement MGA00001 (Function Exit : EXIT_SAPLMGMU_001 ) you can validate & Change your Material Document Number.
    Badi's
    BADI_EAN_SYSTEMATIC
    BADI_GTIN_VARIANT
    BADI_MAT_F_SPEC_SEL
    BADI_MATERIAL_CHECK
    BADI_MATERIAL_OD
    BADI_MATERIAL_OD
    BADI_MATERIAL_REF
    BADI_MATNR_CHECK_PVS
    BADI_MM_MATNR
    BADI_MM_MATNR
    CDT_CHECK_MATERIAL
    MG_MASS_NEWSEG
    MG_MASS_NEWSEG
    WRF_DISCONT_FACT_E
    Note: This is for transaction code MM01, MM02 & MM03.
    Regards,
    Saravanan M

  • 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

  • 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

  • Reverse the material document before cancelling the excise invoice.

    Dear Experts,
    While cancelling the exice invoice thru J1iex , system is giving me an error message "Reverse the material document before cancelling the excise invoice" .......I checked PO history where all the material documents are already cancelled with MIGO cancellation (movement 106 )
    But in J1iex , if I select the cancel option and put this invoice number , it is showing me one document with status "IN PROCESS" and if I select that doc and try to save it. System prompted me the message "Reverse the material document before cancelling the excise invoice ,but if I am trying to post this document system is issuing me a message "All Part I entries have been canceled for excise invoice ...........xx.Exicse table J_1IGRXREF and J_1IPART1 alrady update with both documents.kindly any one suggest me positive.
    MINI

    Hello
    follow the below steps
    1. MIGO:Cancel the material document (movement type 102) & during cancellation update part1 only. This changes the excise invoice document status to In process
    2. J1IEX:Post the excise invoice referring the material document (of movement type 102). Creates an accounting document to reverse the CENVAT postings. Creates a corresponding entry in Part II of the appropriate excise register
    Thus the excise postings are reversed.
    3.J1IEX: Cancel the excise invoice (Do this if your plant does not allow multiple goods receipts per excise invoice).Now the system will allow you to cancel the vendor excise invoice
    above the procedure right. you will get this updation excise registers also
    Laxman

  • Reversing the material document

    Dear Friends,
    PO is created with account assignment category 'K' and subsequently GRN is done for the full quantity in March'2008.
    Some quantity is physically returned to storage location but not entered in SAP.
    Now they want to reverse that quantity in SAP.
    As opening the MM posting period is not recommended, unable to cancel the material document.
    So please suggest me a solution to reverse that quantity.
    Points will be rewarded immediately to the helpful answers.
    Raju

    Hi Sivakumar,
    I am trying to understand better:
    the matl doc created in March 08, for X qty and GRd.
    Now some qty is returned to sloc in June Right ...
    In this case, I would suggest you to create a physical inventory document for that material , and perform a adjustment of stock using 701 or 702 as appropriate.
    By doing this you need not touch the matl doc created in march 2008.
    I am assuming that, the mateiral is good and usable, or else, its better to create a return order and send it back to vendor.
    Please reward if useful.
    Please let me know if you need any ohter information too.
    Thx,
    MJ

  • J1iex cancellation -Reverse the material document before cancelling the exc

    Hi ,
    I am facing problem in reversing J1iex excise invoice .
    OUR CASE is like
    We have a purchase order of 100 pcs , against which a delivery of 10 pcs was made by the vendor.
    1) At the time of J1iex Capture , user has entered 100 pcs (by mistake) as excise invoice Qty.
    2) MIGO with Mtype 103 and 105 were prepared for 10 pcs only
    3) J1iex was also posted for 100 pcs
    Since there was a mistake while entering excise invoice qty in J1iex ,therefore we decided to reverse the entire process.The step followed were ...
    1) Reversed the Material document (using 106 movement type)
    2) Re-Posted the same excise invoice thru J1iex to reverse the Part-11 enteries
    and now when I am trying to cancel the J1iex - excise invoice , system is prompting me an error message
    "Reverse the material document before cancelling the excise invoice"
    I hope,  I am following the correct process.
    Since the material document is already reversed therefore wondering why system is prompting this ERROR message.
    Need your help
    Regards
    Shrey

    thx

  • Cancel the material doc.

    hi gurus,
    I have transfer posted 10 materials using "344" movement type,
    Now , when I am cancelling that material doc. the error message was coming -
    that is physical inventory is active for the material
    how I can cancel the material
    please advice
    subbu

    Hello Subbu,
    It seems that physical inventory is active for that material/bin/quant.
    You need to cancle the physical inventory document or complete the physical inventory process.
    Hope this helps.
    Regards,
    Arif Mansuri

  • 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

  • Wrong exchange rates ...How to reverse the material document.

    Hello,
    I have an issue with Exchange  rates . By mistake we have entered wrong exchange rates in OB08 and created purchase order and done the goods receipt with wrong exchange rates after that we have corrected the  same in OB08  later when we have done invoice receipt it has taken the new exchange rate which is correct.
    Now   i want to reverse the  invoice document & Material document  . When i have reverse the invoice document  it has taken the new exchange rate.
    Whereas when i am doing  reversal  of  material document it not taking wrong exchange rate it is taking the present exchange rate.
    Please advice how i can reverse the material document exactly with  same exchange rates  as it done for GR or How i will settle this difference amount.
    Thanks.
    Ashok

    When i have reverse the invoice document it has taken the new exchange rate.
    Maintain  exchange rate in purchase order,Tick mark fixed,Reverse/Cancel invoice document it will reverse with p.o ex. rate.
    Please advice how i can reverse the material document exactly with same exchange rates as it done for GR
    Maintain desired exchange rate in OB08 for GR Posting date,Cancel material document
    Also check
    SAP Note 518114 - FAQ: Goods movements in foreign currency
    Edited by: Jeyakanthan A on May 3, 2010 4:52 PM

  • After cancelling the  billing document accounting document not generated

    hi,
    we released the billing and accounting document generated but customer needed changes in the billing values so we cancel the billing document but accounting document not generated(reversal accounting not happen)....in document flow it shows in cancel document in blocking state ....we try to release in VF02 but it throws the error "Client 200 does not contain an active application area" . but the other sales order we test in qulaity server the scenorio is working fine...............for specific one sales order creating problem now.....
    try to solve the issue ..
    Thanks
    Muthuraman.D

    Dear all,
    I have noticed this problem in my company system.
    Problem descripion:
    - you creates an invoice and the system doesn't post it for any reason
    - then you create the cancel of the invoice, BEFORE forcing the posting of the invoice
    --> user creates Cancel, Cancel is not posted as well.
    --> from now it is impossible to post both invoices: if you try to post the Invoice after the cancel creation, the VF02 recongnise that a CANCEL exists and do not allow for the posting
    --> standard VFX3 doesn't signal this kind of not posted documents situation.
    Ok, The right procedure for thes user should be: create invoice, if not posted then try to understand why not posted, and not CANCEL it.
    But in this case VFK3 was not able to detect the invoice was not posted: it was not in the list.
    So the 2 ways must be:
    1) one possibility could be undestand in VFX3 could be enhanced: I checked in OSS but I didn't find anything.
    2) other possibility: add a further check in interface between SD and FI in order to check if original invoice is not posted to FI  and in this case block the cancel creation, as instead standard SAP does.
    Could you please give me an idea on how it would be better proceed?
    Thank You very much.
    Raffaella

  • User exit  for MIGO  after the material document is created?

    hi  guys ,
    I have requirement like after the   material document was creted in migo  i need to call my new transcation. can any one please let me know how  i have to solve this ?
    Moderator Message: Unfortunately, this is not a training forum and we can teach all about Exits and Badi's. I suggest you take a classroom course..... or do some R&D first
    Edited by: kishan P on Nov 30, 2010 11:57 AM

    Hi
    U need to create a FM with UPDATE MODULE attribute checked: so you fm can be run in UPDATE TASK
    This fm has to have the same interface of the method of the BAID (or user-exit) or a parte of it, if you don't need to use all parameters of the interface.
    All code to schedule the job has to be placed in this fm: you can use the fm JOB_OPEN and JOB_CLOSE in order to scheule a job programmatically.
    Call this fm in the BADI, the call has to be in UPDATE TASK, in this way your porgram can start as soon as all updating processes are over
    Max

  • 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

Maybe you are looking for

  • Issue with Payment Run (FPY1)

    Hi Gurus, need you help. I am getting the following message when executing the FPY1. Exceptions        1 Message no. MASSACT101 Diagnosis Counter Exceptions has value        1. For a more precise description of counter Click Here. Counter in Payment

  • SQL Server 2012 Developer Edition Installation Problem

    Hi, I have just been given a new PC by my IT department so am trying to get all the software I need onto the PC. Since I am now running windows 7 I wanted to try SQL Server 2012, however whenever I go to install it, one of the checks always fails as

  • Why can't I see the flash slide show on my own website since installing newest version?

    Since installing the newest version of flash player on my computer a few days ago (version 11.5?), I can't see the old slide show on my own website.  I know it is still there because a friend running XP can see it.  I am running Win7 Pro with IE 9 in

  • My photoshop crash when startup

    My photoshop crash when startup.Please help me!http://prntscr.com/4t7i6a-That is a picture!

  • Importing a Flat File to Oracle and updating another table

    Hey everyone, I am a newbie with Oracle, and I've tried for the last 2 days to solve this problem below. But all my searches and attempts have failed. I have a text file called ReturnedFile.txt. This is a comma separated text file that contains recor