@AbapCatalog.sqlViewName: 'IASSETASSGMTTP'
@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Asset Assignment'
@VDM.viewType: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: false
@ObjectModel: {
writeActivePersistence: 'FAAV_MD_TDD',
writeDraftPersistence: 'FAAD_MD_TDD',
semanticKey: ['ValidityEndDate','CompanyCode','MasterFixedAsset','FixedAsset'],
createEnabled: true,
updateEnabled: true,
deleteEnabled: true,
usageType: {
serviceQuality: #B,
sizeCategory: #XXL,
dataClass: #TRANSACTIONAL
}
}
define view I_AssetAssignmentTP
as select from P_AssetAssignment
association [1..1] to I_AssetTP as _AssetTP on $projection.CompanyCode = _AssetTP.CompanyCode
and $projection.MasterFixedAsset = _AssetTP.MasterFixedAsset
and $projection.FixedAsset = _AssetTP.FixedAsset
association [1..1] to E_FixedAssetAssgmt as _Extension on $projection.CompanyCode = _Extension.CompanyCode
and $projection.MasterFixedAsset = _Extension.MasterFixedAsset
and $projection.FixedAsset = _Extension.FixedAsset
and $projection.ValidityEndDate = _Extension.ValidityEndDate
{
key P_AssetAssignment.CompanyCode as CompanyCode,
key P_AssetAssignment.MasterFixedAsset,
key P_AssetAssignment.FixedAsset,
@Semantics.businessDate.to: null
@ObjectModel:{ readOnly:true}
key P_AssetAssignment.ValidityEndDate,
@ObjectModel:{ mandatory:true}
P_AssetAssignment.ValidityStartDate,
@Semantics.businessDate.to: true
@ObjectModel.editableFieldFor: 'ValidityEndDate'
P_AssetAssignment.ValidityEndDate as ValidityEndDateForEdit,
P_AssetAssignment.ControllingArea,
P_AssetAssignment.FinancialManagementArea,
//@ObjectModel.text.element: ['BusinessAreaName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.BusinessArea,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//_BusinessArea._Text[1:Language=$session.system_language].BusinessAreaName,
//@ObjectModel.readOnly:true
//P_AssetAssignment.BusinessAreaName,
//@ObjectModel.text.element: ['CostCenterName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.CostCenter,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//_CostCenter._Text[1:Language=$session.system_language].CostCenterName,
@ObjectModel.readOnly:true
P_AssetAssignment.CostCenterName,
//@ObjectModel.text.element: ['CostCtrActivityTypeName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.CostCtrActivityType,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//_CostCenterActivityType._Text[1:Language=$session.system_language].CostCtrActivityTypeName,
@ObjectModel.readOnly:true
P_AssetAssignment.CostCtrActivityTypeName,
//@ObjectModel.text.element: ['InternalOrderDescription']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.InternalOrder,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//@ObjectModel.readOnly:true
//P_AssetAssignment.InternalOrderDescription,
//@ObjectModel:0000000000000{ mandatory:'EXTERNAL_CALCULATION', readOnly:'true', enabled:'EXTERNAL_CALCULATION'}
//_InternalOrder.InternalOrderDescription,
//InternalOrderDescription,
//@ObjectModel.text.element: ['FundName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.Fund,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//P_AssetAssignment._Fund._Text[1:Language=$session.system_language].FundName,
//@ObjectModel.readOnly:true
//P_AssetAssignment.FundName,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.GrantID,
//@ObjectModel.text.element: ['FunctionalAreaName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.FunctionalArea,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//_FunctionalArea._Text[1:Language=$session.system_language].FunctionalAreaName,
//@ObjectModel.readOnly:true
//P_AssetAssignment.FunctionalAreaName,
//@ObjectModel.text.element: ['FundsCenterName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.FundsCenter,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//P_AssetAssignment._FundsCenter._Text[1:Language=$session.system_language].FundsCenterName,
@ObjectModel.readOnly:true
P_AssetAssignment.FundsCenterName,
@ObjectModel.text.element: ['WBSElementDescription']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.WBSElementInternalID,
@ObjectModel.text.element: ['WBSElementDescription']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.WBSElementExternalID,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
@ObjectModel.readOnly:true
P_AssetAssignment.WBSElementDescription,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.TaxJurisdiction,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.RealEstateObject,
//@ObjectModel.text.element: ['SegmentName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.Segment,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//P_AssetAssignment._Segment._Text[1:Language=$session.system_language].SegmentName,
//@ObjectModel.readOnly:true
//P_AssetAssignment.SegmentName,
//@ObjectModel.text.element: ['ProfitCenterName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.ProfitCenter,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//P_AssetAssignment._ProfitCenter._Text[1:Language=$session.system_language].ProfitCenterName,
@ObjectModel.readOnly:true
P_AssetAssignment.ProfitCenterName,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.BudgetPeriod,
//@ObjectModel.text.element: ['ResponsibleCostCenterName']
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.ResponsibleCostCenter,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//P_AssetAssignment._ResponsibleCostCenter._Text[1:Language=$session.system_language].CostCenterName as ResponsibleCostCenterName,
@ObjectModel.readOnly:true
P_AssetAssignment.ResponsibleCostCenterName,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.Room,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.Plant,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//@ObjectModel.readOnly:true
//P_AssetAssignment.PlantName,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.AssetLocation,
//@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
//@ObjectModel.readOnly:true
//P_AssetAssignment.AssetLocationName,
// AssetLocationName,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.VehicleLicensePlateNumber,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.PersonnelNumber,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
P_AssetAssignment.BusinessPlace,
//Helping fields
P_AssetAssignment.LongText,
//auth
@Consumption.hidden: true
P_AssetAssignment.AssetAuthorizationContext,
//Technical fields for document
@ObjectModel:{readOnly:'true'}
P_AssetAssignment.ReferenceDocumentType,
@ObjectModel:{readOnly:'true'}
P_AssetAssignment.LogicalSystem,
@ObjectModel:{readOnly:'true'}
P_AssetAssignment.ReferenceDocumentContext,
@ObjectModel:{readOnly:'true'}
P_AssetAssignment.ReferenceDocument,
// Associations
@ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
_AssetTP,
_MasterFixedAsset,
@ObjectModel.association.type:null
_FixedAsset, // For inheritence use in access control
_CompanyCode,
_ControllingArea,
_Fund,
_FundsCenter,
_CostCenter,
_ResponsibleCostCenter,
_BusinessArea,
_Segment,
_InternalOrder,
_ProfitCenter,
_FunctionalArea,
_CostCenterActivityType,
_WBSElementBasicData,
_Plant,
_AssetLocation,
_BudgetPeriod,
_Employment,
_Grant
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_ASSETASSIGNMENT"
],
"ASSOCIATED":
[
"E_FIXEDASSETASSGMT",
"I_ASSETTP",
"I_BUDGETPERIOD",
"I_BUSINESSAREA",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COSTCENTER",
"I_COSTCENTERACTIVITYTYPE",
"I_EMPLOYMENT",
"I_FIXEDASSET",
"I_FUNCTIONALAREA",
"I_FUND",
"I_FUNDSCENTER",
"I_GRANT",
"I_INTERNALORDER",
"I_LOCATION",
"I_MASTERFIXEDASSET",
"I_PLANT",
"I_PROFITCENTER",
"I_SEGMENT",
"I_WBSELEMENTBASICDATA"
],
"BASE":
[
"P_ASSETASSIGNMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/