C_EntProjSrvcOrgCntctCard

DDL: C_ENTPROJSRVCORGCNTCTCARD Type: view_entity CONSUMPTION

Contact Card for Ent Proj Service Org

C_EntProjSrvcOrgCntctCard is a Consumption CDS View that provides data about "Contact Card for Ent Proj Service Org" in SAP S/4HANA. It reads from 1 data source (I_EngagementProjectSrvcOrg) and exposes 16 fields with key field EnterpriseProjectServiceOrg. It has 5 associations to related views. It is exposed through 1 OData service (UI_ENTPROJCTRLPROFNLSRVC).

Data Sources (1)

SourceAliasJoin Type
I_EngagementProjectSrvcOrg I_EngagementProjectSrvcOrg from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCodeText $projection.CompanyCode = _CompanyCodeText.CompanyCode
[0..1] I_CostCenterText _DefaultCostCenterText $projection.ServiceOrgDefaultCostCenter = _DefaultCostCenterText.CostCenter and _DefaultCostCenterText.ValidityEndDate >= $session.system_date and _DefaultCostCenterText.ValidityStartDate <= $session.system_date
[0..1] I_SalesOrganizationText _SalesOrgText $projection.SalesOrganization = _SalesOrgText.SalesOrganization
[0..1] I_PurchasingOrganization _PurchaseOrgText $projection.PurchasingOrganization = _PurchaseOrgText.PurchasingOrganization
[0..1] I_Plant _PlantText $projection.Plant = _PlantText.Plant

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Contact Card for Ent Proj Service Org view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey EnterpriseProjectServiceOrg view
VDM.viewType #CONSUMPTION view

OData Services (1)

ServiceBindingVersionContractRelease
UI_ENTPROJCTRLPROFNLSRVC UI_ENTPROJCTRLPROFNLSRVC V4 C1 NOT_RELEASED

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY EnterpriseProjectServiceOrg EngagementProjectServiceOrg Service Org.
EnterpriseProjectSrvcOrgName
EngmtProjServiceOrgIsSales EngmtProjServiceOrgIsSales Sales Organization
EngmtProjServiceOrgIsDelivery EngmtProjServiceOrgIsDelivery Delivery Org.
CompanyCode
ServiceOrgDefaultCostCenter
SalesOrganization
PurchasingOrganization
Plant
_CompanyCodeAuth _CompanyCodeAuth
_EngagementProjectSrvcOrgDets _EngagementProjectSrvcOrgDets
_CompanyCodeText _CompanyCodeText
_DefaultCostCenterText _DefaultCostCenterText
_SalesOrgText _SalesOrgText
_PurchaseOrgText _PurchaseOrgText
_PlantText _PlantText

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 C_EntProjSrvcOrgCntctCard.
-- 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 C_EntProjSrvcOrgCntctCard AS
SELECT
  EngagementProjectServiceOrg AS EnterpriseProjectServiceOrg,
  _Text[1:Language = $session.system_language].EngmtProjectServiceOrgName AS EnterpriseProjectSrvcOrgName,
  EngmtProjServiceOrgIsSales,
  EngmtProjServiceOrgIsDelivery,
  cast( _EngagementProjectSrvcOrgDets[1:AssignedOrganisationIsDefault = 'X' and AssignedOrganisationType = 'CC'].AssignedOrganisation as fis_bukrs ) AS CompanyCode,
  _EngagementProjectSrvcOrgDets[1:AssignedOrganisationIsDefault = 'X' and AssignedOrganisationType = 'CS'].AssignedOrganisation AS ServiceOrgDefaultCostCenter,
  cast( _EngagementProjectSrvcOrgDets[1:AssignedOrganisationIsDefault = 'X' and AssignedOrganisationType = 'SO'].AssignedOrganisation as vkorg ) AS SalesOrganization,
  cast( _EngagementProjectSrvcOrgDets[1:AssignedOrganisationIsDefault = 'X' and AssignedOrganisationType = 'PO'].AssignedOrganisation as ekorg ) AS PurchasingOrganization,
  cast( _EngagementProjectSrvcOrgDets[1:AssignedOrganisationIsDefault = 'X' and AssignedOrganisationType = 'PL'].AssignedOrganisation as werks_d ) AS Plant
FROM I_EngagementProjectSrvcOrg
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeText ON CompanyCode = _CompanyCodeText.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _DefaultCostCenterText ON ServiceOrgDefaultCostCenter = _DefaultCostCenterText.CostCenter AND _DefaultCostCenterText.ValidityEndDate >= $session.system_date AND _DefaultCostCenterText.ValidityStartDate <= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgText ON SalesOrganization = _SalesOrgText.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchaseOrgText ON PurchasingOrganization = _PurchaseOrgText.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _PlantText ON Plant = _PlantText.Plant  -- association [0..1]
;