Deleting AP Invoice

Hi Champs,
Any suggetion on deleting Old Invoices from AP_INVOICES_ALL which are no more required by organization
Thanks in Advance,
AjitR

Hi Ajit
You can purge invoices , provided following conditions should match
If you are purging invoices, the Purge program purges related invoice
distributions, invoice approvals, and invoice batches. You can purge
invoices that meet the following criteria:
• Last Update Dates of the invoice and its distributions, and the
Invoice Date, is less than or equal to the Last Activity Date
• Invoice is fully paid or is a zero–amount invoice
• Invoice is fully posted
• Invoice does not have any 1099 distributions, and is not for a
1099 supplier
• Invoice was not generated by a recurring invoice template
• Invoice is not a prepayment, and no prepayments have been
applied to the invoice
• All of the invoice’s payments meet the Payment Purge Criteria
• No open encumbrances are associated with the invoice
• Invoice is not Oracle Projects related
• All purchase orders referencing the invoice meet the Purchase
Order Purge Criteria (this condition applies only when you
choose Matched Invoices and POs for the purge category)
• If Oracle Assets is installed, all of the invoice’s distributions were
tested by Mass Additions
Ganesh

Similar Messages

  • How to delete one invoice document in FI module!

    Hi all,
    Does anybody know the T-code to delete a invoice document in FI module.
    Thanks in advance!
    Best regards,
    Wendong Feng

    Hi
    You can't delete the invoice document. probably you can reverse(cancel) the invoice document using MIRO or MR8M.
    Actual deletion can be done only by archiving.
    Regards
    Mani

  • TCode MIR7: Dump while deleting Parked Invoice with zero value

    Hi,
    We had parked an Invoice using TCode MIR7 with Zero Value with reference of a PO. Now as the value of invoice is zero, we want to delete it using MIR7.
    In MIR7, when we go to Invoice Document-->Delete, it results in dump. Dump is as follows:
    Error analysis
        Short text of error message:
        No document found
        Long text of error message:
        Technical information about the message:
        Message class....... "FI"
        Number.............. 124
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "SAPLFMPR" or "LFMPRU05"
        "FM_CO_DOCUMENT_DELETE"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which actions and input led to the error.
    Information on where terminated
        Termination occurred in the ABAP program "SAPLFMPR" - in
         "FM_CO_DOCUMENT_DELETE".
        The main program was "SAPLMR1M ".
        In the source code you have the termination point in line 34
        of the (Include) program "LFMPRU05".
    Any help.
    Regards,
    CMC Team.

    Hi,
    Check following SAP notes:-
    1173846  (MM) Termination when deleting prepaid logistics invoices
    Reason and Prerequisites
    This problem is caused by a program error.
    1224772  (MM) Error message FI24 when deleting parked invoices
    Reason and Prerequisites
    This is due to a program error. The total amount of the parked invoice is '0'.
    Regards,
    Anand Raichura

  • Handling deleted parked invoices in the BI report

    Hi Experts,
    I am working on a PO History report, which has an invoice total summary .The invoice total includes Posted and Parked invoices,  but if the parked invoice is deleted they are still showing up on the report for the total, the requirement is to not include the deleted parked invoices in the total.
    Pls guide me to proceed in this.
    Thanks,
    Raj

    Hi,
    check this link on help.sap
    Link: [http://help.sap.com/saphelp_dm40/helpdata/en/0e/8001bf2b144c24a23c32b1fcaa1868/content.htm]
    Regards,
    Neeraj

  • Delete posted invoice

    I posted invoice 123 against PO due to some problem I tried to reverse the invoice 123 but system will not allow. I posted another invoice 678 with dif ref number for the same PO. Now I want to delete first invoice 123. so please help me how to do it. It should not be any problem with account posting etc. PO is created for text items no material (account assignment K ) so no GR. Please consider no excise duty posting nothing. My customer is not an Indian customer.

    HI,
    Reverse the Invoice by MR8M. Put the same date of Invoice as the posting date.
    Hope this helps.
    Regards,
    Prasanna
    Award if helpful

  • Deleting Imported Invoices

    Hi,
    I'm a new member of this forum and a newbie to Oracle Financials. I'd like to thank in advance those who will take time to reply to this post.
    How do I delete Invoices in Payables? We already imported (using the Open Interface) a set of Invoices to Payables and after realising some mistakes, we would like to delete those invoices and import a new set.
    We also have the same problem with Receivables.
    Cheers,
    Marky

    Just to share with others. Here's an SQL to delete AP Invoices. As noted by others who replied, this should only be done if the Invoice is not yet posted to the GL. Thanks to those who replied!
    (Disclaimer: this works for us but I cannot assure that it will work for everyone.)
    Marky
    delete from ap_payment_schedules_all
    where invoice_id in (
    select invoice_id
    from ap_invoices_all
    where to_number(invoice_num) < &INVOICE_NUM);
    delete from ap_invoice_distributions_all
    where invoice_id in (
    select invoice_id
    from ap_invoices_all
    where to_number(invoice_num) < &INVOICE_NUM);
    delete from ap_invoices_all
    where to_number(invoice_num) < &INVOICE_NUM;

  • Need user exit when deleting an invoice using MIR6 transaction

    Hi all,
    I m trying to delete an Invoice using MIR6 transaction. And I need a user exit to be triggered  on deletion of an Invoice.
    Can anybody help me and let me know if any user exit is available there?
    Points will be rewarded.
    thanks
    Ashish

    Hi
    Business Add-Ins
    Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
    As with customer exits (SMOD/CMOD [Page 40]), two different views are available:
    • In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object.
    • In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available.
    In contrast to customer exits, Business Add-Ins no longer assume a two-system infrastructure (SAP and customers), but instead allow for multiple levels of software development (by SAP, partners, and customers, and as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
    SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time.
    In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example). All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard.
    A single Business Add-In contains all of the interfaces necessary to implement a specific task. In Release 4.6A, program and menu enhancements can be made with Business Add-Ins. The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects
    DEFINING THE BADI
    1) execute Tcode SE18.
    2) Specify a definition Name : ZBADI_SPFLI
    3) Press create
    4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
    multiple use.
    5) Choose the interface tab
    6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
    7) Dbl clk on interface name to start class builder . specify a method name (name,
    level, desc).
    Method level desc
    Linese;ection instance methos some desc
    8) place the cursor on the method name desc its parameters to define the interface.
    Parameter type refe field desc
    I_carrid import spfli-carrid some
    I_connid import spefi-connid some
    9) save , check and activate…adapter class proposed by system is
    ZCL_IM_IM_LINESEL is genereated.
    IMPLEMENTATION OF BADI DEFINITION
    1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
    2) Specify aname for implementation ZIM_LINESEL
    3) Specify short desc.
    4) Choose interface tab. System proposes a name fo the implementation class.
    ZCL_IM_IMLINESEL which is already generarted.
    5) Specify short desc for method
    6) Dbl clk on method to insert code..(check the code in “AAA”).
    7) Save , check and activate the code.
    Some useful URL
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    Now write a sample program to use this badi method..
    Look for “BBB” sample program.
    “AAA”
    data : wa_flights type sflight,
    it_flights type table of sflight.
    format color col_heading.
    write:/ 'Flight info of:', i_carrid, i_connid.
    format color col_normal.
    select * from sflight
    into corresponding fields of table it_flights
    where carrid = i_carrid
    and connid = i_connid.
    loop at it_flights into wa_flights.
    write:/ wa_flights-fldate,
    wa_flights-planetype,
    wa_flights-price currency wa_flights-currency,
    wa_flights-seatsmax,
    wa_flights-seatsocc.
    endloop.
    “BBB”
    *& Report ZBADI_TEST *
    REPORT ZBADI_TEST .
    tables: spfli.
    data: wa_spfli type spfli,
    it_spfli type table of spfli with key carrid connid.
    *Initialise the object of the interface.
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    selection-screen begin of block b1.
    select-options: s_carr for spfli-carrid.
    selection-screen end of block b1.
    start-of-selection.
    select * from spfli into corresponding fields of table it_spfli
    where carrid in s_carr.
    end-of-selection.
    loop at it_spfli into wa_spfli.
    write:/ wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-deptime,
    wa_spfli-arrtime.
    hide: wa_spfli-carrid, wa_spfli-connid.
    endloop.
    at line-selection.
    check not wa_spfli-carrid is initial.
    create object exit_ref.
    exit_ref1 = exit_ref.
    call method exit_ref1->lineselection
    EXPORTING
    i_carrid = wa_spfli-carrid
    i_connid = wa_spfli-connid.
    clear wa_spfli.
    check the following user exits for MIR6
                                                                                    LMR1M001            User exits in Logistics Invoice Verification                     
    LMR1M002            Account grouping for GR/IR account maintenance                   
    LMR1M003            Number assignment in Logistics Invoice Verification              
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs     
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting     
    LMR1M006            Logistics Invoice Verification: Process XML Invoice              
    MRMH0001            Logistics Invoice Verification: ERS procedure                    
    MRMH0002            Logistics Invoice Verification: EDI inbound                      
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP                  
    MRMN0001            Message output and creation: Logistics Invoice Verification      
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Deletion parked invoice document

    Hi Experts,
    I have company code (ausbk), document number (belnr), fiscal year (gjahr ), using these parameters I need to delete parked document.
    Please suggest how to write code or function module for deletion parked invoice document.
    Thanks & Regards,
    Sridhar

    Hi,
    You can use a BDC for the same. Create a recording using SHDB or SM35 => Recording.
    Best regards,
    Prashant

  • Deletion of invoice

    is it possible to delete saved invoices in database??? Because these invoices are wrong unfortunately.
    So please suggest me proper way to delete these invoices from DATABASE. Please help me out.
    With Regards...
    Ambesh Tripathi

    Hi Ambesh........
             Its totally impossible to delete any of the document in SAP even though its non accounting document like sales order purchse order. You cant even the cancel as its option is not there in SAP. You can only reverse the effect by punching Credit Memo.
    Regards,
    Rahul.

  • Tcode or report  to delete conf,invoices and po?

    hi friends
    Tcode or report  to delete conf,invoices and po.
    Regards
    Vinny

    Hi Vinny,
    Please go to Confirm goods/services tab then selct the GR which you want to delete then click on delete button ..so system will post the revere GR with movement type 101...
    Please go to "enter invoces and credit memos tab then select the invocie which you want cancel and then clcik on cancel button so ssytem will post the credit memo ..
    We can not delete PO in SRM where in classic scenario....
    Thanks
    Ravi

  • AP API package for deleteing AP INVOICE

    Dear All
    We are looking for AP API package for deleteing AP INVOICE. Can anyone please tell me where can i find that package.
    Regards
    Musaddaq

    We are looking for AP API package for deleteing AP INVOICE. Can anyone please tell me where can i find that package.Please see this thread -- Api Delete ap invoice
    Thanks,
    Hussein

  • Api Delete ap invoice

    Dear Oracle man
    kindly , I want to delete ap invoice from system programmaticaly using api's
    can you send me api's to perform delete ap invoice
    Thanks

    Hello,
    System will not allow to delete any invoice once it is created as it will lose the data integrity. In fact till 11i , there is no API available for creation of AP invoices , we have to use open Invoice interface for the same.

  • Reversing or deletating AP invoice which is posted and transferred to GL

    I wanted to delete a invoice which is accounted and validated and transferred to GL. This invoice has 2nd distribution line causing problems, somebody managed to transferred to GL without entering an amount this has to reversed or deleted. how can I do it, if somebody had similar problem and solved it please assist me regarding this issue as soon as possible. Thanks very much for the consideration friends.

    Thank you for the answer, how can I remove the 2nd distribution line along with that invoice, there are holds on these invoices and some are not accounted or validated. When I try to delete it says " the amount filed must be filled" try to insert an amount it says'The field is protected". Any ways to reverse or delete the 2nd distribution line in that invoice.
    Please provide a solution.
    Thank you.
    Sam

  • How can we delete the invoice from hub table

    Document No 90048130
    Invoice No 9000112482
    Amount 31,009.17
    Currency EURO
    here the document having billing documents . how can i delete the invoice document . here billing documents we can cancell it using the t code vf11 .but how can we delete the invoice .can u please help on this .
    Thanks in advace .
    Raj

    Here is the SAP help on this topic.  I guess that answers your question.
    When you cancel a billing document, you are actually creating a cancellation document. The cancellation document copies data from the billing document and transfers an offsetting entry to the accounting department.
    Features
    The cancellation document causes the reference document for the billing document (e.g. the delivery) to be reopened so that a correct billing document can be created.
    You can also cancel individual items. In the billing document, goto: Edit - Cancel item This function is not possible for:
    rebate agreements
    transactions involving credit cards
    documents that have not yet been forwarded to Financial Accounting

  • Deleting parked invoices

    we are using incominginvoice_park to park an invoice.
    sometimes we need to delete a parked invoice.
    actually we do a batch input using MIR4 and do the deletion
    Is there a BAPI that can do that for us?
    Regards
    Felix

    If you use MIR7 tcode I think you stand a better chance of controlling it. By comparing the 2 SAP (SAP_MM_IV_CLERK_PARK & SAP_ISA_JIT_CONTROL )roles , I found one area was different which is F_BKPF_BLA Acctg doc type. For MIR7 the ACTVT is only  01-Create but for MIRO it has to have 10-to post. Another is K_TP_VALU CO-Transfer Price Valuations where MIR7 has none but MIRO has 10-to post.  Try and see what happens

