OP_aus_LOC_Belege_8520.iqd 1004 B

1234567891011121314151617181920212223242526272829303132
  1. COGNOS QUERY
  2. STRUCTURE,1,1
  3. DATABASE,GC_LOCOSOFT
  4. DATASOURCENAME,C:\GlobalCube\System\LOCOSOFT\IQD\op\OP_aus_LOC_Belege_8520.imr
  5. TITLE,OP_aus_LOC_Belege_8520.imr
  6. BEGIN SQL
  7. select distinct T1."document_type" as c1,
  8. T1."nominal_account_number" as c2,
  9. T1."customer_contra_account" as c3,
  10. T1."invoice_number" as c4,
  11. T1."skr51_branch" as c5,
  12. T1."subsidiary_to_company_ref" as c6,
  13. (cast_numberToString(cast_integer(T1."skr51_branch"))) as c7,
  14. '1' as c8,
  15. T1."subsidiary_to_company_ref" as c9,
  16. ((cast_numberToString(cast_integer(T1."skr51_branch")))) as c10
  17. from "journal_accountings" T1
  18. where (((T1."nominal_account_number" IN (8520)) and (T1."document_type" = 'R')) and (T1."invoice_date" >= DATE '2016-01-01'))
  19. order by c4 asc,c2 asc
  20. END SQL
  21. COLUMN,0,Document Type
  22. COLUMN,1,Nominal Account Number
  23. COLUMN,2,Customer Contra Account
  24. COLUMN,3,Invoice Number
  25. COLUMN,4,Skr51 Branch
  26. COLUMN,5,Rechtseinheit
  27. COLUMN,6,Betrieb
  28. COLUMN,7,Mandant
  29. COLUMN,8,Hauptbetrieb
  30. COLUMN,9,Standort