P_LOCTECHNICIANSCOUNT

DDL: P_LOCTECHNICIANSCOUNT SQL: PLOCTECHCNT Type: view COMPOSITE

P_LOCTECHNICIANSCOUNT is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_EHSLocationResponsible, I_EHSLocationRoot, I_EHSLocRespTechnician) and exposes 2 fields with key field EHSLocationUUID.

Data Sources (3)

SourceAliasJoin Type
I_EHSLocationResponsible loc_resp left_outer
I_EHSLocationRoot loc_root from
I_EHSLocRespTechnician loc_tech left_outer

Annotations (10)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PLOCTECHCNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationUUID I_EHSLocationRoot EHSLocationUUID NodeID
EHSNumberOfTechnicians

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 P_LOCTECHNICIANSCOUNT.
-- 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: PLOCTECHCNT

CREATE VIEW P_LOCTECHNICIANSCOUNT AS
SELECT
  loc_root.EHSLocationUUID AS EHSLocationUUID,
  count(distinct loc_tech.EHSLocRespTechnicianID) AS EHSNumberOfTechnicians
FROM I_EHSLocationRoot AS loc_root
LEFT OUTER JOIN I_EHSLocationResponsible AS loc_resp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EHSLocRespTechnician AS loc_tech ON /* join condition not captured in parsed metadata */
;