C_Customer360

DDL: C_CUSTOMER360 Type: view_entity CONSUMPTION

Customer 360

C_Customer360 is a Consumption CDS View that provides data about "Customer 360" in SAP S/4HANA. It reads from 1 data source (I_Customer) and exposes 85 fields with key field Customer. It has 31 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Customer Customer from

Associations (31)

CardinalityTargetAliasCondition
[1..*] C_Customer360RecentBusDoc _Customer360RecentBusDoc $projection.Customer = _Customer360RecentBusDoc.SoldToParty
[1..*] C_Customer360FulfillmentIssue _Customer360FulfillmentIssue $projection.Customer = _Customer360FulfillmentIssue.SoldToParty
[1..*] C_Cust360FulfillmentIssueCnt _Cust360FulfillmentIssueCnt $projection.Customer = _Cust360FulfillmentIssueCnt.SoldToParty
[1..*] C_Customer360ApprovalBusDoc _Cust360ApprovalBusDoc $projection.Customer = _Cust360ApprovalBusDoc.SoldToParty
[1..*] C_Customer360ServiceQuotation _Cust360ServiceQuotation $projection.Customer = _Cust360ServiceQuotation.SoldToParty
[1..*] C_Customer360SalesOrder _Cust360SalesOrder $projection.Customer = _Cust360SalesOrder.SoldToParty
[1..*] C_Customer360ServiceContract _Cust360ServiceContract $projection.Customer = _Cust360ServiceContract.SoldToParty
[1..*] C_Customer360ServiceOrder _Cust360ServiceOrder $projection.Customer = _Cust360ServiceOrder.SoldToParty
[1..*] C_Customer360InternalContact _Customer360InternalContact $projection.Customer = _Customer360InternalContact.Customer
[1..*] C_Customer360ExternalContact _Customer360ExternalContact $projection.Customer = _Customer360ExternalContact.Customer
[1..*] C_Cust360RecentDeliveryDoc _Cust360RecentDelivery $projection.Customer = _Cust360RecentDelivery.SoldToParty
[1..*] C_Customer360SalesContract _Cust360SalesContract $projection.Customer = _Cust360SalesContract.SoldToParty
[1..*] C_Cust360SalesSchedgAgrmt _Cust360SalesSchedgAgrmt $projection.Customer = _Cust360SalesSchedgAgrmt.SoldToParty
[1..*] C_Customer360SalesQuotation _Customer360SalesQuotation $projection.Customer = _Customer360SalesQuotation.SoldToParty
[1..*] C_Customer360CreditMemoRequest _Customer360CreditMemoRequest $projection.Customer = _Customer360CreditMemoRequest.SoldToParty
[1..*] C_Cust360SlsOrdWithoutCharge _Cust360SlsOrdWithoutCharge $projection.Customer = _Cust360SlsOrdWithoutCharge.SoldToParty
[1..*] C_Customer360DebitMemoRequest _Customer360DebitMemoRequest $projection.Customer = _Customer360DebitMemoRequest.SoldToParty
[1..*] C_Customer360CustomerReturn _Cust360CustomerReturn $projection.Customer = _Cust360CustomerReturn.SoldToParty
[1..*] C_Customer360DeliveryDocument _Customer360DeliveryDocument $projection.Customer = _Customer360DeliveryDocument.ShipToParty
[1..*] C_Customer360Invoice _Customer360Invoice $projection.Customer = _Customer360Invoice.SoldToParty
[1..*] C_Customer360CancelledInvoice _Customer360CancelledInvoice $projection.Customer = _Customer360CancelledInvoice.SoldToParty
[1..*] C_Customer360InvoiceList _Customer360InvoiceList $projection.Customer = _Customer360InvoiceList.SoldToParty
[1..*] C_Cust360BillingDocReq _Cust360BillingDocReq $projection.Customer = _Cust360BillingDocReq.SoldToParty
[1..*] C_Cust360PreliminaryBillDoc _Cust360PreliminaryBillDoc $projection.Customer = _Cust360PreliminaryBillDoc.SoldToParty
[0..*] I_Customer360BusDocSetting _Customer360BusDocSetting _Customer360BusDocSetting.BusinessDocumentIsEnabled = 'X'
[1..*] C_Customer360SalesArea _Customer360SalesArea $projection.Customer = _Customer360SalesArea.Customer
[1..*] C_Cust360SoldProductWithPrice _Cust360SoldProductEnt $projection.Customer = _Cust360SoldProductEnt.SoldToParty
[1..1] I_Customer360GeneralSetting _Customer360GeneralSetting _Customer360GeneralSetting.CustomerViewProfileName = 'CUSTPROFL'
[1..1] I_CountryVH _CountryVH $projection.Country = _CountryVH.Country
[0..1] I_BPStreetValueHelpTmp _StreetValueHelpTmp $projection.Country = _StreetValueHelpTmp.Country and $projection.StreetName = _StreetValueHelpTmp.StreetName and $projection.CityName = _StreetValueHelpTmp.BusinessPartnerCityCode
[0..1] C_Q2CCustomerQuickView _SoldToParty $projection.Customer = _SoldToParty.Customer

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Customer 360 view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view
Search.searchable true view

