P_ChmlCmplncUse
Chemical Compliance Use
P_ChmlCmplncUse is a Consumption CDS View that provides data about "Chemical Compliance Use" in SAP S/4HANA. It reads from 2 data sources (I_ChmlCmplncInfoTP, I_ProdCmplncLegalArea) and exposes 5 fields with key fields ChmlCmplncInfoUUID, ProdCmplncLegalArea. It has 3 associations to related views. Part of development package EHFND_CNS_CCI.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlCmplncInfoTP | ChemicalComplianceInfo | from |
| I_ProdCmplncLegalArea | ProdCmplncLegalArea | cross |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PCPrptyProcgSts | _ProcessingStatus | $projection.ProdCmplncUseProcgSts = _ProcessingStatus.PCPrptyProcgSts --Dummy constant selection to solve issues with case-statements with constants (not null-preserving) |
| [1..1] | P_CChmlCmplConstants | _Constants | _Constants.Constant1 = _Constants.Constant1 |
| [0..1] | I_ProdCmplncLegalArea | _ProdCmplncLegalArea | $projection.ProdCmplncLegalArea = _ProdCmplncLegalArea.ProdCmplncLegalArea |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCCUSE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChmlCmplncInfoUUID | I_ChmlCmplncInfoTP | ChmlCmplncInfoUUID | Chemical Compliance Information PP |
| KEY | ProdCmplncLegalArea | |||
| ProdCmplncUseUUIDendasProdCmplncUseUUID | ||||
| _ProcessingStatus | _ProcessingStatus | |||
| _ProdCmplncLegalArea | _ProdCmplncLegalArea |
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_ChmlCmplncUse.
-- 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 P_ChmlCmplncUse AS
SELECT
ChemicalComplianceInfo.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
cast( coalesce( _ProdCmplncUseInProgress.ProdCmplncLegalArea, _ProdCmplncUseReleased.ProdCmplncLegalArea) as ehfnd_legal_area preserving type ) AS ProdCmplncLegalArea
FROM I_ChmlCmplncInfoTP AS ChemicalComplianceInfo
CROSS JOIN I_ProdCmplncLegalArea AS ProdCmplncLegalArea
LEFT OUTER JOIN I_PCPrptyProcgSts AS _ProcessingStatus ON ProdCmplncUseProcgSts = _ProcessingStatus.PCPrptyProcgSts -- association [0..1]
LEFT OUTER JOIN P_CChmlCmplConstants AS _Constants ON _Constants.Constant1 = _Constants.Constant1 -- association [1..1]
LEFT OUTER JOIN I_ProdCmplncLegalArea AS _ProdCmplncLegalArea ON ProdCmplncLegalArea = _ProdCmplncLegalArea.ProdCmplncLegalArea -- association [0..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