C_EHSCmplRqPmtAppltyAreaTP

DDL: C_EHSCMPLRQPMTAPPLTYAREATP Type: view CONSUMPTION

My Permits Validity Area

C_EHSCmplRqPmtAppltyAreaTP is a Consumption CDS View that provides data about "My Permits Validity Area" in SAP S/4HANA. It reads from 1 data source (I_EHSCmplRqPmtAppltyAreaTP) and exposes 16 fields with key field CmplRqVersChildUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_EHSCmplRqPmtAppltyAreaTP I_EHSCmplRqPmtAppltyAreaTP from

Associations (3)

CardinalityTargetAliasCondition
[1..1] C_EHSMyPermitsTP _MyPermits $projection.CmplRqVersUUID = _MyPermits.CmplRqVersUUID
[1..1] I_CountryText _CountryText $projection.Country = _CountryText.Country and _CountryText.Language = $session.system_language
[0..*] I_RegionText _RegionText $projection.Country = _RegionText.Country and $projection.Region = _RegionText.Region

Annotations (18)

NameValueLevelField
EndUserText.label My Permits Validity Area view
AbapCatalog.sqlViewName CPMTAPPLTYAREA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Metadata.allowExtensions true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.semanticKey CmplRqVersID view
ObjectModel.representativeKey CmplRqVersChildUUID view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CmplRqVersChildUUID CmplRqVersChildUUID NodeID
CmplRqVersID CmplRqVersID Compliance Requirement
CmplRqVersChildCentralID CmplRqVersChildCentralID BCO KEY
CmplRqVersUUID CmplRqVersUUID NodeID
CreationDateTime CreationDateTime Timestamp
CreatedByUser CreatedByUser User Name
LastChangeDateTime LastChangeDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
Country Country Venue: Ctry/Reg
Region Region Venue Region
EHSLocationIsCopied EHSLocationIsCopied is location copied
CountryName _CountryText CountryName Country
RegionName
associations_CountryText
_RegionText _RegionText
Nodes_MyPermits

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_EHSCmplRqPmtAppltyAreaTP.
-- 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_EHSCmplRqPmtAppltyAreaTP AS
SELECT
  CmplRqVersChildUUID,
  CmplRqVersID,
  CmplRqVersChildCentralID,
  CmplRqVersUUID,
  CreationDateTime,
  CreatedByUser,
  LastChangeDateTime,
  LastChangedByUser,
  Country,
  Region,
  EHSLocationIsCopied,
  _CountryText.CountryName AS CountryName,
  _RegionText[1:Language = $session.system_language].RegionName AS RegionName
FROM I_EHSCmplRqPmtAppltyAreaTP
LEFT OUTER JOIN C_EHSMyPermitsTP AS _MyPermits ON CmplRqVersUUID = _MyPermits.CmplRqVersUUID  -- association [1..1]
LEFT OUTER JOIN I_CountryText AS _CountryText ON Country = _CountryText.Country AND _CountryText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_RegionText AS _RegionText ON Country = _RegionText.Country AND Region = _RegionText.Region  -- association [0..*]
;