Associated Analytical Compositon with Status Released
P_AssociatedAnlytlReldCmpstn is a Consumption CDS View that provides data about "Associated Analytical Compositon with Status Released" in SAP S/4HANA. It reads from 1 data source (I_ChmlComposition) and exposes 5 fields. It has 1 association to related views.
Associated Analytical Compositon with Status Released
view
AbapCatalog.sqlViewName
PAAANRECMPS
view
AbapCatalog.compiler.compareFilter
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
ChmlCmplncInfoUUID
ReleasedByUserasReleasedByUser
ReleaseDateTime
ChmlCompositionTypeasChmlCompositionType
ProdCmplncLegalAreaasProdCmplncLegalArea
@EndUserText.label: 'Associated Analytical Compositon with Status Released'
@AbapCatalog:
{
-- SQL view name (16 characters)
sqlViewName: 'PAAANRECMPS',
--If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
compiler.compareFilter: true
}
--Access Control: Authorizations Checks
@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
--Client Handling of the view@ClientHandling.algorithm: #SESSION_VARIABLE
--VDM view type
@VDM.viewType: #CONSUMPTION@VDM.private: truedefineview P_AssociatedAnlytlReldCmpstn
--Select data from basic view 'Composition'
asselectfrom I_ChmlComposition as CompositionReleased
association [1..1] to P_CChmlCmplConstants as _Constants on _Constants.Constant1 = _Constants.Constant1
{
--UUID of chemical compliance information
key CompositionReleased.ChmlCmplncInfoUUID,
--UUID of chemical composition released
CompositionReleased.ChmlCompositionUUID as ChmlCompositionReleasedUUID,
--Status Released
CompositionReleased.ChmlCompositionStatus as ChmlCmpstnReldStatus,
--Released by User
CompositionReleased.ReleasedByUser as ReleasedByUser,
-- Release Date and Time
CompositionReleased.ReleaseDateTime,
--Indicator: Is active entity of chemical composition with status In Process
cast(_Constants[inner].ConstantTrue as sdraft_is_active preserving type ) as ChmlCmpstnReldIsActiveEntity,
-- Composition Type
CompositionReleased.ChmlCompositionType as ChmlCompositionType,
-- Legal Area
CompositionReleased.ProdCmplncLegalArea as ProdCmplncLegalArea,
-- Product Categorization
CompositionReleased.ChmlCmplncProdCatztnPhrsUUID as ChmlCmplncProdCatztnPhrsUUID
}
where
--Only material-based compositions
CompositionReleased.ChmlCompositionType = 'ANALYTIC1'
--Only Released compositions
and CompositionReleased.ChmlCompositionStatus = 'RE'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLCOMPOSITION",
"P_CCHMLCMPLCONSTANTS"
],
"ASSOCIATED":
[
"P_CCHMLCMPLCONSTANTS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/