C_PCTrdScrtAssgmtVH
Trade Secret Assignment
C_PCTrdScrtAssgmtVH is a Consumption CDS View that provides data about "Trade Secret Assignment" in SAP S/4HANA. It reads from 1 data source (I_ProdCmplncLegalArea) and exposes 4 fields. It has 1 association to related views. Part of development package EHFND_CNS_CCI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProdCmplncLegalArea | LegalArea | 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 (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Trade Secret Assignment | view | |
| AccessControl.authorizationCheck | #MANDATORY | 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 | Trade Secret | view | |
| UI.headerInfo.typeNamePlural | Trade Secrets | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ProdCmplncLegalArea | ||||
| ChmlCmplncInfoUUID | _ChmlCmplncInfoActiveDraft | ChmlCmplncInfoUUID | ||
| IsActiveEntity | ||||
| ProdCmplncLegalAreaName |
@EndUserText.label: 'Trade Secret Assignment'
--Access Control: Authorization checks
@AccessControl:
{
authorizationCheck: #MANDATORY
}
--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: 'Trade Secret',
typeNamePlural: 'Trade Secrets'
}
}
define view entity C_PCTrdScrtAssgmtVH
with parameters
--Current UUID of CCI
P_ChmlCmplncInfoUUID : sysuuid_x,
--Draft Indicator
P_IsActiveEntity : boolean
--Select data from master table 'Composition Type'
as select from I_ProdCmplncLegalArea as LegalArea
--Join data of all legal composition that are assigned to current analytical composition
left outer to one join I_ChmlComposition as ExistingComp on ExistingComp.ChmlCompositionType = 'TS'
and ExistingComp.ProdCmplncLegalArea = LegalArea.ProdCmplncLegalArea
and ExistingComp.ChmlCmplncInfoUUID = $parameters.P_ChmlCmplncInfoUUID
--join data of analytical composition (compliance information)
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,
--Composition Type
@ObjectModel.text.element: [ 'ProdCmplncLegalAreaName' ]
key LegalArea.ProdCmplncLegalArea,
@UI.hidden: true
_ChmlCmplncInfoActiveDraft.ChmlCmplncInfoUUID as ChmlCmplncInfoUUID,
@UI.hidden: true
@Semantics.booleanIndicator: true
$parameters.P_IsActiveEntity as IsActiveEntity,
--Description of Composition Type
@UI.hidden: true
@ObjectModel.readOnly: true
@Semantics.text: true
LegalArea._Text[1: Language = $session.system_language ].ProdCmplncLegalAreaName,
--Compliance Information
_ChmlCmplncInfoActiveDraft
}
where
ExistingComp.ChmlCmplncInfoUUID is null
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