C_BG_SAFTCustomerC

DDL: C_BG_SAFTCUSTOMERC Type: view_entity CONSUMPTION

Customer Data For BG SAFT - Cube

C_BG_SAFTCustomerC is a Consumption CDS View (Cube) that provides data about "Customer Data For BG SAFT - Cube" in SAP S/4HANA. It reads from 1 data source (P_BG_SAFTCustomer) and exposes 17 fields with key fields SourceLedger, Ledger, CompanyCode, Customer, TaxID5.

Data Sources (1)

SourceAliasJoin Type
P_BG_SAFTCustomer P_BG_SAFTCustomer from

Parameters (4)

NameTypeDefault
P_FromPostingDate dats
P_ToPostingDate dats
P_FiscalYear gjahr
P_AlternativeGLAccountIsUsed saft_ro_alt_gl_account_flag

Annotations (11)

NameValueLevelField
EndUserText.label Customer Data For BG SAFT - Cube view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
Analytics.internalName #LOCAL view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger Source Ledger
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY Customer Sold-to Party
KEY TaxID5 TaxID5 Tax Number 5
KEY BG_SAFTStandardAccount BG_SAFTStandardAccount
GLAccount General Ledger
BusinessPartner Issuing Authority
CustomerName CustomerName Name of Customer
CountryISOCode CountryISOCode
Region Region Venue Region
PostalCode PostalCode Postal Code
CityName
StreetName StreetName Text
HouseNumber HouseNumber House Number
Building Building Building code
CompanyCodeCurrency CompanyCodeCurrency Local Currency

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_BG_SAFTCustomerC.
-- 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.
-- Parameters: P_FromPostingDate : dats, P_ToPostingDate : dats, P_FiscalYear : gjahr, P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag

CREATE VIEW C_BG_SAFTCustomerC AS
SELECT
  SourceLedger,
  Ledger,
  CompanyCode,
  cast(Customer as kunnr) AS Customer,
  TaxID5,
  BG_SAFTStandardAccount,
  cast(GLAccount as fis_racct) AS GLAccount,
  cast(BusinessPartner as bu_partner) AS BusinessPartner,
  CustomerName,
  CountryISOCode,
  Region,
  PostalCode,
  left(CityName, 35) AS CityName,
  StreetName,
  HouseNumber,
  Building,
  CompanyCodeCurrency
FROM P_BG_SAFTCustomer
;