How to find a cancelled material document - Urgent

Please help me how to find a cancelled material document in a pool of marerial documents.
I am trying to dig in tables MSEG, MKPF,EKBE but not able to get with.
<b>In brief, how will I find a document is cancelled or not?</b>
please hlep me.
Regards,
Anbu

Dear Anbu,
In table MSEG fields:
SMBLN - Number of Material Document
MBLNR - Number of Material Document.
Regards,
Naveen.

Similar Messages

  • How to find whether a material document(MSEG-MBLNR) is reversed or not

    Hi All,
      How can we identify a material document which is created by MB1B transaction is reversed or not. is there any field like reversal indicator in any material document table.
    Regards
    Ramana

    Hi Ramana,
    Check MBSM Transaction.
    If the Material document is reversed, and if their is some linkage between the Material document and its reversal document, you will get in this transaction.
    generally only those material document have reversal linkage which are reversed through MBST Transaction.
    Say Generated Material Document 12345 was reversed using MBST Transaction and its reversal document number is 12346. then
    Check the MSEG Table with the MBLNR value 12346. You will find their is one more field 'SMBLN' which shows your original doc i.e 12345.
    Just check it out in your test server.
    Regards,
    S Anand

  • How to cancell material document in decentralized scenario

    Dear All,
    How to cancel material document in a decentralized WM (WMS)??? I know that in a centralized scenario I should use MBST or VL09. Is there any solution?
    I would be grateful if you help me.
    Piotrek

    Dear Piotr ,
    If you want to cancel/reverse material document posted , you will enter into MBST and reverse it only.
    For goods issues with delivery use VL09 as you have mentioned.
    Other solution is enter material without referente , but you can have problem with traceability if you control receipts in your enterprise, because you have done one receipt without purchase documents.
    And to finish you can adjust your stock doing an inventory document and adjust stock.
    Best regards,
    Carlos Moçatto

  • How to find the related PI document from a material document

    Dear All experts,
        If I know the materil document number, how to find the related PI document?
    Thanks!
    Xinling

    Hello Xinling,
    You can extract the details from table MSEG.
    Regards
    Kalpana

  • Error While cancelling material document

    Hi ,
    I Want to cancel a material document which was posted some five months back in current period because already the period is closed and mean time the price of the material also has changed ,now while I am trying to cancel the document system throughs an error that document cannot be posted error in price determination what may be the cause and how to rectify.
    Regards
    kantha

    Hi Vijikantha,
       If you are trying to cancel material documents created related to delivery, you can reverse the delivery through VL09. Any material documents for goods receipt can  be cancelled through MBST. If there is a problem with the posting period, please take the help of Finance guy to open the previous period and try to post the document.
    Best Regards
    Srinivas

  • Link between cancel material document and original mat. document

    Hi friends,
    How I can get no. of original material from cancel material document ?
    Regards,
    Chetan

    Hi,
    MBST SAPMM07M Cancel Material Document
    MBSM RM07MSTO Display Cancelled Material Docs

  • Block cancel material document after MIRO

    Hello Guru
    Is it possible to set config which it could block cancel material document in MIGO or MBST after invoice document in MIRO ?

    There is no provision in config cancel the document after the MIRO.
    You only can block the payment which is the next step.
    To cancel the material document, reverse the MIRO document and then cancel the material document.

  • How to get  invoice via material document

    HI,
    How to  get  invoice via material document is there any table or any inderect way?
    thanks
    pandu

    Hi Lakshimipathi,
    thanks for your reply.
    i have checked in vbfa but it's not showing anything.
    my client is providing below information and asking that invoice number.
    material,
    plat,
    material doc,
    movement type,
    posting date.
    i have ran the mb59 by giving material , plant , movement type and Archive info struct as Z_MM_MATBE. here i got the material doc and same doc i have checked at table levle but it's showing.
    and how can i get invoice number by using this information..
    please letme know if you have any idea.
    thanks in advance.
    pandu.

  • Cancellation Material Document-MIGO Problem

    Hi All
    I done Goods Receipts (105 Movement) For material quantity =30 in date 27.08.2009 After that I haven't done any goods issue
    for the same material .Now I am trying to cancel material document ( 106 Movement)  in the same date( 27.08.2009)  of goods receipts  But
    system is given - Error Deficit of SL Unrestr. prev. 15 NO : 600538 1001 0001
    Message no. M7021
    But when I am checking in MB5B for date 27.08.2009 it is showing Stock of 36 quantity . then Why system is issuing this error massage if stock is there in that date
    please provide solution

    Error Deficit of SL Unrestr. prev. 15 NO : 600538 1001 0001
    the PREV in this message indicates that SAP is checking previous period stock. SAP does not do this daywise. It just looks into table MARD field VMLAB.
    In case of a batch managed material it is checking the stock in table MCHB field CVMLA
    It just means that you do not have enough stock at the end of the last period. Of course you have to have enough stock in current period to, to be able to goods issue this quantity.
    So you either change the goods issue date to a date in the current period, or you have to get stock into your previous period first.

  • How to get the Next Material Document Number

    Hi,
    Please let me know How to get the next Material Document Number using Functional Module,
    Material Document number are  in MSEG table.
    Regards,
    Ganesh

    Hi Ganesh,
    if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
    now you can use your number range by calling the function module
    CALL FUNCTION 'NUMBER_GET_NEXT'
          EXPORTING
            nr_range_nr             = '01' " here you have to give the number range number which you have defined in number range
            object                  = 'ZPRODLOG' " Number Range
          IMPORTING
            number                  = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
          EXCEPTIONS
            interval_not_found      = 1
            number_range_not_intern = 2
            object_not_found        = 3
            quantity_is_0           = 4
            quantity_is_not_1       = 5
            interval_overflow       = 6
            buffer_overflow         = 7
            OTHERS                  = 8.
    each and every time next number will get generated .
    i hope this will help you.
    Thanks,
    Tanmaya

  • How to cancel Material document for a Return PO

    Hi,
    I need to cancel a material documet for a retun PO. Can you please tell me how to do it?
    Regards,
    Prasanna.

    Hi,
    If the material document has been created through SD documents.
    For Ex: For an stock transfer between 2 plants using 2 step procedure, Goods Issue document is posted when you complete the shipment in VT02N. This material document can only be reversed using T-code VL09.
    Thanks and Regards,
    Maheshwari

  • How to Get PO from Material Document by MB1B!

    Hi,
    I created a PO for subcontracting. When I send
    the goods to vendor with trx MB1B and mvt type 541, Material Document Number will be generated (option: to Purchase Order) . When print out this Material Document Number by MB90, I want to get this PO number. Please let me know how to get the relation bw this PO and Material Document.(I have checked in MKPF-XBLNR, but it is blank).
    Thanks in advance.

    there's no relation. the process how you have implemented it leaves no relation between PO and GM except for your doing so 'artificially' by filling field XABLN (for example) or any other.
    if you would adjust the process to use deliveries (tx. ME2O) the prospect would not be much better but there would at least be a chance to find the relation.
    as it is, SAP designed this to be a 'transfer posting' - to do it entering a PO-number is only in order to make typing easier but does not mean, items, quantities or anything else has to be entered as it is in the PO. you can add as many line items as you like ... as long as there's available stock you get your movement.

  • Cancelling material document after usage decision

    hi experts,
    how to cancell a material document after usage decision has been made (quality to unresricted stock).
    thanks in advance
    regards
    jai

    Hi,
    whenever you do cancellation for material doument then its always done for the same stock type for which you have made GR....
    If you wanna do from it then Choose cancellation and material doc and enter the mrtl doc no.
    and execute ...
    Hope it helps..
    Regards,
    Priyanka.P
    AWARD IF HELPFULL

  • Find Out Quality Material Document

    Dear All,
               I need how to find out the quality material pending document in mkpf or mesg table.
    I want to split date wise quality pending documents for material wise. Only correct quality pending qty is there in MARD table.
    but i want to view the date wise.
    Any other table is there to get the documents
    Thanks
    Saravanan

    not solved

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

Maybe you are looking for