C_CustomerOP is a Consumption CDS View that provides data about "Customer" in SAP S/4HANA. It reads from 1 data source (I_Customer) and exposes 42 fields with key field Customer. It has 7 associations to related views. Part of development package VDM_MD_BP.
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_CustomerOP.-- 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: CCUSTOMEROPCREATE VIEW C_CustomerOP ASSELECT
I_Customer.Customer AS Customer,
CustomerName,
BPCustomerName,
CustomerAccountGroup,
AuthorizationGroup,
_CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.CityName AS CityName,
concat(concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.RoomNumber, concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.Floor, concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.Building, concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.HouseNumber, concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.StreetName, concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.StreetPrefixName1, concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.StreetPrefixName2, concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.StreetSuffixName1, _CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.StreetSuffixName2, 1),1),1),1),1),1),1),1), concat_with_space(',',concat(concat_with_space(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.PostalCode, _CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.CityName,1), concat_with_space(',',_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.Country,1)),1)) as FormattedAddress AS Country11asFormattedAddress,
Industry,
InternationalLocationNumber1,
cast(concat_with_space(concat_with_space(I_Customer.InternationalLocationNumber1, I_Customer.InternationalLocationNumber2, 1), I_Customer.InternationalLocationNumber3, 1) as mm_pur_supplier_iln) AS InternationalLocationNumber,
TaxNumber1,
VATRegistration,
_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation._CurrentDfltLandlinePhoneNmbr.InternationalPhoneNumber AS InternationalPhoneNumber,
_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation._CurrentDfltMobilePhoneNumber.InternationalPhoneNumber AS InternationalMobilePhoneNumber,
_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation._CurrentDfltFaxNumber.InternationalFaxNumber AS InternationalFaxNumber,
_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation._CurrentDfltEmailAddress.EmailAddress AS EmailAddress,
OrderIsBlockedForCustomer,
BillingIsBlockedForCustomer,
DeliveryIsBlocked,
PostingIsBlocked,
I_Customer.DataControllerSet AS DataControllerSet,
I_Customer.DataController1 AS DataController1,
I_Customer.DataController2 AS DataController2,
I_Customer.DataController3 AS DataController3,
I_Customer.DataController4 AS DataController4,
I_Customer.DataController5 AS DataController5,
I_Customer.DataController6 AS DataController6,
I_Customer.DataController7 AS DataController7,
I_Customer.DataController8 AS DataController8,
I_Customer.DataController9 AS DataController9,
I_Customer.DataController10 AS DataController10,
I_Customer.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
coalesce(_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._Address._DefaultCorpURLAddress.URLFieldLength, _CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._Address._DefaultPvtURLAddress.URLFieldLength) as URLFieldLength AS URLFieldLengthasURLFieldLength,
_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation._MainWebsiteURL.UniformResourceIdentifier AS WebsiteURL
FROM I_Customer
LEFTOUTERJOIN I_CustomerContactOP AS _CustomerContact ON Customer = _CustomerContact.Customer -- association [0..*]LEFTOUTERJOIN C_CustomerSalesAreaOP AS _CustomerSalesArea ON Customer = _CustomerSalesArea.Customer -- association [0..*]LEFTOUTERJOIN C_CustomerCompanyCodeOP AS _CustomerCompanyCode ON Customer = _CustomerCompanyCode.Customer -- association [0..*]LEFTOUTERJOIN C_CustomerBankDetailsOP AS _CustomerBankDetails ON Customer = _CustomerBankDetails.Customer -- association [0..*]LEFTOUTERJOIN I_DeliveryBlockReason AS _DelivBlkRsnValueHelp ON DeliveryIsBlocked = _DelivBlkRsnValueHelp.DeliveryBlockReason -- association [0..1]LEFTOUTERJOIN I_BillingBlockReason AS _BillingBlockReasonValueHelp ON BillingIsBlockedForCustomer = _BillingBlockReasonValueHelp.BillingBlockReason -- association [0..1]LEFTOUTERJOIN C_OrderIsBlockedTextVHTemp AS _OrderIsBlockedForCustomer ON OrderIsBlockedForCustomer = _OrderIsBlockedForCustomer.OrderIsBlockedForCustomer -- association [0..*]
;