Fields (85)

KeyFieldSource TableSource FieldDescription
KEY Customer Customer Sold-to Party
BusinessPartnerUUID _CustomerToBusinessPartner BusinessPartnerUUID UUID
BusinessPartnerType
BusinessPartnerCategory
sstring500asBusinessPartnerImageURL
DisplayCurrency
SlsVolumeNetAmtInDspCrcy
Cust360CrteSlsQtanIsAuthzd
Cust360CrteSalesOrderIsAuthzd
Cust360SlsSchedAgrmtIsAuthzd
Cust360CrteSlsContractIsAuthzd
Cust360CrteCustReturnIsAuthzd
Cust360OrdWthoutChrgIsAuthzd
Cust360CrteCrdtMemoReqIsAuthzd
Cust360CrteDbtMemoReqIsAuthzd
Cust360CrteSrvcQtanIsAuthzd
Cust360CrteSrvcOrdIsAuthzd
CustomerName CustomerName Name of Customer
StreetName StreetName Text
CustomerStreetName
PostalCode PostalCode Postal Code
CityName CityName Name
Country Country Venue: Ctry/Reg
CountryName _CountryVH Description Well Code Des.
AddressID AddressID Ship-to address
AddressLine1
AddressLine2
AddressLine3
SalesOrganization
SalesOrganizationName
DistributionChannel
DistributionChannelName
Division
DivisionName
SalesGroup
SalesGroupName
SalesOffice
SalesOfficeName
AuthorizationGroup AuthorizationGroup AuthorizGroup
CustomerAccountGroup CustomerAccountGroup Account group
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
OrganizationBPName1 OrganizationBPName1 Name 1
OrganizationBPName2 OrganizationBPName2 Name 2
DataControllerSet I_Customer DataControllerSet Data Ctrlr. Set
DataController1 I_Customer DataController1 Data Controller
DataController2 I_Customer DataController2 Data Controller
DataController3 I_Customer DataController3 Data Controller
DataController4 I_Customer DataController4 Data Controller
DataController5 I_Customer DataController5 Data Controller
DataController6 I_Customer DataController6 Data Controller
DataController7 I_Customer DataController7 Data Controller
DataController8 I_Customer DataController8 Data Controller
DataController9 I_Customer DataController9 Data Controller
DataController10 I_Customer DataController10 Data Controller
_Customer360RecentBusDoc _Customer360RecentBusDoc
_Customer360FulfillmentIssue _Customer360FulfillmentIssue
_Cust360FulfillmentIssueCnt _Cust360FulfillmentIssueCnt
_Customer360BusDocSetting _Customer360BusDocSetting
_CustomerToBusinessPartner _CustomerToBusinessPartner
_Cust360ApprovalBusDoc _Cust360ApprovalBusDoc
_Cust360ServiceQuotation _Cust360ServiceQuotation
_Cust360ServiceContract _Cust360ServiceContract
_Cust360SalesOrder _Cust360SalesOrder
_Cust360ServiceOrder _Cust360ServiceOrder
_Customer360InternalContact _Customer360InternalContact
_Customer360ExternalContact _Customer360ExternalContact
_Cust360RecentDelivery _Cust360RecentDelivery
_Cust360SalesContract _Cust360SalesContract
_Cust360SalesSchedgAgrmt _Cust360SalesSchedgAgrmt
_Customer360SalesQuotation _Customer360SalesQuotation
_Customer360CreditMemoRequest _Customer360CreditMemoRequest
_Customer360DebitMemoRequest _Customer360DebitMemoRequest
_Cust360SlsOrdWithoutCharge _Cust360SlsOrdWithoutCharge
_Customer360DeliveryDocument _Customer360DeliveryDocument
_Customer360Invoice _Customer360Invoice
_Customer360CancelledInvoice _Customer360CancelledInvoice
_Customer360InvoiceList _Customer360InvoiceList
_Cust360CustomerReturn _Cust360CustomerReturn
_Cust360BillingDocReq _Cust360BillingDocReq
_Cust360PreliminaryBillDoc _Cust360PreliminaryBillDoc
_Customer360SalesArea _Customer360SalesArea
_Cust360SoldProductEnt _Cust360SoldProductEnt
_Customer360GeneralSetting _Customer360GeneralSetting
_SoldToParty _SoldToParty
_StreetValueHelpTmp _StreetValueHelpTmp

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_Customer360.
-- 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.

