I_CollectionsContactDraft

DDL: I_COLLECTIONSCONTACTDRAFT Type: view BASIC

Collections Contacts Drafts

I_CollectionsContactDraft is a Basic CDS View that provides data about "Collections Contacts Drafts" in SAP S/4HANA. It reads from 1 data source (collcontdra) and exposes 26 fields with key field DraftUUID. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
collcontdra collcontdra from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartner _BusinessPartnerCompany $projection.BusinessPartnerCompany = _BusinessPartnerCompany.BusinessPartner
[1..1] I_BusinessPartner _BusinessPartnerPerson $projection.BusinessPartnerPerson = _BusinessPartnerPerson.BusinessPartner
[0..1] I_BPContactToFuncAndDept _BPContactToFuncAndDept $projection.BusinessPartnerCompany = _BPContactToFuncAndDept.BusinessPartnerCompany and $projection.BusinessPartnerPerson = _BPContactToFuncAndDept.BusinessPartnerPerson and _BPContactToFuncAndDept.ValidityEndDate >= $session.system_date
[0..1] I_BpContactToAddress _BpContactToAddress $projection.BusinessPartnerCompany = _BpContactToAddress.BusinessPartnerCompany and $projection.BusinessPartnerPerson = _BpContactToAddress.BusinessPartnerPerson and _BpContactToAddress.ValidityEndDate >= $session.system_date and _BpContactToAddress.IsDefaultAddress = 'X'
[0..1] I_CollectionSegment _CollectionSegment $projection.CollectionSegment = _CollectionSegment.CollectionSegment
[0..1] I_ContactPersonFunction _ContactPersonFunction $projection.ContactPersonFunction = _ContactPersonFunction.ContactPersonFunction
[0..1] I_ContactPersondepartment _ContactPersondepartment $projection.ContactPersonDepartment = _ContactPersondepartment.ContactPersonDepartment
[0..*] I_BPRelationship _BPRelationship $projection.RelationshipNumber = _BPRelationship.RelationshipNumber and $projection.BusinessPartnerCompany = _BPRelationship.BusinessPartnerCompany and $projection.BusinessPartnerPerson = _BPRelationship.BusinessPartnerPerson
[0..1] I_DraftAdministrativeData _DraftAdministrativeData $projection.DraftAdministrativeDataUUID = _DraftAdministrativeData.DraftUUID and _DraftAdministrativeData.DraftEntityType = 'R_COLLECTIONCONTACTTP'

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICOLLSCNTDR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Collections Contacts Drafts view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey DraftUUID view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY DraftUUID draftuuid UUID
RelationshipNumber relationshipnumber BP Rel. Number
BusinessPartnerCompany businesspartnercompany Busn. Partner
BusinessPartnerPerson businesspartnerperson Busn. Partner
CollectionSegment collectionsegment Segment
FirstName firstname First Name
LastName lastname Last Name
PhoneNumber phonenumber Telephone no.
MobileNumber mobilenumber Telephone
FaxNumber faxnumber Fax Number
EmailAddress emailaddress E-Mail Address
ContactPersonFunction contactpersonfunction Function
ContactPersonDepartment contactpersondepartment Department
HasActiveEntity TRUE
DraftCreationDateTime draftentitycreationdatetime Draft Created On
DraftLastChangedDateTime draftentitylastchangedatetime Draft Last Changed On
DraftAdministrativeDataUUID draftadministrativedatauuid UUID
_BPContactToFuncAndDept _BPContactToFuncAndDept
_BpContactToAddress _BpContactToAddress
_BusinessPartnerCompany _BusinessPartnerCompany
_BusinessPartnerPerson _BusinessPartnerPerson
_CollectionSegment _CollectionSegment
_ContactPersonFunction _ContactPersonFunction
_ContactPersondepartment _ContactPersondepartment
_BPRelationship _BPRelationship
_DraftAdministrativeData _DraftAdministrativeData

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_CollectionsContactDraft.
-- 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_CollectionsContactDraft AS
SELECT
  DraftUUID,
  RelationshipNumber,
  BusinessPartnerCompany,
  BusinessPartnerPerson,
  CollectionSegment,
  FirstName,
  LastName,
  PhoneNumber,
  MobileNumber,
  FaxNumber,
  EmailAddress,
  ContactPersonFunction,
  ContactPersonDepartment,
  cast ( hasactiveentity as boolean preserving type ) AS HasActiveEntity,
  draftentitycreationdatetime AS DraftCreationDateTime,
  draftentitylastchangedatetime AS DraftLastChangedDateTime,
  DraftAdministrativeDataUUID
FROM collcontdra
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartnerCompany ON BusinessPartnerCompany = _BusinessPartnerCompany.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartnerPerson ON BusinessPartnerPerson = _BusinessPartnerPerson.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_BPContactToFuncAndDept AS _BPContactToFuncAndDept ON BusinessPartnerCompany = _BPContactToFuncAndDept.BusinessPartnerCompany AND BusinessPartnerPerson = _BPContactToFuncAndDept.BusinessPartnerPerson AND _BPContactToFuncAndDept.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_BpContactToAddress AS _BpContactToAddress ON BusinessPartnerCompany = _BpContactToAddress.BusinessPartnerCompany AND BusinessPartnerPerson = _BpContactToAddress.BusinessPartnerPerson AND _BpContactToAddress.ValidityEndDate >= $session.system_date AND _BpContactToAddress.IsDefaultAddress = 'X'  -- association [0..1]
LEFT OUTER JOIN I_CollectionSegment AS _CollectionSegment ON CollectionSegment = _CollectionSegment.CollectionSegment  -- association [0..1]
LEFT OUTER JOIN I_ContactPersonFunction AS _ContactPersonFunction ON ContactPersonFunction = _ContactPersonFunction.ContactPersonFunction  -- association [0..1]
LEFT OUTER JOIN I_ContactPersondepartment AS _ContactPersondepartment ON ContactPersonDepartment = _ContactPersondepartment.ContactPersonDepartment  -- association [0..1]
LEFT OUTER JOIN I_BPRelationship AS _BPRelationship ON RelationshipNumber = _BPRelationship.RelationshipNumber AND BusinessPartnerCompany = _BPRelationship.BusinessPartnerCompany AND BusinessPartnerPerson = _BPRelationship.BusinessPartnerPerson  -- association [0..*]
LEFT OUTER JOIN I_DraftAdministrativeData AS _DraftAdministrativeData ON DraftAdministrativeDataUUID = _DraftAdministrativeData.DraftUUID AND _DraftAdministrativeData.DraftEntityType = 'R_COLLECTIONCONTACTTP'  -- association [0..1]
;