I_InvgCsMStaffAndUnit

DDL: I_INVGCSMSTAFFANDUNIT SQL: IINVGCSMSTFANDUT Type: view BASIC

S4CRM: ICM Staff and Unit basic view

I_InvgCsMStaffAndUnit is a Basic CDS View that provides data about "S4CRM: ICM Staff and Unit basic view" in SAP S/4HANA. It reads from 1 data source (crms4d_icm_staff) and exposes 10 fields with key fields InvgCsMStaffUnitID, InvgCsMPartnerNumber, InvgCsMRelationship, InvgCsMRelatedEntityType. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crms4d_icm_staff crms4d_icm_staff from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_InvgCsMBusinessPartner _BusinessPartner $projection.InvgCsMPartnerNumber = _BusinessPartner.BusinessPartner
[0..*] I_InvgCsMPartFunctionText _PartFuncTxt $projection.InvgCsMRelationship = _PartFuncTxt.PartnerFunction

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IINVGCSMSTFANDUT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label S4CRM: ICM Staff and Unit basic view view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY InvgCsMStaffUnitID staffunitid Staff and Units ID
KEY InvgCsMPartnerNumber partner_no Partner Number
KEY InvgCsMRelationship partner_fct Partner Function
KEY InvgCsMRelatedEntityType entity_type Type
InvgCsMIsMainPartner mainpartner Main Partner
ValidFrom valid_from Validity Start Time
ValidTo valid_to Validity End Time
InvgCsMPartnerNumberType no_type Internal No. Typ
_BusinessPartner _BusinessPartner
_PartFuncTxt _PartFuncTxt

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_InvgCsMStaffAndUnit.
-- 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: IINVGCSMSTFANDUT

CREATE VIEW I_InvgCsMStaffAndUnit AS
SELECT
  staffunitid AS InvgCsMStaffUnitID,
  partner_no AS InvgCsMPartnerNumber,
  partner_fct AS InvgCsMRelationship,
  entity_type AS InvgCsMRelatedEntityType,
  mainpartner AS InvgCsMIsMainPartner,
  valid_from AS ValidFrom,
  valid_to AS ValidTo,
  no_type AS InvgCsMPartnerNumberType
FROM crms4d_icm_staff
LEFT OUTER JOIN I_InvgCsMBusinessPartner AS _BusinessPartner ON InvgCsMPartnerNumber = _BusinessPartner.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_InvgCsMPartFunctionText AS _PartFuncTxt ON InvgCsMRelationship = _PartFuncTxt.PartnerFunction  -- association [0..*]
;