Maybe you are looking for

  • Basic settings tab missing from Develop module

    I recently bought lightroom 4 after using the free 30 day trial, and i have no basic settings on my mac, can't find them anywhere? My tabs go from histogram to colour curve. Where are they? Very confused.. Message title was edited by: Brett N

  • Album vs Slideshow vs Smart Album

    Hi, I tried to change the order in a Smart Album, but with no luck. Why can't you change the order in a Smart Album? To me, slideshows and Albums are roughly the same. Ok, a slideshow can be altered much more for visual presentation. However the basi

  • Correlation not working

    Hi, I have a large file from the sender system which I am splitting by using 'recordsets per message' in the file adapter. Now I want all the split files to enter the same BPM. I have designed the BPM logic by using the correlation in the receive ste

  • Problems disabling restart session persistence in Tomcat

    I'm running Tomcat 5.5.17. I've been working on an application for quite some time when the tomcat logs suddenly started to fill up with the following errors each time I restart Tomcat: 2006-09-29 21:15:10,539 | WARN | StandardSession.java | writeObj

  • Run-time error "CALL_FUNCTION_NOT_FOUND" occurred

    Hi everyone: I am proving an interface from a ficticious R/3 system to XI, but there is a problem when connecting with XI. The outbound channel(sender to XI) is not created in the directory because of from a R/3 service you dont need to create one. I