Query for AP withholding Tax details
AP_AWT_TAX_RATES
SELECT DISTINCT
awt.*
FROM
ap_tax_codes_all atc,
ap_awt_tax_rates_all awt
WHERE
awt.tax_name = atc.name
AND atc.tax_id IN
(
SELECT DISTINCT
aid.tax_code_id tax_code_id
FROM
ap_invoice_distributions_all aid,
ap_tax_codes_all atc
WHERE
aid.tax_code_id = atc.tax_id
AND aid.tax_code_id IS NOT NULL
AND atc.tax_type = 'AWT'
AND aid.invoice_id = :P_INVOICE_ID
)
UNION
SELECT DISTINCT
awt.*
FROM
ap_awt_tax_rates_all awt
WHERE
awt.tax_rate_id IN
(
SELECT DISTINCT
aid.awt_tax_rate_id
FROM
ap_invoice_distributions_all aid
WHERE
aid.awt_tax_rate_id IS NOT NULL
AND aid.invoice_id = :P_INVOICE_ID
);
AP_AWT_GROUPS
SELECT DISTINCT
awt.*
FROM
ap_awt_groups awt
WHERE
awt.group_id IN
(
SELECT DISTINCT
aid.awt_group_id
FROM
ap_invoice_distributions_all aid
WHERE
aid.awt_group_id IS NOT NULL
AND aid.invoice_id = :P_INVOICE_ID
UNION
SELECT DISTINCT
aid.pay_awt_group_id
FROM
ap_invoice_distributions_all aid
WHERE
aid.pay_awt_group_id IS NOT NULL
AND aid.invoice_id = :P_INVOICE_ID
UNION
SELECT DISTINCT
ai.awt_group_id
FROM
ap_invoices_all ai
WHERE
ai.awt_group_id IS NOT NULL
AND ai.invoice_id = :P_INVOICE_ID
UNION
SELECT DISTINCT
ai.pay_awt_group_id
FROM
ap_invoices_all ai
WHERE
ai.pay_awt_group_id IS NOT NULL
AND ai.invoice_id = :P_INVOICE_ID
);
AP_AWT_GROUP_TAXES_ALL
SELECT DISTINCT
awt.*
FROM
AP_AWT_GROUP_TAXES_ALL awt
WHERE
awt.group_id IN
(
SELECT DISTINCT
aid.awt_group_id
FROM
ap_invoice_distributions_all aid
WHERE
aid.awt_group_id IS NOT NULL
AND aid.invoice_id = :P_INVOICE_ID
UNION
SELECT DISTINCT
aid.pay_awt_group_id
FROM
ap_invoice_distributions_all aid
WHERE
aid.pay_awt_group_id IS NOT NULL
AND aid.invoice_id = :P_INVOICE_ID
UNION
SELECT DISTINCT
ai.awt_group_id
FROM
ap_invoices_all ai
WHERE
ai.awt_group_id IS NOT NULL
AND ai.invoice_id = :P_INVOICE_ID
UNION
SELECT DISTINCT
ai.pay_awt_group_id
FROM
ap_invoices_all ai
WHERE
ai.pay_awt_group_id IS NOT NULL
AND ai.invoice_id = :P_INVOICE_ID
);
AP_AWT_TEMP_DISTRIBUTIONS_ALL
SELECT
*
FROM
ap_awt_temp_distributions_all
WHERE
invoice_id = :P_INVOICE_ID;
This blog is for Oracle Ebs, Fusion and OIC Techno- Functional People. I am sharing my work experience through this blog.
Showing posts with label AWT. Show all posts
Showing posts with label AWT. Show all posts
Tuesday, 19 September 2017
Query for AP withholding Tax details
Subscribe to:
Posts (Atom)
Oracle Fusion SQL Queries to get Sales Person/Sales Representative information for an Order
1) Get sales person details if the Sales Person ID is known SELECT jrs.SALESREP_NUMBER , jrs.status , jrs.START_...
-
P2P CYCLE: INVENTORY=> REQUIESTITION=> RFQ=> QUOTATION=> QUOTATION ANALYSIS=> PURCHASE ORDER =>...
-
Order to Cash (O2C) Cycle with in Oracle Apps Enter the Sales Order Book the Sales Order Launch Pick Release Ship Confirm Create In...
-
---------- 1) Below given query can be used TO get concatenated Gl code combinations segment AND its description USING API GL_FLEXFIELDS_PK...