I_LglCntntMBusinessPartner is a Composite CDS View that provides data about "LCM Business Partner Details" in SAP S/4HANA. It reads from 2 data sources (I_LCMEntityTypeByBPRole, I_BusinessPartner_to_BP_Role) and exposes 28 fields with key fields BusinessPartner, BusinessPartnerRole. It has 1 association to related views.
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 I_LglCntntMBusinessPartner.-- 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: ILCMBUSPARTNERCREATE VIEW I_LglCntntMBusinessPartner ASSELECT
BPRole.BusinessPartner AS BusinessPartner,
BPRole.BusinessPartnerRole AS BusinessPartnerRole,
_LCMEntityTypeByBPRole.LglCntntMEntityType AS LglCntntMEntityType,
BPRole._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
BPRole._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.CityName AS CityName,
BPRole._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.PostalCode AS PostalCode,
BPRole._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.Region AS Region,
BPRole._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.Country AS Country,
BPRole._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.StreetName AS StreetName,
BPRole._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation._CurrentDfltLandlinePhoneNmbr.PhoneAreaCodeSubscriberNumber AS AddressPhoneNumber,
BPRole._BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation._CurrentDfltEmailAddress.EmailAddress AS EmailAddress,
BPRole.AuthorizationGroup AS AuthorizationGroup,
BPRole._BusinessPartner.BusinessPartnerIsBlocked AS BusinessPartnerIsBlocked,
BPRole._BusinessPartner.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
BPRole._BusinessPartner AS _BusinessPartner,
_LCMEntityTypeByBPRoleText[1: Language = $session.system_language].BusinessPartnerRoleShortName AS BusinessPartnerRoleShortName,
_LCMEntityTypeText[1: Language = $session.system_language].LglCntntMEntityTypeName AS LglCntntMEntityTypeName,
BPRole._BusinessPartner.DataControllerSet AS DataControllerSet,
BPRole._BusinessPartner.DataController1 AS DataController1,
BPRole._BusinessPartner.DataController2 AS DataController2,
BPRole._BusinessPartner.DataController3 AS DataController3,
BPRole._BusinessPartner.DataController4 AS DataController4,
BPRole._BusinessPartner.DataController5 AS DataController5,
BPRole._BusinessPartner.DataController6 AS DataController6,
BPRole._BusinessPartner.DataController7 AS DataController7,
BPRole._BusinessPartner.DataController8 AS DataController8,
BPRole._BusinessPartner.DataController9 AS DataController9,
BPRole._BusinessPartner.DataController10 AS DataController10
FROM I_BusinessPartner_to_BP_Role AS BPRole
INNERJOIN I_LCMEntityTypeByBPRole AS _LCMEntityTypeByBPRole ON /* join condition not captured in parsed metadata */
LEFTOUTERJOIN I_LCMEntityTypeText AS _LCMEntityTypeText ON LglCntntMEntityType = _LCMEntityTypeText.LglCntntMEntityType -- association [0..*]
;