A_ProdCmplncMlticmpProdComp

DDL: A_PRODCMPLNCMLTICMPPRODCOMP Type: view_entity CONSUMPTION Package: EHFND_API_ODATA_MCP

Multicomponent Product Component

A_ProdCmplncMlticmpProdComp is a Consumption CDS View that provides data about "Multicomponent Product Component" in SAP S/4HANA. It reads from 1 data source (I_MatlBasedCmpstnComponent) and exposes 10 fields with key field ChmlCompUUID. It has 1 association to related views. It is exposed through 1 OData service (API_MULTICOMPONENTPRODUCT). Part of development package EHFND_API_ODATA_MCP.

Data Sources (1)

SourceAliasJoin Type
I_MatlBasedCmpstnComponent Component from

Associations (1)

CardinalityTargetAliasCondition
[0..1] A_ProdCmplncMlticmpProdCmpstn _MultiComponentComposition _MultiComponentComposition.ChmlCompositionUUID = $projection.ChmlCompositionUUID and _MultiComponentComposition.ChmlCompositionStatus = 'RE'

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Multicomponent Product Component view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view
OData.entityType.name ProdCmplncMlticmpProdComp_Type view

OData Services (1)

ServiceBindingVersionContractRelease
API_MULTICOMPONENTPRODUCT API_MULTICOMPONENTPRODUCT V4 C2 C1

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY ChmlCompUUID I_MatlBasedCmpstnComponent MatlBsdCompUUID
ChmlCompositionUUID I_MatlBasedCmpstnComponent ChmlCompositionUUID
ChemicalComplianceInfo
ChmlCompQty I_MatlBasedCmpstnComponent ChmlCompQty
ChmlCompQtyAsText I_MatlBasedCmpstnComponent ChmlCompQtyAsText
ChmlCompQtySAPUnit
ChmlCompQtyISOUnit
ChmlCmplncInfoUUID I_MatlBasedCmpstnComponent ChmlCmplncInfoUUID
_ChmlCmplncInfo _ChmlCmplncInfo
_MultiComponentComposition _MultiComponentComposition
@AccessControl.authorizationCheck: #MANDATORY

@EndUserText.label: 'Multicomponent Product Component'

@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.usageType: { serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL }

@VDM.lifecycle.contract.type: #PUBLIC_REMOTE_API
@VDM.viewType: #CONSUMPTION
@VDM.usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE]
@OData.entityType.name: 'ProdCmplncMlticmpProdComp_Type'

define view entity A_ProdCmplncMlticmpProdComp
  as select from I_MatlBasedCmpstnComponent as Component

  association [0..1] to A_ProdCmplncMlticmpProdCmpstn as _MultiComponentComposition
    on  _MultiComponentComposition.ChmlCompositionUUID   = $projection.ChmlCompositionUUID
    and _MultiComponentComposition.ChmlCompositionStatus = 'RE'

{
  key Component.MatlBsdCompUUID                                                                 as ChmlCompUUID,

      Component.ChmlCompositionUUID,
      cast(_ChmlCmplncInfo.Specification as ehfnd_vdm_cci_internal_nr preserving type)          as ChemicalComplianceInfo,

      @Semantics.quantity.unitOfMeasure: 'ChmlCompQtySAPUnit'
      Component.ChmlCompQty,

      Component.ChmlCompQtyAsText,
      cast(ChmlCompQtyUnit as ehfnd_vdm_component_unit_sap preserving type)                     as ChmlCompQtySAPUnit,
      cast(_UnitOfMeasure.UnitOfMeasureISOCode as ehfnd_vdm_component_unit_iso preserving type) as ChmlCompQtyISOUnit,

      @Consumption.hidden: true
      Component.ChmlCmplncInfoUUID,

      /* Associations */
      @Consumption.hidden: true
      _ChmlCmplncInfo,

      _MultiComponentComposition
}