I_EHSCmplRqPermit
CmplRq Permit
I_EHSCmplRqPermit is a Basic CDS View that provides data about "CmplRq Permit" in SAP S/4HANA. It reads from 1 data source (ehfndv_per_root) and exposes 39 fields with key field CmplRqVersUUID. It has 7 associations to related views. Part of development package EHENV_BO_CMPLRQ_PERMIT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehfndv_per_root | ehfndv_per_root | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EHSCmplRqPermitDesc | _DescNode | $projection.CmplRqVersUUID = _DescNode.CmplRqVersUUID |
| [0..*] | I_EHSCmplRqPmtAppltyArea | _ValAreaNode | $projection.CmplRqVersUUID = _ValAreaNode.CmplRqVersUUID |
| [0..*] | I_EHSCmplRqPmtCntntStruc | _ContentStructureNode | $projection.CmplRqVersUUID = _ContentStructureNode.CmplRqVersUUID |
| [0..*] | I_EHSCmplRqPermitName | _NameNode | $projection.CmplRqVersUUID = _NameNode.CmplRqVersUUID |
| [0..*] | I_EHSCmplRqPmtIssgOrg | _IssOrg | $projection.CmplRqVersUUID = _IssOrg.CmplRqVersUUID |
| [1..1] | I_CmplRqPermitLifecycleText | _PermitLifecycleText | $projection.EHSCmplRqPermitLifecycle = _PermitLifecycleText.EHSCmplRqPermitLifecycle and _PermitLifecycleText.Language = $session.system_language |
| [1..1] | I_EHSLocationRevisionBasic | _LocRevision | $projection.EHSLocationUUID = _LocRevision.EHSLocationUUID and _LocRevision.RevisionStartDate <= $session.system_date and _LocRevision.RevisionEndDate >= $session.system_date |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | CmplRq Permit | view | |
| AbapCatalog.sqlViewName | EHSCMPLREQPER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.representativeKey | CMPLRQVERSUUID | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CmplRqVersUUID | cmplrqversuuid | NodeID | |
| CmplRqVersID | cmplrqversid | Compliance Requirement | ||
| CmplRqVersCentralID | cmplrqverscentralid | BCO KEY | ||
| CmplRqVersName | title | View Title | ||
| CreationDateTime | Timestamp | |||
| CreatedByUser | createdbyuser | User Name | ||
| LastChangeDateTime | Timestamp | |||
| LastChangedByUser | lastchangedbyuser | User Name | ||
| BusinessPartner | Issuing Authority | |||
| ComplianceRequirement | compliancerequirement | Compliance Requirement | ||
| CmplRqVersMaintStatus | Status | |||
| CmplRqType | Type | |||
| EHSCmplRqPermitLifecycle | Permit Lifecycle ID | |||
| CmplRqPattern | cmplrqpattern | Compliance Pattern | ||
| IssuingOrganization | issuingorganization | Obsolete | ||
| EHSLocationUUID | NodeID | |||
| ContentProvider | Content Provider | |||
| CmplRqVersValidToDate | cmplrqversvalidtodate | Expiration Date | ||
| CmplRqApplicationComponent | cmplrqapplicationcomponent | Solution Area | ||
| CmplRqSourceURL | cmplrqsourceurl | Source URL | ||
| TransitionPeriodEndDate | transitionperiodenddate | End of Transition | ||
| CmplRqIsInitiallyPrvddBySAP | cmplrqisinitiallyprvddbysap | Provided by SAP SE | ||
| CmplRqVersDocumentationObject | cmplrqversdocumentationobject | LOIO ID | ||
| CmplRqVersPermitNumber | cmplrqverspermitnumber | Permit Number | ||
| CmplRqDomain | Requirement Domain | |||
| EffectiveDate | effectivedate | Effective Date | ||
| CmplRqUUID | cmplrquuid | Compl Req. | ||
| EHSCmplRqPmtNotifIsSent | ehscmplrqpmtnotifissent | PMT Email NOTIF | ||
| EHSCmplRqPmtSetForRnwlOnDate | ehscmplrqpmtsetforrnwlondate | FOR RNWL ON DATE | ||
| CmplRqVersChangeLog | cmplrqverschangelog | Revision | ||
| CmplRqPermitType | Permit Type | |||
| CmplRqIsCreatedFromDocument | cmplrqiscreatedfromdocument | |||
| associationsnodes_DescNode | ||||
| _ValAreaNode | _ValAreaNode | |||
| _NameNode | _NameNode | |||
| _IssOrg | _IssOrg | |||
| _ContentStructureNode | _ContentStructureNode | |||
| _PermitLifecycleText | _PermitLifecycleText | |||
| _LocRevision | _LocRevision |
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_EHSCmplRqPermit.
-- 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 I_EHSCmplRqPermit AS
SELECT
CmplRqVersUUID,
CmplRqVersID,
CmplRqVersCentralID,
title AS CmplRqVersName,
cast(creationdatetime as ehfnd_datetime_cr preserving type) AS CreationDateTime,
CreatedByUser,
cast(lastchangedatetime as ehfnd_datetime_ch preserving type ) AS LastChangeDateTime,
LastChangedByUser,
cast(businesspartner as bu_partner preserving type ) AS BusinessPartner,
ComplianceRequirement,
cast(cmplrqversmaintstatus as ehfnd_req_status_nce preserving type ) AS CmplRqVersMaintStatus,
cast(cmplrqtype as ehfnd_req_type_nce preserving type ) AS CmplRqType,
cast( ehscmplrqpermitlifecycle as ehenv_pmt_lfcyc_id preserving type ) AS EHSCmplRqPermitLifecycle,
CmplRqPattern,
IssuingOrganization,
cast(ehslocationuuid as ehfnd_location_uuid_ref preserving type ) AS EHSLocationUUID,
cast(contentprovider as abap.char( 30 )) AS ContentProvider,
CmplRqVersValidToDate,
CmplRqApplicationComponent,
CmplRqSourceURL,
TransitionPeriodEndDate,
CmplRqIsInitiallyPrvddBySAP,
CmplRqVersDocumentationObject,
CmplRqVersPermitNumber,
cast(cmplrqdomain as ehfnd_req_domain_nce preserving type ) AS CmplRqDomain,
EffectiveDate,
CmplRqUUID,
EHSCmplRqPmtNotifIsSent,
EHSCmplRqPmtSetForRnwlOnDate,
CmplRqVersChangeLog,
cast(cmplrqpermittype as abap.char( 10 ) ) AS CmplRqPermitType,
CmplRqIsCreatedFromDocument
FROM ehfndv_per_root
LEFT OUTER JOIN I_EHSCmplRqPermitDesc AS _DescNode ON CmplRqVersUUID = _DescNode.CmplRqVersUUID -- association [0..*]
LEFT OUTER JOIN I_EHSCmplRqPmtAppltyArea AS _ValAreaNode ON CmplRqVersUUID = _ValAreaNode.CmplRqVersUUID -- association [0..*]
LEFT OUTER JOIN I_EHSCmplRqPmtCntntStruc AS _ContentStructureNode ON CmplRqVersUUID = _ContentStructureNode.CmplRqVersUUID -- association [0..*]
LEFT OUTER JOIN I_EHSCmplRqPermitName AS _NameNode ON CmplRqVersUUID = _NameNode.CmplRqVersUUID -- association [0..*]
LEFT OUTER JOIN I_EHSCmplRqPmtIssgOrg AS _IssOrg ON CmplRqVersUUID = _IssOrg.CmplRqVersUUID -- association [0..*]
LEFT OUTER JOIN I_CmplRqPermitLifecycleText AS _PermitLifecycleText ON EHSCmplRqPermitLifecycle = _PermitLifecycleText.EHSCmplRqPermitLifecycle AND _PermitLifecycleText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_EHSLocationRevisionBasic AS _LocRevision ON EHSLocationUUID = _LocRevision.EHSLocationUUID AND _LocRevision.RevisionStartDate <= $session.system_date AND _LocRevision.RevisionEndDate >= $session.system_date -- association [1..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