C_ChmlCmplncLegalAreaVH
Legal Area for Chemical Compliance Information
C_ChmlCmplncLegalAreaVH is a Consumption CDS View that provides data about "Legal Area for Chemical Compliance Information" in SAP S/4HANA. It reads from 1 data source (I_ProdCmplncLegalArea) and exposes 4 fields. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProdCmplncLegalArea | ProdCmplncLegalArea | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_ChmlCmplncInfoUUID | sysuuid_x | |
| P_IsActiveEntity | boolean |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ChmlCmplncInfoActiveDraft | _ChmlCmplncInfoActiveDraft | _ChmlCmplncInfoActiveDraft.ActiveChmlCmplncInfoUUID = $parameters.P_ChmlCmplncInfoUUID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Legal Area for Chemical Compliance Information | view | |
| AbapCatalog.sqlViewName | CCCILGLAREAVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.resultSet.sizeCategory | #XS | view | |
| ObjectModel.representativeKey | ProdCmplncLegalArea | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| UI.headerInfo.typeName | Legal Area | view | |
| UI.headerInfo.typeNamePlural | Legal Areas | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ProdCmplncLegalAreaasProdCmplncLegalArea | ||||
| ChmlCmplncInfoUUID | _ChmlCmplncInfoActiveDraft | ChmlCmplncInfoUUID | ||
| IsActiveEntity | ||||
| ProdCmplncLegalAreaName |
@EndUserText.label: 'Legal Area for Chemical Compliance Information'
@AbapCatalog:
{
sqlViewName: 'CCCILGLAREAVH',
compiler.compareFilter: true
}
--Access Control: Authorization checks
@AccessControl:
{
authorizationCheck: #MANDATORY
}
--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE
--VDM view type
@VDM.viewType: #CONSUMPTION
@ObjectModel:
{
dataCategory: #VALUE_HELP,
resultSet.sizeCategory: #XS,
semanticKey: [ 'ProdCmplncLegalArea' ],
representativeKey: 'ProdCmplncLegalArea',
usageType:
{
dataClass: #MIXED,
sizeCategory: #M,
serviceQuality: #C
}
}
@Metadata.ignorePropagatedAnnotations: true
--Header information
@UI:
{
headerInfo:
{
typeName: 'Legal Area',
typeNamePlural: 'Legal Areas'
}
}
define view C_ChmlCmplncLegalAreaVH
with parameters
--Current UUID of CCI
P_ChmlCmplncInfoUUID : sysuuid_x,
--Draft Indicator
P_IsActiveEntity : boolean
--Select data from master table 'Legal Area'
as select from I_ProdCmplncLegalArea as ProdCmplncLegalArea
--Join data of all uses
left outer to one join C_ChmlCmplncUse as ExistingUse on ExistingUse.ProdCmplncLegalArea = ProdCmplncLegalArea.ProdCmplncLegalArea
and ExistingUse.ChmlCmplncInfoUUID = $parameters.P_ChmlCmplncInfoUUID
association [1..1] to I_ChmlCmplncInfoActiveDraft as _ChmlCmplncInfoActiveDraft on _ChmlCmplncInfoActiveDraft.ActiveChmlCmplncInfoUUID = $parameters.P_ChmlCmplncInfoUUID
{
-- Chemical Compliance UUID
@UI.hidden: true
key $parameters.P_ChmlCmplncInfoUUID as ActiveChmlCmplncInfoUUID,
--Legal Area
@ObjectModel.text.element: [ 'ProdCmplncLegalAreaName' ]
key ProdCmplncLegalArea.ProdCmplncLegalArea as ProdCmplncLegalArea,
@UI.hidden: true
_ChmlCmplncInfoActiveDraft.ChmlCmplncInfoUUID as ChmlCmplncInfoUUID,
@UI.hidden: true
@Semantics.booleanIndicator: true
$parameters.P_IsActiveEntity as IsActiveEntity,
@UI.hidden: true
@Semantics.text: true
ProdCmplncLegalArea._Text[1: Language= $session.system_language].ProdCmplncLegalAreaName as ProdCmplncLegalAreaName,
--Compliance Information
_ChmlCmplncInfoActiveDraft
}
where
ExistingUse.ChmlCmplncInfoUUID is null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"C_CHMLCMPLNCUSE",
"I_CHMLCMPLNCINFOACTIVEDRAFT",
"I_PRODCMPLNCLEGALAREA",
"I_PRODCMPLNCLEGALAREATEXT"
],
"ASSOCIATED":
[
"I_CHMLCMPLNCINFOACTIVEDRAFT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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