C_CO_DIANStRpRevenueQuery

DDL: C_CO_DIANSTRPREVENUEQUERY SQL: CSRCOREVENUEQ Type: view CONSUMPTION Package: GLO_FIN_IS_CO_GL

Format 1007 - Revenue Query V8

C_CO_DIANStRpRevenueQuery is a Consumption CDS View that provides data about "Format 1007 - Revenue Query V8" in SAP S/4HANA. It reads from 1 data source (C_CO_DIANStRpRevenueCube) and exposes 75 fields with key fields Ledger, CompanyCode, FiscalYear, StatryRptgEntity, StatryRptCategory. Part of development package GLO_FIN_IS_CO_GL.

Data Sources (1)

SourceAliasJoin Type
C_CO_DIANStRpRevenueCube C_CO_DIANStRpRevenueCube from

Parameters (3)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_Ledger fis_rldnr

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CSRCOREVENUEQ view
EndUserText.label Format 1007 - Revenue Query V8 view
VDM.viewType #CONSUMPTION view
Analytics.query true view
Analytics.settings.zeroValues.handling #HIDE view
Analytics.settings.zeroValues.hideOnAxis #ROWS view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (75)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
KEY CO_DIANReportFormat CO_DIANReportFormat Report Format
KEY CO_DIANReportItemType CO_DIANReportItemType Item Type
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
TaxNumber1 TaxNumber1 VAT Reg. No.
TaxNumber2 TaxNumber2 Tax Number 2
TaxNumber3 TaxNumber3
TaxNumber4 TaxNumber4
TaxNumber5 TaxNumber5
ReportedTaxNumber ReportedTaxNumber
TaxNumberType TaxNumberType Tax number type
CO_DIANTaxNumberType CO_DIANTaxNumberType DIAN Doc. Type
BusinessPartnerCategory BusinessPartnerCategory Partner Cat.
FirstName FirstName First Name
MiddleName MiddleName Middle Name
LastName LastName Last Name
AdditionalLastName AdditionalLastName Other Last Name
OrganizationBPName1 OrganizationBPName1 Name 1
OrganizationBPName2 OrganizationBPName2 Name 2
OrganizationBPName3 OrganizationBPName3 Name 3
OrganizationBPName4 OrganizationBPName4 Name 4
BusinessPartner BusinessPartner Issuing Authority
Supplier Supplier Supplier
Customer Customer Sold-to Party
IsNaturalPerson IsNaturalPerson Natural person
IsBelowMinimumAmountThreshold IsBelowMinimumAmountThreshold
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
CO_DIANCountry CO_DIANCountry
Region Region Venue Region
CityCode CityCode IATA: City
CityName CityName Name
StreetName StreetName Text
CO_DIANAmountClassification CO_DIANAmountClassification
GLAccount GLAccount General Ledger
GLAccountName GLAccountName Short Text
AlternativeGLAccount AlternativeGLAccount Group Account
ChartOfAccounts ChartOfAccounts Node Class
GLAccountType GLAccountType G/L Account Type
CountryChartOfAccounts CountryChartOfAccounts Chart of Accts
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
CostCenter CostCenter Cost Center
ProfitCenter ProfitCenter Profit Center
DebitCreditCode DebitCreditCode Single-Character Flag
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
ReferenceDocument ReferenceDocument Reference Document
Reference1IDByBusinessPartner Reference1IDByBusinessPartner Reference Key 1
Reference3IDByBusinessPartner Reference3IDByBusinessPartner Reference Key 3
AccountingDocumentType AccountingDocumentType Journal Entry Type
BusinessPlace BusinessPlace Business place
TransactionTypeDetermination TransactionTypeDetermination Transaction Key
FinancialAccountType FinancialAccountType Fin. Account Type
SpecialGLCode SpecialGLCode Special G/L Ind
TaxCode TaxCode Tax Code
ClearingDate ClearingDate Clearing Date
OwnOpGrssRevnInRptgCrcy OwnOpGrssRevnInRptgCrcy
CnsrtmTmpUnionRevnInRptgCrcy CnsrtmTmpUnionRevnInRptgCrcy
DlgtdAdminContrRevnInRptgCrcy DlgtdAdminContrRevnInRptgCrcy
MiningRevnInReportingCurrency MiningRevnInReportingCurrency
FiduciaryRevnInReportingCrcy FiduciaryRevnInReportingCrcy
ThirdPartyRevnInRptgCurrency ThirdPartyRevnInRptgCurrency
RetsDiscountsRebatesInRptgCrcy RetsDiscountsRebatesInRptgCrcy
ReportingCurrency ReportingCurrency Currency
AmountInReportingCurrency AmountInReportingCurrency
TransactionCurrency TransactionCurrency Transaction Currency
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view C_CO_DIANStRpRevenueQuery.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CSRCOREVENUEQ
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_Ledger : fis_rldnr

CREATE VIEW C_CO_DIANStRpRevenueQuery AS
SELECT
  Ledger,
  CompanyCode,
  FiscalYear,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  CO_DIANReportFormat,
  CO_DIANReportItemType,
  AccountingDocument,
  LedgerGLLineItem,
  TaxNumber1,
  TaxNumber2,
  TaxNumber3,
  TaxNumber4,
  TaxNumber5,
  ReportedTaxNumber,
  TaxNumberType,
  CO_DIANTaxNumberType,
  BusinessPartnerCategory,
  FirstName,
  MiddleName,
  LastName,
  AdditionalLastName,
  OrganizationBPName1,
  OrganizationBPName2,
  OrganizationBPName3,
  OrganizationBPName4,
  BusinessPartner,
  Supplier,
  Customer,
  IsNaturalPerson,
  IsBelowMinimumAmountThreshold,
  BusinessPartnerCountry,
  CO_DIANCountry,
  Region,
  CityCode,
  CityName,
  StreetName,
  CO_DIANAmountClassification,
  GLAccount,
  GLAccountName,
  AlternativeGLAccount,
  ChartOfAccounts,
  GLAccountType,
  CountryChartOfAccounts,
  IsReversal,
  IsReversed,
  CostCenter,
  ProfitCenter,
  DebitCreditCode,
  PostingDate,
  DocumentDate,
  ReferenceDocument,
  Reference1IDByBusinessPartner,
  Reference3IDByBusinessPartner,
  AccountingDocumentType,
  BusinessPlace,
  TransactionTypeDetermination,
  FinancialAccountType,
  SpecialGLCode,
  TaxCode,
  ClearingDate,
  OwnOpGrssRevnInRptgCrcy,
  CnsrtmTmpUnionRevnInRptgCrcy,
  DlgtdAdminContrRevnInRptgCrcy,
  MiningRevnInReportingCurrency,
  FiduciaryRevnInReportingCrcy,
  ThirdPartyRevnInRptgCurrency,
  RetsDiscountsRebatesInRptgCrcy,
  ReportingCurrency,
  AmountInReportingCurrency,
  TransactionCurrency,
  AmountInTransactionCurrency,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency
FROM C_CO_DIANStRpRevenueCube
;