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;

Similar Messages

  • 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

  • SRKIM:R12:AP: IMPORT 를 수행 하여 INVOICE 생성 시 DISTRIBUTION LEVEL 의 DFF 값이 생성 안됨

    PROBLEM
    R12.0.5:
    Payables Module 에서 Payables Open Interface Import Process (APXIIMPT) 를 통해 invoice 생성 시 distribution level 의 DFF 정보를 interface table 에 load 하였으나 실제 invoice 생성 시에는 해당 값들이 invoice table 로 넘어 오지 않았다.
    SOLUTION
    해당 ISSUE 는 Bug 6837035 R12 : CANNOT TRANSFER DFF FROM AP INTERFACE INTO AP THEN INTO PROJECT 에 의한 것으로 아래와 같이 작업 하여야 한다.
    1. Patch 6837035 를 DOWNLOAD 받아 TEST INSTANCE 에 적용 한다. PATCH DOWNLOAD 시 요구 되는 PASSWORD 는 Oracle Support engineer 로 부터 전달 받는다.
    2. File version 이 patch 로 인해 정상적으로 upgrade 되었는지 확인 한다.
    strings -a $XX_TOP/filename |grep '$Header'
    위의 명령어를 써서 다음 files version 을 확인 하면 된다.
    ap patch/115/import/US ap12apc.ldt 120.1.12000000.4
    ap patch/115/sql apamtpob.pls 120.43.12000000.8
    ap patch/115/sql apamtrcb.pls 120.45.12000000.7
    ap patch/115/sql apiindib.pls 120.59.12000000.13
    ap patch/115/sql apmatchb.pls 120.54.12000000.16
    ap patch/115/sql apothmtb.pls 120.19.12000000.3
    ap patch/115/sql aprcvmtb.pls 120.59.12000000.8
    3. Patch 가 정상적으로 적용 된 것이 확인 되면 System Administrator Responsibility >Applications >Profile> System 화면에서 AP: Copy Invoice Lines DFF Profile 을 조회 하여 Value 를 Distributions 으로 설정 한다.
    4. Profile 설정 후 다시 Import program 을 수행 하여 DFF값이 정상적으로 생성되는지 확인 한다.
    Reference
    Note. 784615.1 - Imported Invoices Are Not Created with DFF Information At Distribution Level

  • Import invoices using interface table

    Dear all ,
    I want to import invoice from legacy system to oracle EBS R12 , and i use interface table to import the invoice.
    The problem is when i run Payable open interface import concurrent program to import the invoices , it didn't import any invoices
    and the report output didn't show any error or any data according to the invoices.
    Report output :
    Report Date: 27-JUN-2010 11:25
    Page: 1
    Payables Open Interface Import Report
    Hold Name:
    Source Name: Manual Invoice Entry Hold Reason:
    Group: GL Date:
    Purge: No
    Summarize Report N
    Report Date: 27-JUN-2010 11:25
    Page: 2
    Payables Open Interface Import Report
    Hold Name:
    Source Name: Manual Invoice Entry Hold Reason:
    Group: GL Date:
    Purge: No
    Summarize Report N
    So i go to the db and open the interface table and the status was null ,
    i dont know why????????

    Hi ,
    100% org_id problem Please check. Same i faced after i update the org_id it is working fine and showing the output with inovice and rejection details also
    Thanks
    Venkat

  • How do I delete imported photos on the iPad in less then 2000 clics?

    Hi.
    I've been using the iPad to collect photos form my digital cameras.
    I have a few thousand of such photos on my iPad.
    Today I wanted to delete them (because they take a lot of memory and are synched anyway after correction).
    I could only find how to delete them by selecting them one by one on the iPad .
    On the Mac, I use Aperture, which has no option (AFAIK) for deleting imported photos.
    How stupid is that that you can import thousands of photos on the iPad and not delete them in under 1000 clics?
    I just found out that I still have iPhoto on my Mac, so I am going to import pictures from the iPad to iPhoto and use the option to delete them.
    Anyone with a less ridiculous solution?
    Thanks in advance,
    Jerome.

    Michael Superczynski wrote:
    Care to clue us in on how you do that?
    The iPad's file system is hidden and not accessible unless perhaps you have jailbroken the iPad.
    Not jailbroken. The OP asked about photos that were imported, not sync'ed.
    Quote: "I've been using the iPad to collect photos from my digital cameras.
    I have a few thousand of such photos on my iPad."
    The import photo albums generated using the CCK are accessable just like the "Saved Photos" album.
    As far as "clueing you in on how I do that", see my previous post.

  • 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

  • Urgently .. import invoice to AP

    Dear guys,
    I Need your expertise to import invoices from other application into Oracle AP, beside this two tables (AP_INVOICES_INTERFACE, AP_INVOICE_LINES_INTERFACE) any other table i have to take a note? and also which one are the mandatory columns in those table, so i can import data successfully.
    thanks in advance
    rgds
    wisman

    That's right. These two table are the only ones you have to fill in order to import invoices.
    The process of importing invoices checks whether the information is correct, that is, for example, whether the vendor exists and so on.
    You have documentation in the user's guide, appendix G, Payablesopen interface tables

  • Date Format For Importing Invoices

    Hi All,
    I am using the DTW and importing invoices however I am having a problem with the date.  In the docdate, and docduedate field I have entered my dates however once I import them the date for the invoices I have imported are todays date.  Have I missed a field where I should enter other dates or is my date format perhaps wrong?
    Date formats that I have tried are ddmmyyyy, mmddyyyy, yyyyddmm, yyyymmdd.
    Any help will be greatly appreciated.

    Hi there,
    The right format is YYYYMMDD. The dates you are trying to import, are they future or past dates? Under Administration -> Document Settings are the 'Block documents with earlier posting date' and 'Allow future posting date' tickboxes checked?
    Regards,
    Nat

  • 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

  • Urgent-Importing Invoices A/R thru DTW

    I need to import all open A/r invoices for a client from his legacy system. How will I do it thru DTW. please Help Me. This is urgent. The imported invoices should have an effect on the Aging report and Incoming payment due reports so that payments for those can be posted as and when recieved.

    hi debhraj,
    use oInvoices DTW templates in the following path
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oInvoices\
    There are two documents you should use it to upload
    ar invoice
    Header template
    1.documents.xlt
    Lines template
    2.documents_lines.xlt
    Mandatory fields in header template
    are  Record key,Card Code,DocDate,DocDueDate
    Mandatory fields in lines template are
    Record key,LineNum,ItemCode*,Price,Quantity,TaxCode,
    WarehouseCode*
    *you should define warehouse,customer master,
    item master,tax codes,item price in price list,numbering
    series
    you can use dtw templates in the following path
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Data preparation examples\10. Testcase1_Test Data for Import function\oInvoices
    to use it as a example.
    After successful uploading of ar invoices it
    results will be reflected in ar invoice,aging reports & incoming
    payments.
    For any doubts regarding using dtw
    refer to documentation
    how to guides in your current version
    on service market place.
    Jeyakanthan

  • Import invoice through DTW

    Hi All
    I want to know that while i'm importing Invoices through DTW of Excisable Items do i have to import corresponding payments  also. if yes then what are corresponding templates for payments.
    Thanks

    Thanks for reply,
    The scenario is : When i import A/P invoice through(DTW) tempate it show me error that "Can not create Standalone A/P Invoice and A/R Invoice" because we are using exciable item in A/P invoice template.
    i just want to know the required template for incomming and outgoing excisable item .
    Thanks

  • Import invoice for multi payment

    Hi ,
    I am having import invoice with reference to one PO , case is that i want to payee for 4 paryee
    1. Material supllier
    2. Carrier on CIF
    3.Custom
    4.Local transport .
    How can make payment for all party with reference to one import PO
    RB

    Hi Raghavendra,
    Freight, Customs duties and others create a Planned delivery condition types. While defining the condition type you can define this option. Once you define in this way, while creating Purchase order against to tht condition type you can enter the vendor name.
    For example Freight cost you hve to pay to C&F agent or FFAgent right ? In purchase order select the conditon type and click on details there you can enter the Vendor number. Like this do the same for custom duty condition types and enter customs vendor name.
    In Invoice verification in MIRO select planned derivery costs then the system will show pop screen which contains the vendors entered against condition types. Select the required vendor (FFAgent for Freight charges, customs vendor for customs duties) and post the Invoice verification.
    For material select Goods/Service items in MIRO, system by default it will take Imports vendor.
    Before posting GR for import PO you hve to post the planned delivery costs in MIRO.
    Hope its clear to you, still if u hve any questions let me know.
    reg
    Durga
    *Assign points if the info useful

  • Import Invoice via DTW - DocDate

    Dear Experts,
    I tried to import Invoice via DTW. I filled the 'DocDate' column in the oInvoice template with '20080102'. But when I checked the invoice from the A/R Invoice module the result was 20080504. Why DTW uses my system date instead of the date I put in 'docdate'? How to import this date correctly?
    Thank you in advance.

    I am running SAP 2005a PL39
    Header
    RecordKey...DocDate..DocDueDate..TaxDate..DocNum..DocType..CardCode..DocCurrency
    1..20080102..20080202..20080102     1..dDocument_Service..CPPON001..IDR
    Lines
    RecordKey..LineNum..AccountCode..VatGroup..Currency..PriceAfterVAT
    1..0..41010..O10..IDR..1244496
    Thank you

Maybe you are looking for

  • How to Input Value in  ALV report at reuntime...?

    Dear All, How to Input Value or change the value of a field in  ALV report at runtime...? regards,

  • Alerts are not coming in Alert Inbox SLG1

    Hi Experts, We have SAP NW2004s PI/XI system. We have defined alert configuration step by step with following, http://help.sap.com/saphelp_nw04s/helpdata/en/3f/81023cfa699508e10000000a11402f/frameset.htm /people/michal.krawczyk2/blog/2005/09/09/xi-al

  • Cfquery not returning correct results

    I have a process where I am pulling records from another database.  I put them in the my database and then update a flag in the record from the database so I don't pull it again.  I started noticing that the flag in the records stopped updating.  Now

  • Delivery has failed to Recipients NDR

    Question on a non delivery receipt. My boss received the email receipt below (1<sup>st</sup> one) which is fine as the guy no longer works there. But the area of concern is highlighted. It states another person in the company. He is not listed in the

  • Online issue with the radio

    I can listen to the radio on the internat but after 30 min off it shut down and i have to reset why? help anybody