P_AssociatedTrdSecretReld

DDL: P_ASSOCIATEDTRDSECRETRELD Type: view_entity CONSUMPTION

P_AssociatedTrdSecretReld is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_ChmlComposition) and exposes 4 fields with key field ProdCmplncLegalArea. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChmlComposition TradeSecretReleased from

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_CChmlCmplConstants _Constants _Constants.Constant1 = _Constants.Constant1

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
ChmlCmplncInfoUUID
ChmlCompositionType
KEY ProdCmplncLegalArea I_ChmlComposition ProdCmplncLegalArea
ReleasedByUserasReleasedByUser
--Access Control: Authorizations Checks
@AccessControl:
{
   authorizationCheck: #NOT_REQUIRED
}

--VDM view type
@VDM.viewType: #CONSUMPTION
@VDM.private: true

define view entity P_AssociatedTrdSecretReld
  --Select data from basic view 'Composition'
  as select from I_ChmlComposition as TradeSecretReleased
  association [1..1] to P_CChmlCmplConstants as _Constants on _Constants.Constant1 = _Constants.Constant1

{
      --UUID of chemical compliance information
  key TradeSecretReleased.ChmlCmplncInfoUUID,

      --Composition type
  key TradeSecretReleased.ChmlCompositionType,

  key TradeSecretReleased.ProdCmplncLegalArea,

      --UUID of chemical composition released
      TradeSecretReleased.ChmlCompositionUUID                             as ChmlCompositionReleasedUUID,

      --Status Released
      TradeSecretReleased.ChmlCompositionStatus                           as ChmlCmpstnReldStatus,

      --Released by User
      TradeSecretReleased.ReleasedByUser                                  as ReleasedByUser,

      --Indicator: Is active entity of chemical composition with status In Process
      cast( _Constants.ConstantTrue as sdraft_is_active preserving type ) as ChmlCmpstnReldIsActiveEntity
}
where
  --Only legal compositions
      TradeSecretReleased.ChmlCompositionType   = 'TS'
  --Only In Process compositions
  and TradeSecretReleased.ChmlCompositionStatus = 'RE'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLCOMPOSITION",
"P_CCHMLCMPLCONSTANTS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/