CREATE VIEW C_Customer360 AS
SELECT
  Customer,
  _CustomerToBusinessPartner.BusinessPartnerUUID AS BusinessPartnerUUID,
  _CustomerToBusinessPartner._BusinessPartner.BusinessPartnerType AS BusinessPartnerType,
  _CustomerToBusinessPartner._BusinessPartner.BusinessPartnerCategory AS BusinessPartnerCategory,
  cast ( case when _CustomerToBusinessPartner._BusinessPartner.BusinessPartnerCategory = '1' then 'sap-icon: else 'sap-icon: end as abap.sstring( 500 ) ) as BusinessPartnerImageURL AS sstring500asBusinessPartnerImageURL,
  cast( 'EUR' as vdm_v_display_currency ) AS DisplayCurrency,
  cast('0' as abap.curr( 15, 2 )) AS SlsVolumeNetAmtInDspCrcy,
  cast('' as boole_d ) AS Cust360CrteSlsQtanIsAuthzd,
  cast('' as boole_d ) AS Cust360CrteSalesOrderIsAuthzd,
  cast('' as boole_d ) AS Cust360SlsSchedAgrmtIsAuthzd,
  cast('' as boole_d ) AS Cust360CrteSlsContractIsAuthzd,
  cast('' as boole_d ) AS Cust360CrteCustReturnIsAuthzd,
  cast('' as boole_d ) AS Cust360OrdWthoutChrgIsAuthzd,
  cast('' as boole_d ) AS Cust360CrteCrdtMemoReqIsAuthzd,
  cast('' as boole_d ) AS Cust360CrteDbtMemoReqIsAuthzd,
  cast('' as boole_d ) AS Cust360CrteSrvcQtanIsAuthzd,
  cast('' as boole_d ) AS Cust360CrteSrvcOrdIsAuthzd,
  CustomerName,
  StreetName,
  _StreetValueHelpTmp._Text[1:Language = $session.system_language ].StreetName AS CustomerStreetName,
  PostalCode,
  CityName,
  Country,
  _CountryVH.Description AS CountryName,
  AddressID,
  cast( ' ' as ad_line_s) AS AddressLine1,
  cast( ' ' as ad_line_s) AS AddressLine2,
  cast( ' ' as ad_line_s) AS AddressLine3,
  cast( ' ' as vkorg) AS SalesOrganization,
  cast( ' ' as vkorg) AS SalesOrganizationName,
  cast( ' ' as vtweg) AS DistributionChannel,
  cast( ' ' as vtweg) AS DistributionChannelName,
  cast( ' ' as spart) AS Division,
  cast( ' ' as spart) AS DivisionName,
  cast( ' ' as vkgrp) AS SalesGroup,
  cast( ' ' as vkgrp) AS SalesGroupName,
  cast( ' ' as vkbur) AS SalesOffice,
  cast( ' ' as vkbur) AS SalesOfficeName,
  AuthorizationGroup,
  CustomerAccountGroup,
  IsBusinessPurposeCompleted,
  OrganizationBPName1,
  OrganizationBPName2,
  Customer.DataControllerSet AS DataControllerSet,
  Customer.DataController1 AS DataController1,
  Customer.DataController2 AS DataController2,
  Customer.DataController3 AS DataController3,
  Customer.DataController4 AS DataController4,
  Customer.DataController5 AS DataController5,
  Customer.DataController6 AS DataController6,
  Customer.DataController7 AS DataController7,
  Customer.DataController8 AS DataController8,
  Customer.DataController9 AS DataController9,
  Customer.DataController10 AS DataController10
