Invoice Reversals - Payables - How to identify

Hello,
This is regarding the invoice reversal flag column in the AP_Invoice_Distributions_All.
I had already asked a part of this at the following link. Since I marked it answered, I have another question here.
What does invoice reversal mean in Oracle payables
As per the link above, Invoice reversals are done on Distribution line when any modification is required.
My question is as follows.
Let us suppose in the AP_Invoice_distribution_Lines
Line 1 is normal.
Line 2 has mistake. And it is reversed. -- Reversal_Flag is Y
Line 3 is created which is a reversal of Line 2. - Reversal_Flag is Null
Line 4 is normal.
Line 5 has mistake. And it is reversed. -- Reversal_Flag is Y
Line 6 is created which is a reversal of LIne 5. -- Reversal_Flag is Null
Now, I need to find out which reversal is the occurance of which line. Like in the above example, how to identify that Line 3 is a reversal of Line 2 and Line 6 is a reversal of Line5.
Thank you

Hi Bob,
from the AP_INVOICE_DISTRIBUTIONS_ALL can you sort the data by INVOICE_LINE_NUMBER field.... if there is a reversal line, the reversal line would also have the base invoice line reference.....
so if line number 1 is reversed, you would see two records in this table .. one with positive value and another with negative value ..... this way you can find out the original and its reversal ....
This is another way to find, however the PARENT_REVERSAL_ID should be there as suggested by Ravi .....
Regards,
Ivruksha

