I_UserAddressLink

DDL: I_USERADDRESSLINK Type: view_entity BASIC Package: SUSR

Benutzer: Verknüpfung zur Adresse

I_UserAddressLink is a Basic CDS View that provides data about "Benutzer: Verknüpfung zur Adresse" in SAP S/4HANA. It reads from 1 data source (usr21) and exposes 14 fields with key field UserID. It has 4 associations to related views. Part of development package SUSR.

Data Sources (1)

SourceAliasJoin Type
usr21 usr21 from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_UserBasic _User _User.UserID = $projection.UserID
[1..1] I_AddressPersonName _AddressPersonName _AddressPersonName.AddressPersonID = $projection.UserAddressPersonIdentifier and _AddressPersonName.AddressRepresentationCode = ''
[1..1] I_OrganizationAddress _AddressOrganization _AddressOrganization.AddressPersonID = '' and _AddressOrganization.AddressID = $projection.UserAddressIdentifier and _AddressOrganization.AddressRepresentationCode = ''
[0..*] I_UserCompany _TemplateCompany _TemplateCompany.UserAddressIdentifier = $projection.UserTemplateAddressIdentifier and $projection.UserTemplateOrgType = 'C'

Annotations (10)

NameValueLevelField
EndUserText.label Benutzer: Verknüpfung zur Adresse view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey UserID view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
Metadata.allowExtensions true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY UserID
UserAddressPersonIdentifier usr21 persnumber Person Number
UserAddressIdentifier usr21 addrnumber Address Number
IdentityAddressType usr21 idadtype Identity Add. Type
UserIdentityUUID usr21 identity_guid Identity GUID
BusinessPartnerUUID usr21 bpperson BP GUID
ResponsibleUser usr21 responsible User Name
UserDescription
UserTemplateOrgType
UserTemplateAddressIdentifier
_User _User
_AddressPersonName _AddressPersonName
_AddressOrganization _AddressOrganization
_TemplateCompany _TemplateCompany

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_UserAddressLink.
-- 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 I_UserAddressLink AS
SELECT
  cast( usr21.bname as vdm_userid preserving type ) AS UserID,
  usr21.persnumber AS UserAddressPersonIdentifier,
  usr21.addrnumber AS UserAddressIdentifier,
  usr21.idadtype AS IdentityAddressType,
  usr21.identity_guid AS UserIdentityUUID,
  usr21.bpperson AS BusinessPartnerUUID,
  usr21.responsible AS ResponsibleUser,
  cast( usr21.techdesc as vdm_userdescription preserving type ) AS UserDescription,
  cast( usr21.template_orgtype as vdm_usertemplateorgtype preserving type ) AS UserTemplateOrgType,
  cast( usr21.template_orgaddr as vdm_usertemplateorgaddrid preserving type ) AS UserTemplateAddressIdentifier
FROM usr21
LEFT OUTER JOIN I_UserBasic AS _User ON _User.UserID = UserID  -- association [1..1]
LEFT OUTER JOIN I_AddressPersonName AS _AddressPersonName ON _AddressPersonName.AddressPersonID = UserAddressPersonIdentifier AND _AddressPersonName.AddressRepresentationCode = ''  -- association [1..1]
LEFT OUTER JOIN I_OrganizationAddress AS _AddressOrganization ON _AddressOrganization.AddressPersonID = '' AND _AddressOrganization.AddressID = UserAddressIdentifier AND _AddressOrganization.AddressRepresentationCode = ''  -- association [1..1]
LEFT OUTER JOIN I_UserCompany AS _TemplateCompany ON _TemplateCompany.UserAddressIdentifier = UserTemplateAddressIdentifier AND UserTemplateOrgType = 'C'  -- association [0..*]
;