C_BE_DomesticSalesListCube

DDL: C_BE_DOMESTICSALESLISTCUBE SQL: CBEDOMSLSLSTCUBE Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_BE

Domestic Sales List for Belgium

C_BE_DomesticSalesListCube is a Consumption CDS View (Cube) that provides data about "Domestic Sales List for Belgium" in SAP S/4HANA. It reads from 1 data source (P_BE_DomesticSalesList20) and exposes 23 fields with key fields CompanyCode, FiscalYear, AccountingDocument, CADocumentNumber, TaxCode. Part of development package GLO_FIN_IS_VAT_BE.

Data Sources (1)

SourceAliasJoin Type
P_BE_DomesticSalesList20 sl from

Annotations (13)

NameValueLevelField
EndUserText.label Domestic Sales List for Belgium view
AbapCatalog.sqlViewName CBEDOMSLSLSTCUBE view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_BE_DomesticSalesList20 CompanyCode
KEY FiscalYear P_BE_DomesticSalesList20 FiscalYear
KEY AccountingDocument P_BE_DomesticSalesList20 AccountingDocument
KEY CADocumentNumber P_BE_DomesticSalesList20 CADocumentNumber
KEY TaxCode P_BE_DomesticSalesList20 TaxCode
KEY TransactionTypeDetermination P_BE_DomesticSalesList20 TransactionTypeDetermination
KEY ReportingCurrency
KEY StatryRptgEntity P_BE_DomesticSalesList20 StatryRptgEntity
KEY StatryRptCategory P_BE_DomesticSalesList20 StatryRptCategory
KEY StatryRptRunID P_BE_DomesticSalesList20 StatryRptRunID
CAReconciliationKey
BusinessPartner
BusinessPartnerName
TaxBaseAmountInRptgCrcy
TaxAmountInRptgCrcy
PostingDate
TaxReportingDate
ReportingDate
Debtor
Creditor
Country
IsOneTimeAccount
BPTaxNumber
@EndUserText.label: 'Domestic Sales List for Belgium'
@AbapCatalog.sqlViewName: 'CBEDOMSLSLSTCUBE'
@VDM.viewType: #CONSUMPTION
@Analytics.dataCategory: #CUBE
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
@ClientHandling: { type: #INHERITED, algorithm: #SESSION_VARIABLE }
@ObjectModel.usageType: { dataClass: #MIXED, sizeCategory: #XL, serviceQuality: #X }
@Metadata.ignorePropagatedAnnotations: true
@Metadata.allowExtensions: true
@Consumption.dbHints: ['USE_HEX_PLAN']

////////////////////////////////////////////////////////////////////////////////

// This Cube publishes a specific Domestic Sales List for Belgium.

////////////////////////////////////////////////////////////////////////////////


define view C_BE_DomesticSalesListCube
  as select from    P_BE_DomesticSalesList20 as sl
{
  key   sl.CompanyCode,
  key   sl.FiscalYear,
  key   sl.AccountingDocument,
  key   sl.CADocumentNumber,
  key   sl.TaxCode,
  key   sl.TransactionTypeDetermination,
        @Semantics.currencyCode: true
  key   cast(sl.ReportingCurrency as waers)                                   as ReportingCurrency,

  key   sl.StatryRptgEntity,
  key   sl.StatryRptCategory,
  key   sl.StatryRptRunID,

        cast(min(sl.CAReconciliationKey) as fikey_kk preserving type)         as CAReconciliationKey,
        cast(min(sl.BusinessPartner) as bu_partner preserving type)           as BusinessPartner,
        cast(min(sl.BusinessPartnerName) as bp_name_ca preserving type)       as BusinessPartnerName,
        @DefaultAggregation:#SUM
        @Semantics.amount.currencyCode: 'ReportingCurrency'
        cast(sum(sl.TaxBaseAmountInRptgCrcy) as glo_taxbase_amount_rptg_crcy) as TaxBaseAmountInRptgCrcy,
        @DefaultAggregation:#SUM
        @Semantics.amount.currencyCode: 'ReportingCurrency'
        cast(sum(sl.TaxAmountInRptgCrcy) as glo_tax_amount_rptg_crcy)         as TaxAmountInRptgCrcy,

        cast(min(sl.PostingDate) as fis_budat)                                as PostingDate,
        cast(min(sl.TaxReportingDate) as vatdate)                             as TaxReportingDate,
        cast(min(sl.ReportingDate) as glo_reporting_date)                     as ReportingDate,
        cast(min(sl.Debtor) as kunnr)                                         as Debtor,
        cast(min(sl.Creditor) as lifnr)                                       as Creditor,
        cast(min(sl.Country) as land1_gp)                                     as Country, // Country of supplier / customer

        cast(min(sl.IsOneTimeAccount) as xcpdk)                               as IsOneTimeAccount,
        cast(min(sl.BPTaxNumber) as bptaxnum)                                 as BPTaxNumber
}
group by
  sl.CompanyCode,
  sl.FiscalYear,
  sl.AccountingDocument,
  sl.CADocumentNumber,
  sl.TaxCode,
  sl.TransactionTypeDetermination,
  sl.ReportingCurrency,
  sl.StatryRptgEntity,
  sl.StatryRptCategory,
  sl.StatryRptRunID