@VDM: {
viewType: #CONSUMPTION,
lifecycle.contract.type: #PUBLIC_REMOTE_API,
usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE]
}
@ObjectModel: {
representativeKey: 'SupplyProtectionUUID',
usageType: {
serviceQuality: #C,
sizeCategory: #L,
dataClass: #MIXED
}
}
@AbapCatalog.extensibility: {
extensible: true ,
elementSuffix: 'ASU',
allowNewDatasources: false ,
dataSources: ['SupplyProtection'],
quota: {
maximumFields: 204,
maximumBytes: 2040
}
}
@AccessControl.authorizationCheck: #MANDATORY
@OData.entityType.name : 'A_SupplyProtection_Type'
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label : 'Supply Availability Protection Plan'
define root view entity A_SupplyProtection_2
provider contract transactional_query
as projection on I_SupplyProtectionTP as SupplyProtection
{
key SupplyProtectionUUID,
SupplyProtectionName,
Material,
_MaterialText.MaterialName : localized,
Plant,
_Plant.PlantName,
SupProtLifecycleStatus,
_SupProtLifecycleStatusText.SupProtLifecycleStatusText : localized,
SupProtPlanningPeriodType,
_SupProtPlanningPeriodTypeT.SupProtPlanningPeriodTypeText : localized,
SupProtPlanningPeriodStartDate,
SupProtPlanningPeriodEndDate,
SupProtIsPlanningContextSlsOrd,
SupProtIsPlanningContextSTO,
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy : 'ABAP:CL_ATP_SUP_SADL_EXIT_CHARNAME'
SupProtCoreCharc01Name,
CoreCharc01CtlgPathIntID,
SupProtCoreCharc01Text,
SupProtCoreCharc01ValueID,
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy : 'ABAP:CL_ATP_SUP_SADL_EXIT_CHARNAME'
SupProtCoreCharc02Name,
CoreCharc02CtlgPathIntID,
SupProtCoreCharc02Text,
SupProtCoreCharc02ValueID,
@Semantics.unitOfMeasure: true
UnitOfMeasure,
@Semantics.quantity.unitOfMeasure : 'UnitOfMeasure'
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy : 'ABAP:CL_ATP_SUP_SADL_EXIT_QUANTITY'
cast (SupProtProtectedQuantity as sup_protected_quantity preserving type) as SupProtProtectedQuantity,
@Semantics.quantity.unitOfMeasure : 'UnitOfMeasure'
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy : 'ABAP:CL_ATP_SUP_SADL_EXIT_QUANTITY'
cast (SupProtConsumedQuantity as sup_consumed_quantity preserving type) as SupProtConsumedQuantity,
@Semantics.quantity.unitOfMeasure : 'UnitOfMeasure'
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy : 'ABAP:CL_ATP_SUP_SADL_EXIT_QUANTITY'
cast (SupProtRemainingProtectedQty as sup_remaining_quantity preserving type ) as SupProtRemainingProtectedQty,
CreatedByUser,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime,
CharcValAuthznGroup, // required for authorization check
SupProtAutomActivationIsActive,
SupProtAutomActivationDate,
SupProtActivationDate,
SupProtCnsmpnDateTimeType,
_SupProtCnsmpnDateTimeTypeT.SupProtCnsmpnDateTimeTypeText : localized,
SupProtSelfRestrictionType,
_SupProtSelfRestrictionTypeT.SupProtSelfRestrictionTypeText : localized,
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy : 'ABAP:CL_ATP_SUP_SADL_EXIT_PLNG_CONS'
SupProtPlngContextIsConsistent,
StorageLocation,
_StorageLocation.StorageLocationName,
SupProtPlanningLevel,
_SupProtPlanningLevelText.SupProtPlanningLevelText : localized,
/* Associations */
_SupplyProtectionGroupTP : redirected to composition child A_SupplyProtectionGroup_2,
_SupProtCharacteristicTP : redirected to composition child A_SupProtCharacteristic_2,
_SupProtFlexibleTimeBucketTP : redirected to composition child A_SupProtFlexibleTimeBucket_2
}
where
SupplyProtectionIsBlocked = ''
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_MATERIALTEXT",
"I_PLANT",
"I_STORAGELOCATION",
"I_SUPPLYPROTECTIONTP",
"I_SUPPROTCNSMPNDATETIMETYPET",
"I_SUPPROTLIFECYCLESTATUSTEXT",
"I_SUPPROTPLANNINGLEVELTEXT",
"I_SUPPROTPLANNINGPERIODTYPET",
"I_SUPPROTSELFRESTRICTIONTYPET"
],
"ASSOCIATED":
[
"A_SUPPLYPROTECTIONGROUP_2",
"A_SUPPROTCHARACTERISTIC_2",
"A_SUPPROTFLEXIBLETIMEBUCKET_2",
"I_SUPPLYPROTECTIONGROUPTP",
"I_SUPPROTCHARACTERISTICTP",
"I_SUPPROTFLEXIBLETIMEBUCKETTP"
],
"BASE":
[
"I_SUPPLYPROTECTIONTP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
A_SupplyProtection_2 view_entity