You are on page 1of 2

SQL used.

SET VARIABLE DISABLE_CACHE_HIT=1,DISABLE_PLAN_CACHE_HIT=1;


SELECT
0 s_0,
"Payables Invoices - Transactions Real Time"."- Accounting Date Fiscal Calendar"."Fiscal Period" s_1,
"Payables Invoices - Transactions Real Time"."- Balancing Segment"."Balancing Segment Code" s_2,
"Payables Invoices - Transactions Real Time"."- Cost Center"."Cost Center Code" s_3,
"Payables Invoices - Transactions Real Time"."- General Information"."GL Date" s_4,
"Payables Invoices - Transactions Real Time"."- General Information"."Invoice Date" s_5,
"Payables Invoices - Transactions Real Time"."- General Information"."Invoice Description" s_6,
"Payables Invoices - Transactions Real Time"."- General Information"."Invoice Entered Date" s_7,
"Payables Invoices - Transactions Real Time"."- General Information"."Invoice Number" s_8,
"Payables Invoices - Transactions Real Time"."- Invoice Accounting"."Ledger Currency" s_9,
"Payables Invoices - Transactions Real Time"."- Invoice Amounts"."Invoice Currency" s_10,
"Payables Invoices - Transactions Real Time"."- Invoice Line Details - General Information"."AP_INVOICE_LINES_MERCHANT_NAME_" s_11,
"Payables Invoices - Transactions Real Time"."- Invoice Line Details - General Information"."Description" s_12,
"Payables Invoices - Transactions Real Time"."- Natural Account"."Account Code" s_13,
"Payables Invoices - Transactions Real Time"."- Natural Account"."Account Description" s_14,
"Payables Invoices - Transactions Real Time"."- Reference Information"."Document Sequence Value" s_15,
"Payables Invoices - Transactions Real Time"."- Reference Information"."Invoice Source Code" s_16,
"Payables Invoices - Transactions Real Time"."- Reference Information"."Payment Currency" s_17,
"Payables Invoices - Transactions Real Time"."- Subledger Accounting Journals Details"."Journal Line Number" s_18,
"Payables Invoices - Transactions Real Time"."Business Unit"."Business Unit Name" s_19,
"Payables Invoices - Transactions Real Time"."GL_FUNCTION_YRC_US_VI"."Segment Code" s_20,
"Payables Invoices - Transactions Real Time"."INTERCOMPANY_YRC_US_VI"."Segment Code" s_21,
"Payables Invoices - Transactions Real Time"."INTERCOMPANY_YRC_US_VI"."Tree Filter" s_22,
"Payables Invoices - Transactions Real Time"."PROJECT_YRC_US_VI"."Segment Code" s_23,
"Payables Invoices - Transactions Real Time"."Supplier"."Supplier Name" s_24,
"Payables Invoices - Transactions Real Time"."Supplier"."Supplier Number" s_25,
DESCRIPTOR_IDOF("Payables Invoices - Transactions Real Time"."Business Unit"."Business Unit Name") s_26,
SORTKEY("Payables Invoices - Transactions Real Time"."- Accounting Date Fiscal Calendar"."Fiscal Period") s_27,
"Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Accounted Amount Credit" s_28,
"Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Entered Amount Credit" s_29,
"Payables Invoices - Transactions Real Time"."- Invoice Amounts"."Paid Amount" s_30,
"Payables Invoices - Transactions Real Time"."- Invoice Distributions"."Distribution Amount" s_31,
IFNULL("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Accounted Amount Debit",0)-IFNULL("Payables Invoices -
Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Accounted Amount Credit",0) s_32,
IFNULL("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Entered Amount Debit",0)-IFNULL("Payables Invoices -
Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Entered Amount Credit",0) s_33,
REPORT_AGGREGATE(IFNULL("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Accounted Amount Debit",0)-
IFNULL("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Accounted Amount Credit",0) BY ) s_34,
REPORT_AGGREGATE(IFNULL("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Entered Amount Debit",0)-
IFNULL("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Entered Amount Credit",0) BY ) s_35,
REPORT_SUM("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Accounted Amount Credit" BY ) s_36,
REPORT_SUM("Payables Invoices - Transactions Real Time"."- Invoice Accounting"."SLA Unrounded Entered Amount Credit" BY ) s_37,
REPORT_SUM("Payables Invoices - Transactions Real Time"."- Invoice Amounts"."Paid Amount" BY ) s_38,
REPORT_SUM("Payables Invoices - Transactions Real Time"."- Invoice Distributions"."Distribution Amount" BY ) s_39
FROM "Payables Invoices - Transactions Real Time"
WHERE
(("- Balancing Segment"."Balancing Segment Tree Filter" = 'Company YRCW-Company YRCW Current') AND ("GL_FUNCTION_YRC_US_VI"."Tree Filter" = 'GL
Function YRCW-GL Function YRCW Current') AND ("- Natural Account"."Account Tree Filter" = 'Account YRCW-Account YRCW Current') AND ("- Cost
Center"."Cost Center Tree Filter" = 'Cost Center YRCW-Cost Center YRCW Current') AND ("PROJECT_YRC_US_VI"."Tree Filter" = 'Project YRCW-Project
YRCW Current') AND ("INTERCOMPANY_YRC_US_VI"."Tree Filter" = 'Company YRCW-Company YRCW Current'))
ORDER BY 1, 16 ASC NULLS LAST, 9 ASC NULLS LAST, 6 ASC NULLS LAST, 5 ASC NULLS LAST, 8 ASC NULLS LAST, 26 ASC NULLS LAST, 25 ASC
NULLS LAST, 28 ASC NULLS LAST, 2 ASC NULLS LAST, 3 ASC NULLS LAST, 14 ASC NULLS LAST, 15 ASC NULLS LAST, 21 ASC NULLS LAST, 4 ASC
NULLS LAST, 23 ASC NULLS LAST, 22 ASC NULLS LAST, 24 ASC NULLS LAST, 12 ASC NULLS LAST, 11 ASC NULLS LAST, 17 ASC NULLS LAST, 20 ASC
NULLS LAST, 27 ASC NULLS LAST, 7 ASC NULLS LAST, 13 ASC NULLS LAST, 10 ASC NULLS LAST, 18 ASC NULLS LAST, 19 ASC NULLS LAST
FETCH FIRST 75001 ROWS ONLY

You might also like