FROM I_Customer AS Customer
LEFT OUTER JOIN C_Customer360RecentBusDoc AS _Customer360RecentBusDoc ON Customer = _Customer360RecentBusDoc.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360FulfillmentIssue AS _Customer360FulfillmentIssue ON Customer = _Customer360FulfillmentIssue.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Cust360FulfillmentIssueCnt AS _Cust360FulfillmentIssueCnt ON Customer = _Cust360FulfillmentIssueCnt.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360ApprovalBusDoc AS _Cust360ApprovalBusDoc ON Customer = _Cust360ApprovalBusDoc.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360ServiceQuotation AS _Cust360ServiceQuotation ON Customer = _Cust360ServiceQuotation.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360SalesOrder AS _Cust360SalesOrder ON Customer = _Cust360SalesOrder.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360ServiceContract AS _Cust360ServiceContract ON Customer = _Cust360ServiceContract.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360ServiceOrder AS _Cust360ServiceOrder ON Customer = _Cust360ServiceOrder.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360InternalContact AS _Customer360InternalContact ON Customer = _Customer360InternalContact.Customer  -- association [1..*]
LEFT OUTER JOIN C_Customer360ExternalContact AS _Customer360ExternalContact ON Customer = _Customer360ExternalContact.Customer  -- association [1..*]
LEFT OUTER JOIN C_Cust360RecentDeliveryDoc AS _Cust360RecentDelivery ON Customer = _Cust360RecentDelivery.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360SalesContract AS _Cust360SalesContract ON Customer = _Cust360SalesContract.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Cust360SalesSchedgAgrmt AS _Cust360SalesSchedgAgrmt ON Customer = _Cust360SalesSchedgAgrmt.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360SalesQuotation AS _Customer360SalesQuotation ON Customer = _Customer360SalesQuotation.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360CreditMemoRequest AS _Customer360CreditMemoRequest ON Customer = _Customer360CreditMemoRequest.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Cust360SlsOrdWithoutCharge AS _Cust360SlsOrdWithoutCharge ON Customer = _Cust360SlsOrdWithoutCharge.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360DebitMemoRequest AS _Customer360DebitMemoRequest ON Customer = _Customer360DebitMemoRequest.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360CustomerReturn AS _Cust360CustomerReturn ON Customer = _Cust360CustomerReturn.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360DeliveryDocument AS _Customer360DeliveryDocument ON Customer = _Customer360DeliveryDocument.ShipToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360Invoice AS _Customer360Invoice ON Customer = _Customer360Invoice.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360CancelledInvoice AS _Customer360CancelledInvoice ON Customer = _Customer360CancelledInvoice.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Customer360InvoiceList AS _Customer360InvoiceList ON Customer = _Customer360InvoiceList.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Cust360BillingDocReq AS _Cust360BillingDocReq ON Customer = _Cust360BillingDocReq.SoldToParty  -- association [1..*]
LEFT OUTER JOIN C_Cust360PreliminaryBillDoc AS _Cust360PreliminaryBillDoc ON Customer = _Cust360PreliminaryBillDoc.SoldToParty  -- association [1..*]
LEFT OUTER JOIN I_Customer360BusDocSetting AS _Customer360BusDocSetting ON _Customer360BusDocSetting.BusinessDocumentIsEnabled = 'X'  -- association [0..*]
LEFT OUTER JOIN C_Customer360SalesArea AS _Customer360SalesArea ON Customer = _Customer360SalesArea.Customer  -- association [1..*]
LEFT OUTER JOIN C_Cust360SoldProductWithPrice AS _Cust360SoldProductEnt ON Customer = _Cust360SoldProductEnt.SoldToParty  -- association [1..*]
LEFT OUTER JOIN I_Customer360GeneralSetting AS _Customer360GeneralSetting ON _Customer360GeneralSetting.CustomerViewProfileName = 'CUSTPROFL'  -- association [1..1]
LEFT OUTER JOIN I_CountryVH AS _CountryVH ON Country = _CountryVH.Country  -- association [1..1]
LEFT OUTER JOIN I_BPStreetValueHelpTmp AS _StreetValueHelpTmp ON Country = _StreetValueHelpTmp.Country AND StreetName = _StreetValueHelpTmp.StreetName AND CityName = _StreetValueHelpTmp.BusinessPartnerCityCode  -- association [0..1]
LEFT OUTER JOIN C_Q2CCustomerQuickView AS _SoldToParty ON Customer = _SoldToParty.Customer  -- association [0..1]
;