SEPM_I_CUSTOMER

DDL: SEPM_I_CUSTOMER SQL: SEPM_ICUST Type: view

EPM Demo: Business Partner

SEPM_I_CUSTOMER is a CDS View of category Dimension that provides data about "EPM Demo: Business Partner" in SAP S/4HANA. It reads from 1 data source (snwd_bpa) and exposes 19 fields with key field CustomerUUID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
snwd_bpa snwd_bpa from

Associations (5)

CardinalityTargetAliasCondition
[0..1] SEPM_I_Currency _Currency $projection.Currency = _Currency.Currency
[0..1] SEPM_I_Address _Address $projection.AddressUUID = _Address.AddressUUID
[0..*] SEPM_I_ContactPerson _ContactPerson $projection.CustomerUUID = _ContactPerson.BusinessPartnerUUID
[0..1] SEPM_I_Employee _CreatedByUser $projection.CreatedByUser = _CreatedByUser.EmployeeUUID
[0..1] SEPM_I_Employee _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.EmployeeUUID

Annotations (10)

NameValueLevelField
EndUserText.label EPM Demo: Business Partner view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName SEPM_ICUST view
ObjectModel.representativeKey CustomerUUID view
ObjectModel.compositionRoot true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY CustomerUUID
bp_idasCustomer
Currency snwd_bpa currency_code Currency Code
CompanyName snwd_bpa company_name Company
LegalForm snwd_bpa legal_form Legal Form
AddressUUID snwd_bpa address_guid UUID
EmailAddress snwd_bpa email_address Email Address
FaxNumber snwd_bpa fax_number Fax Number
PhoneNumber snwd_bpa phone_number Phone
URL snwd_bpa web_address URI
CreatedByUser created_by Version Created By
CreationDateTime created_at Uploaded On
LastChangedByUser changed_by User Name
LastChangedDateTime changed_at Timestamp
_Currency _Currency
_Address _Address
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_ContactPerson _ContactPerson

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 SEPM_I_CUSTOMER.
-- 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: SEPM_ICUST

CREATE VIEW SEPM_I_CUSTOMER AS
SELECT
  cast( snwd_bpa.node_key as sepm_bp_uuid preserving type ) AS CustomerUUID,
  snwd_bpa.currency_code AS Currency,
  snwd_bpa.company_name AS CompanyName,
  snwd_bpa.legal_form AS LegalForm,
  snwd_bpa.address_guid AS AddressUUID,
  snwd_bpa.email_address AS EmailAddress,
  snwd_bpa.fax_number AS FaxNumber,
  snwd_bpa.phone_number AS PhoneNumber,
  snwd_bpa.web_address AS URL,
  created_by AS CreatedByUser,
  created_at AS CreationDateTime,
  changed_by AS LastChangedByUser,
  changed_at AS LastChangedDateTime
FROM snwd_bpa
LEFT OUTER JOIN SEPM_I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN SEPM_I_Address AS _Address ON AddressUUID = _Address.AddressUUID  -- association [0..1]
LEFT OUTER JOIN SEPM_I_ContactPerson AS _ContactPerson ON CustomerUUID = _ContactPerson.BusinessPartnerUUID  -- association [0..*]
LEFT OUTER JOIN SEPM_I_Employee AS _CreatedByUser ON CreatedByUser = _CreatedByUser.EmployeeUUID  -- association [0..1]
LEFT OUTER JOIN SEPM_I_Employee AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.EmployeeUUID  -- association [0..1]
;