Invoice validation Tax Query

Hi,
we have some invoices being loaded by AP interface with just ITEM lines and no TAX lines. This worked fine, till recently some patches were applied and now on running the validation it generates a tax line for them.
Some setup in ETax seems to have changed due to patches. Any specific pointers to what may be causing this or I can check in the setups ?
Thanks

Hi
Could you please check the following note: AP: Tax Calculated Twice For Invoices Imported With Tax Lines On Invoice Validation [ID 233859.1]
Altough it relates to earlier version of Oracle Apps, however just you can check it once.
Thanks
Manish

Similar Messages

  • AP Invoice Validation Program deleting the tax lines after reclassification

    Hi,
    Environment:
    R12 Oracle Payables
    Database: 10.2.0.4.0
    Whenever I run the AP Invoice Validation Program after reclassification, it is deleting the original and reclss tax entries.
    Does anybody know the reason for this, and how to prevent the deletion of tax lines ?
    Thanks in Advance
    Karbi

    THanks V.kras for the information...
    Is is possible to make the system find rules after reclassification....??
    Is it a bad idea to perform validation after reclaasification, as I am losing the existing (original) tax lines....??
    Thanks in Advance
    Karbi

  • Invoice Validation Error ORA-06512: at "APPS.AP_APPROVAL_PKG", line 111124

    All,
    I am getting below error message from log file after Invoice Validation program error out, please advise.
    I could not search on "ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124" search, but found other errors and able to see we are very much higher file version than the note id advised.
    Please help any one for this issue.
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APPRVL module: Invoice Validation
    Current system time is 01-MAR-2013 03:40:12
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_option='All'
    p_inv_start_date='2013/02/01 00:00:00'
    p_inv_end_date='2013/02/28 00:00:00'
    p_trace_flag='N'
    p_commit_size='1000'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    MSG-00101: Error occured in BATCH_APPROVAL()
    MSG-00102: Error Code : -20001
    MSG-00103: Error Message : ORA-20001:
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124
    MSG-00000: When Others:User-Defined Exception
    REP-1419: 'beforereport': PL/SQL program aborted.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1419: MSG-00101: Error occured in BATCH_APPROVAL()
    MSG-00102: Error Code : -20001
    MSG-00103: Error Message : ORA-20001:
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124
    MSG-00000: When Others:User-Defined Exception
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 10.1.2.3.0 - Production on Fri Mar 1 03:40:15 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 42770000.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 01-MAR-2013 04:06:57
    ---------------------------------------------------------------------------

    Please post the details of the application release, database version and OS.
    Please also see these docs.
    Invoice Validation (APPRVL) Errors Out With ORA-20001: APP-SQLAP-10000: ORA-00060 [ID 1460249.1]
    R12: Invoice Validation Is Failing When Running With Parameter 'ALL' [ID 1115016.1
    R12 Payables Invoice Validation Error: Unexpected error occurred during Tax Calculation. [ID 961182.1
    Ap Invoice Validation Errors: P-1419: Msg-00101: Error Occured In Batch_approval [ID 1140828.1]
    Invoice Validation Error : REP-1419:ERROR OCCURED IN BATCH_APPROVAL() [ID 1120213.1]
    R12: Validate Invoice Errors APP-SQLAP-10000, ORA-01403 and ORA-20001 [ID 1308869.1]
    Thanks,
    Hussein

  • Need help in tax query!

    Hi All,
    Greetings!!
    we have a discoverer query which calculates the withholding tax details.
    the query used to run fine in 11i before.
    Now client in on R12.
    Query has input parameter as TAX_CODE_ID....
    But now as the architechtural change... TAX_CODE_ID is coming as NULL when we enter invoices in front end.
    We want to change the query such that the same details as that of 11i should come in R12 as well.
    Can you plese suggest the ways to achieve this.
    PFB the 11i query for your reference.
    SELECT
         ail.invoice_num,
         ail.description,
         ail.invoice_date,
         aps.due_date payment_due_date,
         ack.check_date payment_date,
         pov.segment1 supplier_num,
         pov.vendor_name supplier_name,
         pos.vendor_site_code supplier_site_name,
         adl.description inv_line_desc,
         adl.attribute6 statutory_memo,
         ail.attribute5 batch,
         adl.period_name,
         adl.awt_group_id,
         adl.tax_code_id,
         adl.invoice_distribution_id,
         ail.invoice_id
    FROM apps.ap_invoices_all ail,
    apps.ap_invoice_distributions_all adl,
    apps.ap_awt_groups awt,
    apps.ap_lookup_codes alc,
    apps.ap_payment_schedules_all aps,
    apps.hr_organization_units hou,
    apps.gl_sets_of_books gsob,
    apps.gl_code_combinations gcc,
    apps.po_vendors pov,
    apps.ap_invoice_payments_all aip,
    apps.ap_checks_all ack,
    apps.po_vendor_sites_all pos
    WHERE ail.invoice_id=adl.invoice_id
    AND adl.line_type_lookup_code in ('ITEM','AWT','ERV','IPV')
    AND alc.lookup_type(+) = 'NLS TRANSLATION'
    AND alc.lookup_code = DECODE (adl.match_status_flag,'A', 'APPROVED' )
    AND ail.org_id = hou.organization_id(+)
    AND hou.name = 'JP OU'
    AND adl.awt_group_id = awt.GROUP_ID(+)
    AND adl.set_of_books_id = gsob.set_of_books_id
    AND ail.invoice_id = aps.invoice_id
    AND adl.dist_code_combination_id=gcc.code_combination_id
    AND ail.vendor_id=pov.vendor_id
    AND ail.invoice_id=aip.invoice_id(+)
    AND aip.check_id=ack.check_id(+)
    AND ail.vendor_site_id=pos.vendor_site_id
    AND adl.tax_code_id = :P_TAX_CODE_ID;
    Thanks,
    Sachin

    SELECT invoice_id,
    invoice_line_number,
    substr(distribution_line_number,1,8) distribution_line_number,
    substr(line_type_lookup_code,1,9) line_type_lookup_code,
    accounting_date,
    period_name,
    amount,
    base_amount,
    posted_flag,
    substr(dist_code_combination_id,1,15) dist_code_combination_id,
    substr(accounting_event_id,1,15) accounting_event_id,
    substr(invoice_distribution_id,1,15) invoice_distribution_id,
    substr(parent_reversal_id,1,15) parent_reversal_id,
    substr(po_distribution_id,1,15) po_distribution_id,
    org_id
    FROM AP_INVOICE_DISTRIBUTIONS_ALL
    WHERE invoice_id = &inv_id
    ORDER BY invoice_distribution_id asc
    The line_type_lookup_code should contain the tax_code.
    Run this query for some invoice having tax lines. You should get all the required details.
    Hope that helps.
    Thanks,
    Anil

  • Error "10000180 Specify valid tax code" after upgrading 2007 to 8.8 PL15

    Hi all,
    In one client, I've upgraded the database from 2007 to 8.8 PL15.
    When I try to add an Invoice or Sales order in 8.8, the system gives an immediate error "10000180  Specify valid tax code" and does not open the standard Invoice form to add a new document.
    The same happens when I select other sales or purchase menu options.
    I checked the tax definition (VAT table) and everything seems fine.
    Does anybody know what can cause this error?
    It must be related with 8.8 version, since in 2007 it worked fine...
    Thanks all,
    Manuel Dias

    Hi Syed,
    After some long checks, I've discovered the problem: after the upgrade, the VTG1 table had wrong value keys (01, 02, 03 and 04) against the OVTG table (which was 1,2,3 and 4).
    I've done a manual update of this entries and then it worked.
    Thanks anyway,
    Manuel Dias
    Edited by: Manuel Dias on Mar 28, 2011 9:46 PM
    Edited by: Manuel Dias on Jun 21, 2011 10:04 AM

  • Which invoice validation status transfer to next period or future period.

    Dear All
    can any one explain which invoice validation status transfer to next period or future period.
    The validation status can be 1) Validated 2) Needs revalidation 3) cancelled 4) Approved 5) never validated.
    can i know which validation status moves to next open period and which can be to future open period.
    Regards
    Shaizy
    Edited by: user11298424 on 10 Aug, 2012 2:51 AM

    Hi ,
    I have run the query given by you. it shows Y for posted. but when I query JE_BATCH_ID from AP_INVOICE_DISTRIBUTIONS_ALL, it shows null JE_BATCH_ID.
    How can I get corresponding GL Batch and journals for these invoices?
    JE_BATCH_ID     ACCOUNTING_DATE     PERIOD_NAME     POSTED_FLAG     ACCRUAL_POSTED_FLAG
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y
         3/28/2012     MAR-12     Y     Y

  • Populate either tax_rate_id or tax_rate_code to create a valid tax line

    Hi All,
    I am getting error in AP Invoice Import program while importing invoices through open interface R12. Actually concurrent program completes successfully but when I open output, it says that invoice is rejected and it gives the following error message: ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line.
    I've checked metalink and found this closest match:
    Ap Invoice Import Program completes with Error, Rejection reason ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line." [ID 1298220.1]
    Cause
    This issue is explained in BUG 10268801 - R12: APXIIMPT IMPORTS INCORRECT INVOICE.
    Payables Invoice Import Program was importing Invoices with Duplicate Tax Lines successfully because the validation to identify the duplicate tax lines were not working properly. Invoice Validation of such invoices fails with unique constraint violated error ZX_DETAIL_TAX_LINES_GT_U1.
    I can apply the patch mentioned in above note BUT cause mentioned above is not the one due to which I am getting error. Actually, when I populate AP_INVOICE_LINES_INTERFACE.line_group_number field for tax lines, I get this error. Otherwise its fine.
    I've also tried populating only tax_rate_id or only tax_rate_code in tax line but still I'm getting this error....
    Can anybody advise ?
    Thanks,
    OraLearner

    Hi All,
    I am getting error in AP Invoice Import program while importing invoices through open interface R12. Actually concurrent program completes successfully but when I open output, it says that invoice is rejected and it gives the following error message: ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line.
    I've checked metalink and found this closest match:
    Ap Invoice Import Program completes with Error, Rejection reason ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line." [ID 1298220.1]
    Cause
    This issue is explained in BUG 10268801 - R12: APXIIMPT IMPORTS INCORRECT INVOICE.
    Payables Invoice Import Program was importing Invoices with Duplicate Tax Lines successfully because the validation to identify the duplicate tax lines were not working properly. Invoice Validation of such invoices fails with unique constraint violated error ZX_DETAIL_TAX_LINES_GT_U1.
    I can apply the patch mentioned in above note BUT cause mentioned above is not the one due to which I am getting error. Actually, when I populate AP_INVOICE_LINES_INTERFACE.line_group_number field for tax lines, I get this error. Otherwise its fine.
    I've also tried populating only tax_rate_id or only tax_rate_code in tax line but still I'm getting this error....
    Can anybody advise ?
    Thanks,
    OraLearner

  • Available Invoices for Invoice Validation Concurrent Script in R12.1.3

    First you need to run the below script
    1) Begin
    mo_global.set_policy_context('S','Org_id');
    End;
    2)
    select * from ap_invoices where
    VALIDATION_REQUEST_ID IS NULL and APPROVAL_READY_FLAG <> 'S'
    and CANCELLED_DATE IS NULL
    and PAYMENT_STATUS_FLAG ='N' AND FORCE_REVALIDATION_FLAG='N'
    AND Invoice_id in (SELECT invoice_id  FROM AP_HOLDS_ALL H
                             WHERE H.INVOICE_ID = INVOICE_ID
                               AND H.HOLD_LOOKUP_CODE IN
                                      ('QTY ORD', 'QTY REC', 'AMT ORD', 'AMT REC', 'QUALITY',
                                       'PRICE', 'TAX DIFFERENCE', 'CURRENCY DIFFERENCE',
                                       'REC EXCEPTION', 'TAX VARIANCE', 'PO NOT APPROVED',
                                       'PO REQUIRED', 'MAX SHIP AMOUNT', 'MAX RATE AMOUNT',
                                       'MAX TOTAL AMOUNT', 'TAX AMOUNT RANGE', 'MAX QTY ORD',
                                       'MAX QTY REC', 'MAX AMT ORD', 'MAX AMT REC',
                                       'CANT CLOSE PO', 'CANT TRY PO CLOSE', 'LINE VARIANCE',
                                       'CANT FUNDS CHECK','Expired Registration','Amount Funded','Quantity Funded')
                               AND H.RELEASE_LOOKUP_CODE IS NULL)
    The above script will provide the available invoices for Invoice Validation Concurrent.
    Thanks
    Hari

    Hello,
    I had the same problem in R12.1.3, then I found out that both organizations are not used by same application. Please have a look at note 1066753.1, where as you can see, it is not allowed to merge parties from AP to AR.
    Don´t know if this is the solution for your problem, but just wanted to share the information.
    Regards,
    Wim

  • Item and service invoices in same query

    Hi All,
    i want item based and service based invoices in same query but in this query when user individuality select item or service it shows records how can i get both in same query
    SELECT
    1 as sr,'Invoice' [Document Type],
    t0.docentry,
    T0.[CardCode] as 'BP Number',
    T0.[CardName] as 'BP name',
    t0.numatcard as 'Vendor reference No.',
    t0.u_loc as 'Location name' ,
    t4.state ,--'Null')  as 'State' ,
    T0.[DocNum] as 'Document Number',
    --T0.[DocType],
    t0.docdate,
    ISNULL(T1.ItemCode,'Service Item') AS 'Item Code',
    T1.[Dscription],
    T1.[Quantity],
    t3.name as 'MAG',
    t1.linetotal as 'Net Amount',
    t1.vatsum as 'Tax Amount',
    (t1.linetotal + t1.vatsum) as 'Invoice Value'
    FROM [dbo].[OINV]  T0
    INNER JOIN [dbo].[INV1]  T1 ON T0.DocEntry = T1.DocEntry
    left outer join owhs t4 on t1.whscode = t4.whscode
    LEFT JOIN [dbo].[OITM] T2 ON T1.ItemCode = T2.ItemCode
    LEFT JOIN [dbo].[@ITMG]  T3 ON T2.U_itmg = T3.Code
    WHERE
    T0.[DocType] = '[%0]' and t0.cardcode between [%3] and [%4] and t0.docdate >= [%1]and t0.docdate <=[%2]
    union
    SELECT 2,'Credit Memo' [Document Type],
    t0.docentry,
    T0.[CardCode] as 'BP Number',
    T0.[CardName] as 'BP Name',
    t0.numatcard as 'Vendor reference No.',
    t0.u_loc as 'Location name' ,
    t4.state ,--'Null')  as 'State' ,
    T0.[DocNum] as 'Document Number',
    --T0.[DocType],
    t0.docdate,
    ISNULL(T1.ItemCode,'Service Item') AS 'Item Code',
    T1.[Dscription],
    -T1.[Quantity],
    t3.name as 'MAG',
    -t1.linetotal as 'Net Amount',
    -t1.vatsum as 'Tax Amount',
    (t1.linetotal + t1.vatsum) as 'Invoice Value'
    FROM [dbo].[ORIN]  T0
    INNER JOIN [dbo].[RIN1]  T1 ON T0.DocEntry = T1.DocEntry
    left outer join owhs t4 on t1.whscode = t4.whscode
    LEFT JOIN [dbo].[OITM] T2 ON T1.ItemCode = T2.ItemCode
    LEFT JOIN [dbo].[@ITMG]  T3 ON T2.U_itmg = T3.Code
    WHERE
    T0.[DocType] = '[%0]' and t0.cardcode between [%3] and [%4] and t0.docdate >= [%1]and t0.docdate <=[%2]
    pls help me
    ketan..........

    Hi Ketan,
    You don't need to add anything to this query.  When you select service type documents, the State would automatically become NULL.
    Thanks.
    Gordon

  • Define valid tax code

    Gurus,
    While posting a vendor invoice through fb70, i am trying to assign the valid tax code.
    But when i put in the tax code it is not accepting it.
    My tax code is not showing up in the list.
    i have checked the following steps for the tax configuration:
    a) DEFINED TAX CODE FOR SALE AND PURCHASE FTXP
    b) CREATE A PURCHASE A/C FS00
    c)CREATE A VAT INPUT A/CFS00
    d) DEFINE TAX A/COB40

    hi friend
    please check the following steps in your configuration for TDS if these steps are configured properly you wont get any error.
    1.Check W.Tax Countries
    2. Define Official Witholding Tax Codes
    3. Define Business Place (If more than one TAN No.)
    4. Assign factory calendar to Business Place
    5.Define W.Tax type for Invoice Posting and Payment Posting
    6. Define W.Tax Code for Invoice Posting and Payment Posting
    7.Check Receipiant Types
    8. Maintain Tax due dates
    9. Maintain surcharge calculation method
    10.Maintain Surcharge rates
    11.Assign tax types to company code
    12. Create GL Account - Withholding tax
    13. Assingment of GL Account to Withhold tax
    14. Maintain Document types for challan updatation
    15.Maintain Number ramges group (SAP script forms)
    16.Assign Number ranges to number group
    17. Maintain number ranges
    18. Assign TDS Number in Global Parameters
    19. Assign Tax codes in Vendor Master
    kind regards
    Arman
    SAP FICO

  • Perfrormance Issue on Invoice Validation

    We are having 4000 records and the invoice validation takes 8hrs to complete. We have E-Busines tax setup which calculates for state,county and city. Is there any way we can make the process run faster?
    I understand we can unplug the tax calculation process but we run the invoice as a batch. Please advice.
    Edited by: 996298 on Mar 28, 2013 6:06 AM

    Please post the details of the application release, database version and OS.
    Please search MOS website for ("Invoice Validation " AND Performance) and you should get many hits, so you need to go through the docs and see which one is applicable to you.
    Thanks,
    Hussein

  • Invoice validation program error:Could not find operating unit options

    Dear Team,
    Once my Payables Open Interface Import program successfully completed, I am trying to running invoice validation program which is ended with warning as bellow,
    (Bulk CALCULATE) START SYSDATE 17-DEC-2012 04:04:19
    Could not find operating unit options
    Encountered unexpected error: User-Defined Exception
    (Bulk CALCULATE) END SYSDATE 17-DEC-2012 04:04:23
    and invoice placing into Dist Variance hold,
    my interface program placed data in to based tables (ap_invoices_all and lines_all ) but distributions are not getting generating. Can you please do help me.
    Find attached excel sheet for ur references.
    Thanks
    Sathiya

    Make sure the library (pll file) is in the path indicated by your FORMS60_PATH in the registry.
    Hope that helps,
    Karim.

  • AP Invoice Validation problem

    Hi,
    Invoice R12 (12.1.3)While trying to validate an AP Invoice getting the following error :
    APP-SQL-10000: User-Defined Exception occurred in 
    AP_INVOICE_UTILITY_PKG.CALCULATE_VARIANCE<-AP_APPROVAL_MATC
    HED_PKG.Exec_Matched_Variance_Checks<-AP_APPROVAL_PKG.Genera
    te_Distributions<-AP_APPROVAL_PKG.Approval<-APXINWKB
    with parameters (Distribution Id = 13113101)
    while performing the following operations:
    CALCULATE_VARIANCE - Close cursor invoice_dist_cursor
    Hence, requesting if anyone of you have come cross this kind of problem in R12,  AP invoice validation kindly post your valuable comments.
    regards.
    Arup

    Hi,
    Welcome to Communities.
    Please review this note
    R12: AP: Unable To Validate Freight Invoices Matched To Receipts Errors APP-SQL-10000 ORA:01403 (Doc ID 1350996.1)
    Thanks
    George

  • Error - G/L account 407350 requires a valid tax codeu201D.

    I am getting error "G/L account 407350 requires a valid tax codeu201D, while executing F-28 transaction.
    IF there are any User-exit available to resole this issue ?

    Rather than the use-exit, I suggest you to discuss this with configuration consultant who can make some change on the configuration and eliminate the error.
    >
    batramanish wrote:
    > I am getting error "G/L account 407350 requires a valid tax codeu201D, while executing F-28 transaction.
    > IF there are any User-exit available to resole this issue ?

  • India Localization - AP - Asset Invoice with Tax Lines

    Dear Experts,
    In India Localization If I have Asset Invoice with Tax Lines and If I Perform Mass Additions will Tax Lines also Interfaced to FA or only Asset cost will be transferred FA (Excluding Tax Lines)
    Please help me out.
    Thanks
    Bharath

    Bharath,
    even though the tax lines are independently transferred to mass addition and merged ... it is merged to its owning transaction ... like if the invoice in AP is created for a capital asset using the Capital asset clearing account, the tax lines in that invoice is merged automatically to that invoice cost line in the mass addition stage ... similary for CIP clearing account ....
    Regards,
    Ivruksha

Maybe you are looking for

  • Lenovo IdeaPad U310 Intel Rapid Start Technology with WIndows 7 Ultimate

    Hello, I have upgraded my Windows 7 Home Premium to Ultimate. Got it in my domain and everything seems normal . But I wanted to check the options of that energy saving settings and can't find any information about, when does my computer go to hiberna

  • Audio from DVD to CD

    I need to pull some narration from a DVD to burn onto a CD for a client. We no longer have the original audio. I used MPEG Streamclip to open up the .VOB files, but when I use that program to export the audio I get "error: can't convert sample rate".

  • Thunderbolt Mac Mini with 2 Thunderbolt Displays

    Hi, Is it possible to connect 2 Apple Thunderbolt Displays to the new Thunderbolt Mac Mini, through daisy chain? Thanks!

  • Required field postal coded has no entry

    Hi Experts, While updating the BP master through TCode UDM_BP, we are getting the following error - Required field postal coded has no entry. Message No.R1304 We have checked the field status for that country in the following path. General settings >

  • Weirdest Thing

    I have not had this happen to me in my 10 years of using GB. When I hit the New Track icon or even through the drop down menu, NOTHING happens, when I am setting up for a Software Instrument track. YET, if I switch it to either Guitar Track or Real I