I_MatlBsdBeforeProdnCompTP is a Transactional CDS View that provides data about "After Production Cmpnt in Mat.Bsd Cmpstn" in SAP S/4HANA. It reads from 1 data source (I_MatlBasedCmpstnComponent) and exposes 26 fields. It has 1 association to related views.
@EndUserText.label: 'After Production Cmpnt in Mat.Bsd Cmpstn'
@AbapCatalog:
{
sqlViewName: 'IMCOMPONENTBPTP',
compiler.compareFilter: true
}@AccessControl:
{
authorizationCheck: #MANDATORY
}
--Client Handling of the view@ClientHandling.algorithm: #SESSION_VARIABLE@VDM.viewType: #TRANSACTIONAL@VDM.lifecycle.contract.type: #SAP_INTERNAL_API@ObjectModel:
{
--Transactional Annotations for the generated BO
modelCategory: #BUSINESS_OBJECT,
transactionalProcessingEnabled: true,
createEnabled: true,
updateEnabled: true,
deleteEnabled: true,
writeDraftPersistence: 'EHFNDW_MCMPS_BPC',
writeActivePersistence: 'EHFNDV_MCMPS_CMP',
semanticKey: [ 'MatlBsdCompUUID' ],
usageType:
{
dataClass: #TRANSACTIONAL,
sizeCategory: #XL,
serviceQuality: #C
}
}
defineview I_MatlBsdBeforeProdnCompTP
--Select data from basic view 'Material Based Component'
asselectfrom I_MatlBasedCmpstnComponent as MatlBsdComponentBeforeProdn
--Nodes/Detaildata;
association [1..1] to I_MatlBasedCompositionTP as _MatlBasedComposition on $projection.ChmlCompositionUUID = _MatlBasedComposition.ChmlCompositionUUID
{
--UUID of component
@ObjectModel.mandatory: truekey MatlBsdComponentBeforeProdn.MatlBsdCompUUID,
--Active UUID of material based component
MatlBsdComponentBeforeProdn.MatlBsdCompUUID as ActiveMatlBsdCompUUID,
--UUID of chemical compliance information (UP containing the CompChmlCmplncInfoUUID)
MatlBsdComponentBeforeProdn.ChmlCmplncInfoUUID,
--UUID of chemical composition
@ObjectModel.mandatory: true@ObjectModel.foreignKey.association: '_MatlBasedComposition'
MatlBsdComponentBeforeProdn.ChmlCompositionUUID,
--Date/Time of creation
@Semantics.systemDateTime.createdAt: true@ObjectModel.readOnly: true
MatlBsdComponentBeforeProdn.CreationUTCDateTime,
--Created by@Semantics.user.createdBy: true@ObjectModel.readOnly: true
MatlBsdComponentBeforeProdn.CreatedByUser,
--Date/Time of change
@Semantics.systemDateTime.lastChangedAt: true@ObjectModel.readOnly: true
MatlBsdComponentBeforeProdn.LastChangeUTCDateTime,
--Changed by@Semantics.user.lastChangedBy: true@ObjectModel.readOnly: true
MatlBsdComponentBeforeProdn.LastChangedByUser,
--Component that available before production
MatlBsdComponentBeforeProdn.MatlBsdCompProductionType,
--UUID of component contained in material based composition
@ObjectModel.mandatory: true
MatlBsdComponentBeforeProdn.CompChmlCmplncInfoUUID,
--Concentration of component
@Semantics.quantity.unitOfMeasure: 'ChmlCompQtyUnit'
MatlBsdComponentBeforeProdn.ChmlCompQty,
--Concentration as text (for correct formatting with decimals exactly as entered by user)
MatlBsdComponentBeforeProdn.ChmlCompQtyAsText,
--Unit of measurment of concentration
MatlBsdComponentBeforeProdn.ChmlCompQtyUnit,
--Operator for Lower limit of concentration
MatlBsdComponentBeforeProdn.ChmlCompOperatorLowerLimit,
--Lower limit of concentration
@Semantics.quantity.unitOfMeasure: 'ChmlCompQtyUnit'
MatlBsdComponentBeforeProdn.ChmlCompQtyLowerLimit,
--Lower limit as text (for correct formatting with decimals exactly as entered by user)
MatlBsdComponentBeforeProdn.ChmlCompQtyLowerLimitAsText,
--Operator for Upper limit of concentration
MatlBsdComponentBeforeProdn.ChmlCompOperatorUpperLimit,
--Upper limit of concentration
@Semantics.quantity.unitOfMeasure: 'ChmlCompQtyUnit'
MatlBsdComponentBeforeProdn.ChmlCompQtyUpperLimit,
--Upper limit as text (for correct formatting with decimals exactly as entered by user)
MatlBsdComponentBeforeProdn.ChmlCompQtyUpperLimitAsText,
--Is a component removed
MatlBsdComponentBeforeProdn.ChmlCompIsRemoved,
/* Associations */@ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
_MatlBasedComposition,
_ChmlCmplncInfo,
_CompChmlCmplncInfo,
_UnitOfMeasure,
_OperatorLowerLimit,
_OperatorUpperLimit
}
where
MatlBsdComponentBeforeProdn.MatlBsdCompProductionType = 'I'