Similar Messages

  • How to identify Vendor has an open PO

    Hi,
    we need to find out all the vendors having an open PO , open in the sense .. Goods not fully delivered or Invoice not fully raised..
    any help is fully appreciated with good points.
    thanks
    prasad

    HI,
    but there will be lot of movement types involved and many IR and GR doc types(BEWTP = E,R,Q,X ) will be there.. so in these what all the types we need to consider and also .. in accumulating the quantity in PO history .. we will have negative qty also .. since lot of movement types will be there we cant hard code .. so how to take care of this..
    and also in some of the documents even though the GR qty and IR qty is not equal to order qty .. it shows in the status tab at the header level as fully delivered and fully invoiced.. so how to identify that its fully delivered and fully invoiced..
    any replies will be given points..
    thanks
    prasad

  • Question related to Invoice Reversals

    Hello,
    In Oracle payables, I have a few questions regarding Invoice reversals..
    1) When can an Invoice reversal be done?
    The reason am asking this question is --
    I found on Oracle site how to do an Invoice Reversal.  Adjusting Invoice Distributions (Oracle Payables Help)..
    When I queried for an already existing invoice, go to the distributions window, I dont see the "Reverse 1" button.
    But, when we create a new invoice and then click on the distrubtions window, I was able to see the "Reverse 1" button, fill out the required fields, and save, then I was able to do the Invoice Reversal. Does that mean that only new invoices can be reversed?  and old or already existing invoices cannot be reversed?
    2) My second question is - I created an invoice for 100 dollars. Saved it. Went to the Distributions window. Filled out the requried fields in the distribution line. I created one distribution line for 40 dollars and other distribution line for 60 dollars. I reversed the second line that is of 60 dollars. It created a third line in the distributions window with an amount of -60 dollars. But still, when i query the invoice, it still shows 100 dollars. Shouldnt the invoice be 100-60 = 40 dollars, since i reversed a line of 60 dollars.
    I wanted to show it pictorially but the "Insert Image" button is not working on this site.
    Any help is appreciated. Thank you in advance.

    Hi,
    For the 1st question....
    Once you validate the invoice that reversal option will be get unavailable. Which means whether you process create accounting program or not once you validate the invoice that Reversal button will not be activated.
    But any time you can cancel the Invoice you created. It will create the following double entries in the time you processing create accounting program.
    Dr - AP Liability Account
    Cr - The relevant Account you entered in the lines or in distributions
    This is the reversal entry for the Invoice which you have been created previously. But if you have make the payment for this invoice you will have to void the payment and cancel the invoice.
    For the 2nd question
    Yes though you reverse one line it will not be changed the line total or the invoice header amount in the invoice workbench. But in the distributions window under the distribution total it will show the net total of distributions you have entered. In the distributions window that line total and distribution total should be tally to approve the invoice. Otherwise it will create a system hold and you can be view that in "Hold" tab in invoice workbench. Then you have to tally the line total and distribution total to approve that invoice.
    Hope this clarifies your concern.
    Thanks / Lathika

  • How to identify manual journal entries

    Hello,
    In the GL tables, GL headers and GL Lines, how can we identify if a journal entry is an automated entry or a manual entry.
    That is, entries can be made into the General ledger through Interface programs or other import methods. We describe them as Automated.
    And if journal entries are made directly into the GL, how to identify them against the automated ones.
    I need to know from a backend perspective, i.e which column in which GL table specifies if an entry is a manual or an automated journal entry.
    For Ex: In the GL_JE_Headers table, the JE_Source and the JE_Category mentions from where the source is.
    Like, JE_Source is Payables and Je_Category can be Purchase Invoices or Payments.
    Looking at the above line, we can identify that this is an automated entry from Payables.
    How to identify the manual entries.
    Your help is greatly appreciated.
    Thank you
    Bob

    Hi Bob,
    In the GL_JE_HEADERS table, column JE_SOURCE would have value as "MANUAL", this indicates that journal is created manually in General Ledger module and not imported from subledgers ....There is no indicative column for us to identify whether it is Automatic or Manual .... values such as MANUAL and RECURRING indicates entries that were created directly in General Ledger Module...
    Also in the GL_JE_LINES table, for GL_SL_LINK_ID and GL_SL_LINK_TABLE coumns, the column values would be NULL/Blank, since these columns normally contains reference to the base transaction in the subledger ....for a manual transaction there wont be a reference to subledger, hence they would remain as blank ..
    Regards,
    Ivruksha

  • How to identify a One time Customer in Oracle Apps AR

    Hello,
    How to identify a One time Customer In Oracle APps AR?
    Is it possible to find out how many number of transactions a Customer does so that, if the number of transactions is 1, then that customer is a one time customer. or else he is not?
    Thank you
    Bob

    Hi Bob,
    to my knowledge, i cannot recollect a seeded report from oracle that could meet your requirement. You can try running the Transaction Register report from your Go live date till now, so that system would generate a list of all the Invoices along with the Customer Name, then you could export this to excel and perform a sort, filter and groupby to get the desired result ....
    However if you are a person with technical expertise, check the table RA_CUSTOMER_TRX_ALL this stores all the transaction related information ..... you can select TRX_NUMBER, BILL_TO_CUSTOMER_ID from this table and perform a count by customer...(I am not sure on the syntax and usage of sql functions) you can get the desired results ...
    Also in future, while creating a new customer if you know well in advance that this customer is going to be an ONE TIME CUSTOMER, there you could capture that information in any unused field on the customer configuration or can enable a DFF and capture this information, so it becomes very easy to identify such customers or have a report built based on it...
    I assume there is an objecive behind trying to find One time customers or customers with a single transaction history ... are you planning to disable/end date/inactivate such customers ....?
    Regards,
    Ivruksha

  • How to identify relevant BADIs to hide a screen field from specific users

    We have a business requirement to hide a document item field (BSEG-XREF3) from specific users (i.e make the field invisible if the userid does not exist in a Z table) during FI invoice entry/maintenance/display via transactions FB01, FB02, FB03, FV50, FV60, FBV0, etc..  We know that it would be possible to do this via modification to the Process Before Output sections of LF040O00, LFDCBFM0, MF05AO00_DYNPRO_MODIFIZIEREN, MF05LO00, but would prefer to avoid modification if possible. 
    I believe that BADIs could possibly be used for screen enhancements, but have not had any previous exposure to BADIs, so I'm really not sure whether it's possible to use BADIs for our specific requirement.  For example, using the advice given in the 2nd post in thread BADI for contract, I've searched SAPMF05A for all 'CALL METHOD cl_exithandler=>get_instance' statements, and have found that a single BADI (FBAS_CIN_MF05AFA0 - EWT - Downpayment Clearing - Tax transfer for CIN) seems to exist for FB01.  The description of this BADI sounds completely inappropriate for our requirement.  However, subsequent posts in that thread suggest far more BADIs for the relevant transaction than were given when searching the ABAP for all 'CALL METHOD cl_exithandler=>get_instance' statements, so I'm not convinced that the procedure I'm following will provide me with all the relevant BADIs for the transaction.
    Please can you advise me how to identify which BADIs - if any - can be used to control screens before output for FB01 screen SAPMF05A/332 (SAP R/3 4.6C)? 
    Many thanks in anticipation,
    Jules

    Hi Kuntal,
    Thank you very, very much for your prompt response and very useful alternative suggestion.
    The screen variant solution would be invaluable under different circumstances, but would be too complex to administer for this particular issue because we're trying to hide the field from unauthorised users in over 100 invoice entry/maintenance/display transactions. 
    We can make a Process Before Output modification to 4 SAP standard programs (LF040O00, LFDCBFM0, MF05AO00_DYNPRO_MODIFIZIEREN, MF05LO00) to make the field invisible for unauthorised users (i.e. whose user-ids are not in a Z* table), but would prefer to avoid modification if we could use BADIs instead.  You've said that you're not sure how we can identify the relevant BADIs, but I very much appreciate the suggestion you've made anyway - it might be useful to others who find themselves in a similar situation for a more limited number of transactions.
    Please can someone advise me how to identify which BADIs - if any - can be used to control screens before output for FB01 screen SAPMF05A/332 (SAP R/3 4.6C)?
    Many thanks,
    Jules

  • How to identify BTE's relating to a transaction?

    Can anyone pls tell me how to identify BTE's related to a transaction...or rather what are the BTE's related to the transaction CM01,CM02,CM03,CM04?

    Example Business Scenario for Business Transaction Events
    Company A would like to copy the group key field from the vendor master into the allocation field on all the line items within a vendor invoice and payments, including the vendor lines. This requirement assumes only one vendor is posted to in a document.
    To accomplish this requirement, Company A will use the Business Transaction Event 1130, Post Document: SAP Internal Field Substitution.
    1. IMG Menu Path: Financial Accounting Financial Accounting Global Settings Use Business Transaction Events Environment Infosystem (Processes).
    2. Find the correct Business Event. You are updating a field, so you select the Processes Info System instead of the Publish and Subscribe Info System.
    3. Execute the search with the defaults.
    4. Find the correct interface for updating a document: Post Document: SAP- Internal Field Substitution
    5. Put your cursor on the event and click on the Sample Function Module button.
    6. You are now in transaction SE37 – Function Builder. This is the function module (sample_process_00001130) you will need to copy into a "Z" name function module for your coding
    7. Click on the Copy button.
    8. Enter the "Z" function module name in the To Function Module field
    9. Enter a Function Group. If you need to create a "Z" function group, go to transaction code SE37 and follow menu path: Go to Function Groups Create Group. A function group is a logical grouping of function modules, and the ABAP code is generated for function groups. You will be prompted for a development class and transport when creating the function group.
    10. In Function Builder (transaction SE37), enter the new "Z" function module. Click on the Change button.
    11. The system will default into the source code screen where you may enter your ABAP code.
    12. Notice the tables available for the code. Additional tables may be declared if necessary.
    13. Enter the following source code
    tables: lfa1.
    data: z_groupkey like lfa1-konzs.
    z_groupkey = ' '.
    loop at t_bseg.
    check for vendor lines. If one is found, read the vendor master and
    retrieve the group key field.
    if t_bseg-koart eq 'K'.
    select single konzs from lfa1 into z_groupkey
    where lifnr = t_bseg-lifnr.
    endif.
    Move the group key field into all line items allocation field.
    loop at t_bsegsub.
    t_bsegsub-zuonr = z_groupkey.
    modify t_bsegsub index sy-tabix.
    endloop. "t_bsegsub
    endloop. "t_bseg
    14. Save the function module.
    15. Back out to the main Function Builder screen by clicking on the green arrow button.
    16. Activate the function module by clicking on the Activate button
    17. Assign the function module to the event in the IMG: Financial Accounting Financial Accounting Global Settings Business Transaction Events Settings Process Function Modules of an SAP Appl.
    18. Hit enter past the warning messages that this is SAP data.
    19. Click on the New Entries button.
    20. Enter the process for your interface. In your example it is 00001130.
    21. Enter the country the interface is valid for. If it is valid for all countries, leave this field blank.
    22. Enter the application the interface should be called for. If it should be called for all applications, leave this field blank. Please note that not all integrated transactions are programmed to go through these interfaces! You will need to test to find out!
    23. Enter the new "Z" function module
    24. Save the settings. At this point you will be prompted for a CTS number for the configuration change.
    25. The Business Transaction Event is complete! You are ready for testing.
    http://help.sap.com/saphelp_erp2005/helpdata/en/3b/7f3e8be57c11d1951f0000e82dec10/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/ad/fc5a4064b4ef6fe10000000a1550b0/frameset.htm
    Example
    http://fuller.mit.edu/user_exits/business_transaction_event.htm
    have a look here too:
    Re: Open FI
    <b>Reward points</b>
    Regards

  • How to identify the bill-to-site location for a customer

    Hi All,
    How to identify the bill-to-site location for a customer.
    I want to determine the language output of the AR invoice report based on the bill-to site address.
    If the bill-to site is located in Sweden, the document should be in Swedish. If the bill-to site is located outside of Sweden, the document should be in English.
    I have defined a query but not able to identify from which column I can identify the bill-site-location.
    select --a_bill.org_id,party_name,account_number,a_bill.CUST_ACCT_SITE_ID
    from
    apps.hz_parties party
    ,apps.hz_party_sites party_site
    ,apps.hz_cust_accounts b
    ,apps.hz_cust_acct_sites_All a_bill,
    apps.hz_locations loc,
    apps.hz_cust_site_uses_all u_bill,
    apps.ra_customer_trx_all trx
    where party.party_id=party_site.party_id
    AND a_bill.party_site_id = party_site.party_site_id
    AND b.party_id = party.party_id
    AND loc.location_id = party_site.location_id
    AND u_bill.cust_acct_site_id = a_bill.cust_acct_site_id
    AND trx.bill_to_customer_id = b.cust_account_id
    AND trx.bill_to_site_use_id = u_bill.site_use_id
    Thanks,
    Joohi

    Hi ,
    Check this apps.hz_cust_site_uses_all here site_use_code will be there , you can find Bill_To Ship_to , from there you can find the site_use_id and location Id
    Thanks
    Shagul

  • Iexpenses not showing as invoice in payables

    Hi Gurus,
    i have an i expenses report which is approved and but cannot be viewed on the the invoice window in payables, i think it is not been created as invoice in payables.
    What might be the cause for this, ihave investigated and note that the expense account code combination of the employee is correct. pls help pelp pelp

    Once the Expense Report Export Program (in R12) / Expense Report Import Program (11i) is run there will be an invoice created. If you dont see an invoice created, run the query
    select reject_code from ap_expense_report_headers_all where report_header_id = :1
    where :1 is your report header id, correct the rejection issue and re-run the export/import program

  • How to identify missing records in a single-column table?

    How to identify missing records in a single-column table ?
    Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.

    Something like:
    WITH t AS (
               SELECT 1 ID FROM DUAL UNION ALL
               SELECT 2 ID FROM DUAL UNION ALL
               SELECT 3 ID FROM DUAL UNION ALL
               SELECT 5 ID FROM DUAL UNION ALL
               SELECT 8 ID FROM DUAL UNION ALL
               SELECT 10 ID FROM DUAL UNION ALL
               SELECT 11 ID FROM DUAL
    -- end of on-the-fly data sample
    SELECT  '[' || (id + 1) || ' - ' || (next_id - 1) || ']' gap
      FROM  (
             SELECT  id,
                     lead(id,1,id + 1) over(order by id) next_id
               FROM  t
      where id != next_id - 1
    GAP
    [4 - 4]
    [6 - 7]
    [9 - 9]
    SQL> SY.
    P.S. I assume sequence lower and upper limits are always present, otherwise query needs a little adjustment.

  • How to identify a type of consolidation in a system?

    Hi,
    I need to understand how to identify the type of consolidation we are doingion the system.
    Example like Step consolidation, Simultaneous consolidation or other method.
    This will be helpfull for me in doing my currest support issues.
    Thanks in advance,
    Richard..

    Not sure to understand your question.
    What is the precise context of your issue ? Is it a problem of SEM-BCS configuration or a general problem on how consolidation works ?

  • Error while saving invoice in payables

    hai all,
    I am getting an error like APP-SQLAP-10000: SQLERRM occurred in Maintain_DBI_Summary AP_AI_TABLE_HANDLER_PKG.INSERT_ROW........
    while saving an invoice in Payables. Can any one help me on this error.
    regards,
    satya

    Hi satya,
    Send me the exact error message you got/
    try with this
    fact: Oracle Payables 11.5
    fact: APXINWKB - Invoice Workbench
    symptom: Unable to click into the Distributions button
    symptom: APP-SQLAP-10000 ORA-0001: unique constraint (AP.AP_INVOICES_U1)
    violated occured in AP_AI_TABLE_HANDLER_PKG.INSERT_ROW<-AP.INVOICES_PKG.
    ISNERT_ROWS<-APXINWKB
    with parameter (p_Rowid= ,p_invoice_id = 142061)
    while performing the follwoing operation:
    Insert into ap_invoices
    change: NOTE ROLE:
    The problem occurs during the insert into ap_invoices_all statement.
    The error indicates that the problem is with the AP_INVOICES_U1 index.
    This index looks at one column which is the invoice_id. The system will not
    allow there to be more then one invoice_id.
    cause: When clicking into the distributions button, the system is trying to
    save the
    invoice header. At this point, the system tries to assign an invoice_id to the
    invoice. The invoice_id is being retrieved from the ap_invoice_s sequence.
    If the next value in the sequence already exists in the AP_INVOICES_ALL table,
    then the system will produce this error.
    fix:
    Run the following selects:
    #1
    select max(invoice_id)
    from apps.ap_invoices_all;
    #2
    select ap.ap_invoices_s.nextval
    from dual;
    Update the nextval in the ap_invoices_s sequence to be greater then the max
    invoice_id value in ap_invoices_all table.
    plz let me know it works or not?
    --Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to identify the user who created the variant

    Hi All,
    Can anyone tell me how to identify the user who created the variant ?

    Hi Dear,
    For the same go to SE11 and view the table "VARID". This table give the details of the program,user,variant etc.
    From this table u can know which user created the variant. Hope this solve your purpose.
    Regards

  • How can identify the default currency for a customer?

    How can identify the default currency for a customer?
    I know that this is being determined when you create a sales order for a particular customer, for example, so I could break this process open and find out what it uses. But I thought it worth asking in this forum first.
    Blue

    Hi Gary,
    As per my understanding of your question I am replying , If you are looking some thing else then I request you to please elaborate your query.
    If you see the BP sales area data in transaction BP, In billing tab you maintain the currency for a customer which is default currency when you create a sales order.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash

  • How to identify german language in a program

    Hi All,
    i have one requirement. that is how to identify german language in a program.(suppose text elements, data elements are in german language our program should identify that german language). Anybody have solution for this, pls send me as soon as possible.
    Thanks for all in advance.
    Thanks & Regards,
    Nagarjuna.

    Hi Nagarjuna,
    2 possible approaches:
    1. Source language: Every program is initially created with source language = logon language. Sored in TRDIR-RLOAD.
    2. Try to read program texts in specific language (DE).
        READ TEXTPOOL pv_repid INTO lt_textpool LANGUAGE 'D'.
        IF sy-subrc                           = 0.
          MESSAGE s000(R1)
            WITH 'German texts present in' pv_repid '' ''.
        ELSE.
    Regards,
    Clemens

Maybe you are looking for

  • How to move cursor from one textfield to another textfield byusing enterkey

    hii all, I have a problem in java script. To move cursor from one textbox to another text box ,I have take the length of the textboxes of the first column.I used onkeyDown event . in the function ,firest i checked the condition like for(i=0;i<form1.b

  • Want to change my iCloud email address?

    How do I change my iCloud email address?

  • Commit Not reflected

    Hello all, I have an oracle 9i database -> 9.2.0.8.0. On this database we have a table that has close to 40,00000 records. When we are doing an insert to this table as : insert into <Table1> select * from <Table2> where date> sysdate - 1/24; commit;

  • Mac Mini Server: Wich drive bay is which disk number

    Dear readers and admins I need to know which drive bay does correspond to which disk number in the diskutil list command. I need that, as I made a software raid1 and if I get an error message after executing the command "diskutil appleRaid list" I ne

  • Did the thunderbolt update just kill my ability to use my external monitor?

    My external monitor stopped working after performing tonight's software updates. 2011 MBA 13inch running 10.7.4  Computer takes 2 minutes to boot to a grey pattern on the MBA and an all blue desktop on my external.  Boots fine when I unplug the monit