I_EHSCmplRqParagraphCube
Compliance Requirement Paragraph - Cube
I_EHSCmplRqParagraphCube (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_EHSCmplRqParagraphCube is a Composite CDS View (Cube) that provides data about "Compliance Requirement Paragraph - Cube" in SAP S/4HANA. It reads from 1 data source (I_CmplRqVersEnhanced) and exposes 53 fields with key fields CmplRqVersChildUUID, EHSMainLocationUUID, EHSLocClassifierRefUUID, CmplRqVersUUID, CmplRqVersAppltyAreaUUID. It has 6 associations to related views.
SAP Help Documentation
| Category | EHS Compliance Requirement Paragraph – Query |
|---|---|
| Data Category | Cube |
| Status | Location status code |
This CDS view provides the data to answer the following business question: What data is available for compliance requirement paragraphs and related objects, such as location, and location classifier? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities . To find out what use cases are best supported by this CDS view, access the CDS view entry in the View Browser app, and find the values for this annotation under the Annotation tab. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have one of the following business catalogs assigned: One of the following business catalogs must be assigned to a user in order use this CD view: Environment Management - Manage Compliance Requirements Environment Management - Manage Location Classifiers Users who want to use this CDS view must have a role with the following restriction types set to read access: These restriction types are edited in the Maintain Business Roles app.
Structure
Parameters The parameters of the CDS view are as follows: P_Date : This parameter is used to calculate the relevant revision of locations and the location hierarchy, compliance requirements, and compliance scenarios. By default, it is set to "Today." P_Language : This parameter is used to specify the language in which translatable texts are shown. By default, it is set to the logon language of the user. Fields Used for Filtering The main filters are as follows: EHSMainLocationID : This field is used to filter data by the main parent ID of the locations. CmplRqVersParagraphType : This field is used to filter data by the compliance requirement paragraph type. CmplRqDomain : This field is used to filter data by the domain of the compliance requirements. EffectiveDate : This field is used to filter by the start date (DD.MM.YYY) of the validity period of the compliance requirements. CmplRqVersValidToDate : This field is used to filter by the start date (DD.MM.YYY) of the validity period of the compliance requirements. CmplRqVersMaintStatus : This field is used to filter by the revision status of the compliance requirements. CmplRqType : This field is used to filter by the type of compliance requirement. ComplianceRequirement : This field is used to filter by the ID of the compliance requirements. EHSLocationType : This field is used to filter by the location type associated with the compliance requirements. ContentProvider : This field is used to filter by the content provider of the compliance requirements. Country : This field is used to filter data by country. Region : This field is used to filter data by the region of the location. Further Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute Comment CmplRqVersChildUUID Compliance requirement paragraph key Attribute EHSMainLocationUUID Main parent location key Attribute EHSLocClassifierRefUUID Location classifier key Attribute CmplRqVersUUID Compliance requirement key Attribute CmplRqVersAppltyAreaUUID Compliance requirement applicability area key Attribute EHSMainLocationID Main location identifier Attribute EHSLocClassifierID Location classifier identifier Attribute CmplRqVersParagraphID Compliance requirement paragraph identifier Attribute CmplRqVersParagraphName Compliance requirement paragraph name Attribute CmplRqAmendmentDate Compliance requirement amendment date Attribute CmplRqContentName Compliance requirement paragraph content name Attribute CmplRqLegalT
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | EHS-SUS-EM |
| Capabilities | Data Provider for Analytical Queries |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmplRqVersEnhanced | _CmplRqVers | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Date | sydatum | |
| P_Language | sylangu |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EHSLocationRevision | _EHSLocation | $projection.CmplRqVersEHSLocationUUID = _EHSLocation.EHSLocationUUID |
| [0..1] | I_EHSLocationRoot | _EHSLocationRoot | $projection.CmplRqVersEHSLocationUUID = _EHSLocationRoot.EHSLocationUUID |
| [0..*] | I_EHSLocationForFiltering | _EHSLocationForFiltering | $projection.CmplRqVersEHSLocationUUID = _EHSLocationForFiltering.EHSLocationUUID |
| [0..1] | P_EHSLOCCLASSIFIERS | _EHSLocClassifiers | $projection.CmplRqVersEHSLocationUUID = _EHSLocClassifiers.EHSLocationUUID |
| [1..1] | I_EHSCmplRqPermit | _EHSCmplRqPermit | $projection.CmplRqVersUUID = _EHSCmplRqPermit.CmplRqVersUUID |
| [1..*] | I_EHSCmplRqPmtCntntStruc | _ContentStructureNode | $projection.CmplRqVersUUID = _ContentStructureNode.CmplRqVersUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Compliance Requirement Paragraph - Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CmplRqVersChildUUID | _ContentStructureNode | CmplRqVersChildUUID | Paragraph Key |
| KEY | EHSMainLocationUUID | Location | ||
| KEY | EHSLocClassifierRefUUID | Paragraph Classifier Key | ||
| KEY | CmplRqVersUUID | I_CmplRqVersEnhanced | CmplRqVersUUID | Compliance Requirement UUID |
| KEY | CmplRqVersAppltyAreaUUID | NodeID | ||
| EHSMainLocationID | Main Location ID | |||
| EHSLocClassifierID | Location Classifier ID | |||
| CmplRqVersParagraphName | Paragraph Name | |||
| CmplRqVersParagraphID | _ContentStructureNode | CmplRqVersParagraphID | Compliance Requirement Paragraph ID | |
| CmplRqAmendmentDate | _ContentStructureNode | CmplRqAmendmentDate | Paragraph Amendment Date | |
| CmplRqContentName | Compliance Requirement Paragraph Content Name | |||
| CmplRqLegalTextName | Compliance Requirement Legal Text Link | |||
| CmplRqVersParagraphType | _ContentStructureNode | CmplRqVersParagraphType | Compliance Requirement Paragraph Type | |
| EHSLocClassifiersText | Location Classifier Text | |||
| CmplRqVersName | Compliance Requirement Name | |||
| CmplRqDomain | Compliance Requirement Domain | |||
| CmplRqDomainText | Description (Extra Short) | |||
| IssuingOrganization | I_CmplRqVersEnhanced | IssuingOrganization | Issuing Organization | |
| BusinessPartner | Business Partner Number | |||
| EffectiveDate | I_CmplRqVersEnhanced | EffectiveDate | Compl. Req. Effective Date | |
| CmplRqVersValidToDate | I_CmplRqVersEnhanced | CmplRqVersValidToDate | Compl. Req. Expiration Date | |
| CmplRqVersValidFromYear | Valid From Year | |||
| CmplRqVersValidToYear | Valid To Year | |||
| CmplRqVersMaintStatus | I_CmplRqVersEnhanced | CmplRqVersMaintStatus | Compliance Requirement Status | |
| CmplRqType | I_CmplRqVersEnhanced | CmplRqType | Compliance Requirement Type | |
| CmplRqTypeName | Short Text for Fixed Values | |||
| CmplRqApplicationComponent | I_CmplRqVersEnhanced | CmplRqApplicationComponent | Solution Area | |
| CmplRqVersEHSLocationUUID | I_CmplRqVersEnhanced | CmplRqVersEHSLocationUUID | Location | |
| EHSLocationID | _EHSLocationRoot | EHSLocationID | Location ID | |
| EHSLocationName | Location Name | |||
| EHSLocationType | Location Type | |||
| EHSLocationTypeText | Location Type Description | |||
| EHSLocationStatus | Location Status | |||
| EHSLocationAuthorizationGroup | Location Authorization Group | |||
| Plant | Plant ID | |||
| CostCenter | Cost Center | |||
| CompanyCode | Company Code | |||
| BusinessArea | Business Area | |||
| ContentProvider | I_CmplRqVersEnhanced | ContentProvider | Content Provider | |
| Country | Country/Region | |||
| CountryName | Country/Region Name | |||
| Region | Region | |||
| RegionName | Region Name | |||
| CmplRqVersPermitNumber | I_CmplRqVersEnhanced | CmplRqVersPermitNumber | Permit Number | |
| EHSCmplRqPermitLifecycle | _EHSCmplRqPermit | EHSCmplRqPermitLifecycle | Permit Lifecycle ID | |
| EHSCmplRqPermitLifecycleName | Permit Lifecycle Name | |||
| ComplianceRequirement | I_CmplRqVersEnhanced | ComplianceRequirement | Compliance Requirement ID | |
| NumberOfRecords | 0 | Number of Records | ||
| _EHSLocation | _EHSLocation | |||
| _EHSLocationRoot | _EHSLocationRoot | |||
| _EHSLocationForFiltering | _EHSLocationForFiltering | |||
| _EHSCmplRqPermit | _EHSCmplRqPermit | |||
| _ContentStructureNode | _ContentStructureNode |
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_EHSCmplRqParagraphCube.
-- 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.
-- Parameters: P_Date : sydatum, P_Language : sylangu
CREATE VIEW I_EHSCmplRqParagraphCube AS
SELECT
_ContentStructureNode.CmplRqVersChildUUID AS CmplRqVersChildUUID,
_EHSLocationForFiltering(P_Date: $parameters.P_Date).EHSParentLocationUUID AS EHSMainLocationUUID,
_ContentStructureNode._CmplRqClassifier.EHSLocClassifierRefUUID AS EHSLocClassifierRefUUID,
_CmplRqVers.CmplRqVersUUID AS CmplRqVersUUID,
_CmplRqVers._CmplRqVersAppltyArea.CmplRqVersAppltyAreaUUID AS CmplRqVersAppltyAreaUUID,
_EHSLocationForFiltering(P_Date: $parameters.P_Date).EHSParentLocationID AS EHSMainLocationID,
_ContentStructureNode._CmplRqClassifier._EHSLocClassifier._EHSClassifierRoot.EHSLocClassifierID AS EHSLocClassifierID,
cast(left( _ContentStructureNode.CmplRqVersParagraphName, 250 ) as ehfnd_req_paragraph_short preserving type ) AS CmplRqVersParagraphName,
_ContentStructureNode.CmplRqVersParagraphID AS CmplRqVersParagraphID,
_ContentStructureNode.CmplRqAmendmentDate AS CmplRqAmendmentDate,
cast(left( _ContentStructureNode.CmplRqContentName, 250 )as ehfnd_req_content_name_sort preserving type ) AS CmplRqContentName,
cast(left(_ContentStructureNode.CmplRqLegalTextName, 250 ) as ehfnd_req_legal_link_text_shrt preserving type ) AS CmplRqLegalTextName,
_ContentStructureNode.CmplRqVersParagraphType AS CmplRqVersParagraphType,
cast(left(_EHSLocClassifiers(P_Mandt: $session.client, P_Langu: $parameters.P_Language).Classifiers, 250) as ehfnd_loc_clsf_text_short preserving type ) AS EHSLocClassifiersText,
cast(left(_CmplRqVers.CmplRqVersName, 250) as ehfnd_crr_name_short preserving type) AS CmplRqVersName,
cast( _CmplRqVers.CmplRqDomain as ehfnd_req_domain_nce preserving type ) AS CmplRqDomain,
_CmplRqVers._CmplRqDomain._Text[1: Language = $parameters.P_Language].CmplRqDomainText AS CmplRqDomainText,
_CmplRqVers.IssuingOrganization AS IssuingOrganization,
cast( _EHSCmplRqPermit.BusinessPartner as bu_partner preserving type ) AS BusinessPartner,
_CmplRqVers.EffectiveDate AS EffectiveDate,
_CmplRqVers.CmplRqVersValidToDate AS CmplRqVersValidToDate,
cast(substring(_CmplRqVers.EffectiveDate,1,4) as ehfnd_year_code ) AS CmplRqVersValidFromYear,
cast(substring(_CmplRqVers.CmplRqVersValidToDate,1,4) as ehfnd_year_code ) AS CmplRqVersValidToYear,
_CmplRqVers.CmplRqVersMaintStatus AS CmplRqVersMaintStatus,
_CmplRqVers.CmplRqType AS CmplRqType,
_CmplRqVers._CmplncRqmtType._Text[1: Language = $parameters.P_Language].CmplRqTypeName AS CmplRqTypeName,
_CmplRqVers.CmplRqApplicationComponent AS CmplRqApplicationComponent,
_CmplRqVers.CmplRqVersEHSLocationUUID AS CmplRqVersEHSLocationUUID,
_EHSLocationRoot.EHSLocationID AS EHSLocationID,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ]._EHSLocationRevisionName[1: Language = $parameters.P_Language].EHSLocationName AS EHSLocationName,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ].EHSLocationType AS EHSLocationType,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ]._EHSLocationType._Text[1: Language = $parameters.P_Language].EHSLocationTypeText AS EHSLocationTypeText,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ].EHSLocationStatus AS EHSLocationStatus,
cast( _EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ].EHSLocationAuthorizationGroup as ehfnd_loc_auth_group_nc preserving type ) AS EHSLocationAuthorizationGroup,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ].Plant AS Plant,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ].CostCenter AS CostCenter,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ].CompanyCode AS CompanyCode,
_EHSLocation[1:RevisionStartDate <= $parameters.P_Date and RevisionEndDate >= $parameters.P_Date ].BusinessArea AS BusinessArea,
_CmplRqVers.ContentProvider AS ContentProvider,
_CmplRqVers._CmplRqVersAppltyArea.Country AS Country,
_CmplRqVers._CmplRqVersAppltyArea._CountryText[1: Language = $parameters.P_Language ].CountryName AS CountryName,
_CmplRqVers._CmplRqVersAppltyArea.Region AS Region,
_CmplRqVers._CmplRqVersAppltyArea._RegionText[1: Language = $parameters.P_Language ].RegionName AS RegionName,
_CmplRqVers.CmplRqVersPermitNumber AS CmplRqVersPermitNumber,
_EHSCmplRqPermit.EHSCmplRqPermitLifecycle AS EHSCmplRqPermitLifecycle,
_EHSCmplRqPermit._PermitLifecycleText[1: Language = $parameters.P_Language].EHSCmplRqPermitLifecycleName AS EHSCmplRqPermitLifecycleName,
_CmplRqVers.ComplianceRequirement AS ComplianceRequirement,
0 AS NumberOfRecords
FROM I_CmplRqVersEnhanced AS _CmplRqVers
LEFT OUTER JOIN I_EHSLocationRevision AS _EHSLocation ON CmplRqVersEHSLocationUUID = _EHSLocation.EHSLocationUUID -- association [0..*]
LEFT OUTER JOIN I_EHSLocationRoot AS _EHSLocationRoot ON CmplRqVersEHSLocationUUID = _EHSLocationRoot.EHSLocationUUID -- association [0..1]
LEFT OUTER JOIN I_EHSLocationForFiltering AS _EHSLocationForFiltering ON CmplRqVersEHSLocationUUID = _EHSLocationForFiltering.EHSLocationUUID -- association [0..*]
LEFT OUTER JOIN P_EHSLOCCLASSIFIERS AS _EHSLocClassifiers ON CmplRqVersEHSLocationUUID = _EHSLocClassifiers.EHSLocationUUID -- association [0..1]
LEFT OUTER JOIN I_EHSCmplRqPermit AS _EHSCmplRqPermit ON CmplRqVersUUID = _EHSCmplRqPermit.CmplRqVersUUID -- association [1..1]
LEFT OUTER JOIN I_EHSCmplRqPmtCntntStruc AS _ContentStructureNode ON CmplRqVersUUID = _ContentStructureNode.CmplRqVersUUID -- association [1..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA