P_MatlBasedCmpstnCompCnvrtd

DDL: P_MATLBASEDCMPSTNCOMPCNVRTD Type: view CONSUMPTION

Material Based Composition Converted Component Concentration

P_MatlBasedCmpstnCompCnvrtd is a Consumption CDS View that provides data about "Material Based Composition Converted Component Concentration" in SAP S/4HANA. It reads from 1 data source (I_MatlBasedCmpstnComponent) and exposes 11 fields with key field MatlBsdCompUUID.

Data Sources (1)

SourceAliasJoin Type
I_MatlBasedCmpstnComponent _MatlBasedCmpstnComponent from

Annotations (7)

NameValueLevelField
EndUserText.label Material Based Composition Converted Component Concentration view
AbapCatalog.sqlViewName PMCOMPCNVRTD 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 (11)

KeyFieldSource TableSource FieldDescription
KEY MatlBsdCompUUID I_MatlBasedCmpstnComponent MatlBsdCompUUID
ChmlCompositionUUID
MatlBsdCompProductionType
ChmlCompIsRemoved
ChmlCompIsNotContained
MatlBsdCompUUID
ChmlCompositionUUID
MatlBsdCompProductionType
ChmlCompIsRemoved
ChmlCompIsNotContained
_ChmlCmplncInfo _ChmlCmplncInfo
@EndUserText.label: 'Material Based Composition Converted Component Concentration'
@AbapCatalog:
{
  -- SQL view name (16 characters)
  sqlViewName: 'PMCOMPCNVRTD',

  --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: true

define view P_MatlBasedCmpstnCompCnvrtd
  -- active components
  as select from I_MatlBasedCmpstnComponent as _MatlBasedCmpstnComponent

{
  key _MatlBasedCmpstnComponent.MatlBsdCompUUID,

      --Active UUID of composition
      _MatlBasedCmpstnComponent.ChmlCompositionUUID,

      --Component Type (Before or After Production)
      _MatlBasedCmpstnComponent.MatlBsdCompProductionType,

      --ChmlCmplncInfoUUID
      ChmlCmplncInfoUUID,

      --ChmlCompQty
      unit_conversion(
        quantity    => _MatlBasedCmpstnComponent.ChmlCompQty,
        source_unit => _MatlBasedCmpstnComponent.ChmlCompQtyUnit,
        target_unit => cast( '%' as abap.unit(3) ),
        error_handling => 'SET_TO_NULL' ) as ChmlCompQty,

      --ChmlCompQtyLowerLimit
      unit_conversion(
        quantity    => _MatlBasedCmpstnComponent.ChmlCompQtyLowerLimit,
        source_unit => _MatlBasedCmpstnComponent.ChmlCompQtyUnit,
        target_unit => cast( '%' as abap.unit(3) ),
        error_handling => 'SET_TO_NULL' ) as ChmlCompQtyLowerLimit,

      --ChmlCompQtyUpperLimit
      unit_conversion(
        quantity    => _MatlBasedCmpstnComponent.ChmlCompQtyUpperLimit,
        source_unit => _MatlBasedCmpstnComponent.ChmlCompQtyUnit,
        target_unit => cast( '%' as abap.unit(3) ),
        error_handling => 'SET_TO_NULL' ) as ChmlCompQtyUpperLimit,

      --ChmlCompIsRemoved
      _MatlBasedCmpstnComponent.ChmlCompIsRemoved,

      --ChmlCompIsNotContained
      _MatlBasedCmpstnComponent.ChmlCompIsNotContained,

      _ChmlCmplncInfo
}
union all

--draft components
select from I_MatlBasedCmpstnCompDraft as _MatlBasedCmpstnComponent

{
  key _MatlBasedCmpstnComponent.MatlBsdCompUUID,

      --Active UUID of composition
      _MatlBasedCmpstnComponent.ChmlCompositionUUID,

      --Component Type (Before or After Production)
      _MatlBasedCmpstnComponent.MatlBsdCompProductionType,

      --ChmlCmplncInfoUUID
      ChmlCmplncInfoUUID,

      --ChmlCompQty
      unit_conversion(
        quantity    => _MatlBasedCmpstnComponent.ChmlCompQty,
        source_unit => _MatlBasedCmpstnComponent.ChmlCompQtyUnit,
        target_unit => cast( '%' as abap.unit(3) ),
        error_handling => 'SET_TO_NULL' ) as ChmlCompQty,

      --ChmlCompQtyLowerLimit
      unit_conversion(
        quantity    => _MatlBasedCmpstnComponent.ChmlCompQtyLowerLimit,
        source_unit => _MatlBasedCmpstnComponent.ChmlCompQtyUnit,
        target_unit => cast( '%' as abap.unit(3) ),
        error_handling => 'SET_TO_NULL' ) as ChmlCompQtyLowerLimit,

      --ChmlCompQtyUpperLimit
      unit_conversion(
        quantity    => _MatlBasedCmpstnComponent.ChmlCompQtyUpperLimit,
        source_unit => _MatlBasedCmpstnComponent.ChmlCompQtyUnit,
        target_unit => cast( '%' as abap.unit(3) ),
        error_handling => 'SET_TO_NULL' ) as ChmlCompQtyUpperLimit,

      --ChmlCompIsRemoved
      _MatlBasedCmpstnComponent.ChmlCompIsRemoved,

      --ChmlCompIsNotContained
      _MatlBasedCmpstnComponent.ChmlCompIsNotContained,

      _ChmlCmplncInfo
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATLBASEDCMPSTNCOMPDRAFT",
"I_MATLBASEDCMPSTNCOMPONENT"
],
"ASSOCIATED":
[
"I_CHMLCMPLNCINFO"
],
"BASE":
[
"I_MATLBASEDCMPSTNCOMPONENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/