0% found this document useful (0 votes)
80 views

Hana SQL

This SQL query selects data from the "_SYS_BIC"."system-local.private/LINEITEMENTRYVIEWQUERY" table for a specific clearing status, company code, and posting date. It groups the results and sums the amount in company code currency column. Field names like GLAccount, AccountingDocument, ProfitCenter, and PostingDate are selected.

Uploaded by

eMind123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Hana SQL

This SQL query selects data from the "_SYS_BIC"."system-local.private/LINEITEMENTRYVIEWQUERY" table for a specific clearing status, company code, and posting date. It groups the results and sums the amount in company code currency column. Field names like GLAccount, AccountingDocument, ProfitCenter, and PostingDate are selected.

Uploaded by

eMind123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

SELECT

Table__1."GLAccount",
Table__1."AccountingDocumentTypeName",
Table__1."ProfitCenter",
Table__1."CompanyCode",
Table__1."FinancialAccountTypeName",
Table__1."CompanyCodeCurrency",
Table__1."ProfitCenterName",
Table__1."PostingDate",
Table__1."GLAccountLongName",
Table__1."ClearingStatus",
Table__1."AccountingDocument",
Table__1."CompanyCodeName",
sum(Table__1."AmountInCompanyCodeCurrency_E"),
Table__1."SpecialGLCodeName",
Table__1."ClearingAccountingDocument",
to_date(Table__1."NetDueDate"),
Table__1."AccountingDocumentItem",
Table__1."ClearingDate",
Table__1."DocumentItemText",
Table__1."AssignmentReference"
FROM "_SYS_BIC"."system-local.private/LINEITEMENTRYVIEWQUERY" ('PLACEHOLDER' = (
'$$P_ClearingStatusSelection$$',
'2'),
'PLACEHOLDER' = ('$$P_COMPCODE$$',
'1002'),
'PLACEHOLDER' = ('$$P_POSTINGDATE$$',
'20150930')) Table__1
WHERE ("SAPClient" IN ('100') )
GROUP BY
Table__1."GLAccount",
Table__1."AccountingDocumentTypeName",
Table__1."ProfitCenter",
Table__1."CompanyCode",
Table__1."FinancialAccountTypeName",
Table__1."CompanyCodeCurrency",
Table__1."ProfitCenterName",
Table__1."PostingDate",
Table__1."GLAccountLongName",
Table__1."ClearingStatus",
Table__1."AccountingDocument",
Table__1."CompanyCodeName",
Table__1."SpecialGLCodeName",
Table__1."ClearingAccountingDocument",
to_date(Table__1."NetDueDate"),
Table__1."AccountingDocumentItem",
Table__1."ClearingDate",
Table__1."DocumentItemText",
Table__1."AssignmentReference"

You might also like