I_LCMUserContactCard
Basic view for LCM User Contact Card
I_LCMUserContactCard is a Composite CDS View that provides data about "Basic view for LCM User Contact Card" in SAP S/4HANA. It reads from 1 data source (I_LCMUserAddressAssignment) and exposes 20 fields with key field ContactCardID. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_LCMUserAddressAssignment | _User | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_LCMPerson | _Person | _Person.PersonNumber = $projection.Person and _Person.PersonNumber <> '' |
| [0..1] | I_LCMContactCardOrgData | _OrgData | _OrgData.AddressID = $projection.AddressID and _OrgData.Person = $projection.Person |
| [0..*] | I_AddressPhoneNumber | _DefaultPhoneNumber | _DefaultPhoneNumber.AddressID = $projection.AddressID and _DefaultPhoneNumber.Person = $projection.Person and _DefaultPhoneNumber.PhoneNumberType = '1' |
| [0..1] | I_LCMContactCardFaxData | _DefaultFaxNumber | _DefaultFaxNumber.AddressID = $projection.AddressID and _DefaultFaxNumber.Person = $projection.Person and _DefaultFaxNumber.IsDefaultFaxNumber = 'X' |
| [0..*] | I_AddressPhoneNumber | _DefaultMobilePhoneNumber | _DefaultMobilePhoneNumber.AddressID = $projection.AddressID and _DefaultMobilePhoneNumber.Person = $projection.Person and _DefaultMobilePhoneNumber.PhoneNumberType = '3' |
| [0..*] | I_AddressEmailAddress | _DefaultEmailAddress | _DefaultEmailAddress.AddressID = $projection.AddressID and _DefaultEmailAddress.Person = $projection.Person and _DefaultEmailAddress.IsDefaultEmailAddress = 'X' |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILCMUSERCTC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Basic view for LCM User Contact Card | view | |
| ObjectModel.representativeKey | ContactCardID | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ContactCardID | I_LCMUserAddressAssignment | ContactCardID | User name |
| Person | I_LCMUserAddressAssignment | Person | Person/ Farm/ Field | |
| BusinessPartnerUUID | I_LCMUserAddressAssignment | BusinessPartnerUUID | UUID | |
| FirstName | _Person | FirstName | First Name | |
| LastName | _Person | LastName | Last Name | |
| FullName | ||||
| AddressID | I_LCMUserAddressAssignment | AddressID | Ship-to address | |
| PhoneNumber | ||||
| MobilePhoneNumber | ||||
| InternationalFaxNumber | ||||
| EmailAddress | _DefaultEmailAddress | EmailAddress | E-Mail Address | |
| Department | _OrgData | Department | Department | |
| FunctionalTitleName | _OrgData | FunctionalTitleName | ||
| ContactCardRole | ||||
| ContactCardType | ||||
| ContactCardNavLinkSemanticObj | ||||
| ContactCardNavLinkQueryPart | ||||
| _DefaultFaxNumber | _DefaultFaxNumber | |||
| _OrgData | _OrgData | |||
| _Person | _Person |
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_LCMUserContactCard.
-- 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: ILCMUSERCTC
CREATE VIEW I_LCMUserContactCard AS
SELECT
_User.ContactCardID AS ContactCardID,
_User.Person AS Person,
_User.BusinessPartnerUUID AS BusinessPartnerUUID,
_Person.FirstName AS FirstName,
_Person.LastName AS LastName,
cast(coalesce( _Person.UserFullName , _User.FullName ) as name_text ) AS FullName,
_User.AddressID AS AddressID,
cast(_DefaultPhoneNumber.PhoneNumber as contactcardphonenumber) AS PhoneNumber,
cast(_DefaultMobilePhoneNumber.PhoneNumber as contactcardmobilephonenumber) AS MobilePhoneNumber,
cast(_DefaultFaxNumber.InternationalFaxNumber as contactcardfaxnumber) AS InternationalFaxNumber,
_DefaultEmailAddress.EmailAddress AS EmailAddress,
_OrgData.Department AS Department,
_OrgData.FunctionalTitleName AS FunctionalTitleName,
cast( 'Creator' as contactcardrole ) AS ContactCardRole,
cast( 'User' as contactcardtype ) AS ContactCardType,
'User' AS ContactCardNavLinkSemanticObj,
concat('User=', _User.UserID) AS ContactCardNavLinkQueryPart
FROM I_LCMUserAddressAssignment AS _User
LEFT OUTER JOIN I_LCMPerson AS _Person ON _Person.PersonNumber = Person AND _Person.PersonNumber <> '' -- association [0..1]
LEFT OUTER JOIN I_LCMContactCardOrgData AS _OrgData ON _OrgData.AddressID = AddressID AND _OrgData.Person = Person -- association [0..1]
LEFT OUTER JOIN I_AddressPhoneNumber AS _DefaultPhoneNumber ON _DefaultPhoneNumber.AddressID = AddressID AND _DefaultPhoneNumber.Person = Person AND _DefaultPhoneNumber.PhoneNumberType = '1' -- association [0..*]
LEFT OUTER JOIN I_LCMContactCardFaxData AS _DefaultFaxNumber ON _DefaultFaxNumber.AddressID = AddressID AND _DefaultFaxNumber.Person = Person AND _DefaultFaxNumber.IsDefaultFaxNumber = 'X' -- association [0..1]
LEFT OUTER JOIN I_AddressPhoneNumber AS _DefaultMobilePhoneNumber ON _DefaultMobilePhoneNumber.AddressID = AddressID AND _DefaultMobilePhoneNumber.Person = Person AND _DefaultMobilePhoneNumber.PhoneNumberType = '3' -- association [0..*]
LEFT OUTER JOIN I_AddressEmailAddress AS _DefaultEmailAddress ON _DefaultEmailAddress.AddressID = AddressID AND _DefaultEmailAddress.Person = Person AND _DefaultEmailAddress.IsDefaultEmailAddress = 'X' -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA