@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":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
P_MatlBasedCmpstnCompCnvrtd view