@AbapCatalog.sqlViewName: 'IGASSETASSGMTTP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'CSMD Asset Assignments Data(TDD)'
@VDM.viewType: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: false
@ObjectModel: {
writeActivePersistence: 'GLO_FAAV_MD_TDD',
writeDraftPersistence: 'GLO_FAAD_MD_TDD',
semanticKey: ['ValidityEndDateForEdit','CompanyCode','MasterFixedAsset','FixedAsset'],
createEnabled: true,
updateEnabled: true,
deleteEnabled: true,
// draftEnabled: true,
usageType: {
serviceQuality: #B,
sizeCategory: #XL,
dataClass: #TRANSACTIONAL
}
}
define view I_GlobAssetAssignmentTP
as select from I_GlobAssetAssignment
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [1..1] to I_AssetTP as _AssetTP on $projection.CompanyCode = _AssetTP.CompanyCode
and $projection.MasterFixedAsset = _AssetTP.MasterFixedAsset
and $projection.FixedAsset = _AssetTP.FixedAsset
{
key CompanyCode,
key MasterFixedAsset,
key FixedAsset,
@Semantics.businessDate.to: null
key ValidityEndDate,
@ObjectModel:{ mandatory:true}
ValidityStartDate,
@Semantics.businessDate.to: true
ValidityEndDate as ValidityEndDateForEdit,
@ObjectModel.foreignKey.association: null
Country,
//RU General Data
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_AssetShutdownReason', element: 'RU_AssetShutdownReason' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetShutdownReason,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetShutdownDocument,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetIsPledged,
@Semantics.amount.currencyCode: 'Currency'
// @DefaultAggregation: #NONE
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetPledgeAmountInLocCrcy,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetPledgee,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetPledgeDocumentNumber,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetInventoryCardNumber,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_AssetOKOF', element: 'RU_AssetOKOF' },
additionalBinding : [{ localElement : 'Country', element : 'Country', usage: #FILTER }]
} ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetOKOF,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_AssetDepreciationGroup', element: 'RU_AssetDepreciationGroup' },
additionalBinding: [{ localElement : 'RU_AssetOKOF', element : 'RU_AssetOKOF' }]
} ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetDepreciationGroup,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_TaxOfficeCode', element: 'RU_TaxOfficeCode' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetTaxOfficeCode,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetSZPKIsApplied,
//RU Property Tax
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_AssetPropertyType', element: 'RU_AssetPropertyType' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetPropertyType,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_TerritoryClassfctnOKTMO', element: 'RU_TerritoryClassfctnOKTMO' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PropertyTaxOKTMO,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_PropertyTaxSpecialCat', element: 'RU_PropertyTaxSpecialCategory' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PropertyTaxSpecialCategory,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_PropertyTaxRateReducnVH', element: 'RU_PropertyTaxConcession' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PropertyTaxRateReduction,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_PropertyTaxAmtReductionVH', element: 'RU_PropertyTaxConcession' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PropertyTaxAmtReduction,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_PropertyTaxExemptionVH', element: 'RU_PropertyTaxConcession' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PropertyTaxExemption,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PropertyTaxObjectNumber,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_PropertyTaxObjNumberType', element: 'RU_PropertyTaxObjectNumberType' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PropertyTaxObjectNumberType,
@Semantics.amount.currencyCode: 'Currency'
// @DefaultAggregation: #NONE
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_PrptyCadastrAmtInLoclCrcy,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetCommonPropertyShare,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_RoomFloorAreaInSquareMeter,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_RoomBuildFloorAreaInSqMtr,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_AssetIsRealEstate,
//RU Transport Tax
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_UnitOfMeasure', element: 'UnitOfMeasure' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_TransportTaxPowerUnit,
@Semantics.quantity.unitOfMeasure: 'RU_TransportTaxPowerUnit'
// @DefaultAggregation:#NONE
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_TranspTaxBaseQtyInBaseUnit,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_TransportTaxExemptionVH', element: 'RU_TransportTaxConcession' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_TransportTaxExemption,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_TransportTaxReductionVH', element: 'RU_TransportTaxConcession' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_TransportTaxReduction,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_VehicleStolenDate,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_VehicleReturnDate,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_VehicleRegistrationDate,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_VehicleCancellationDate,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_TerritoryClassfctnOKTMO', element: 'RU_TerritoryClassfctnOKTMO' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_TransportTaxOKTMO,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_VehicleLicensePlateNumber,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_TranspTxAmtReductionVH', element: 'RU_TransportTaxConcession' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_TranspTxAmtReduction,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_RU_VehTranspTxPriceCategory', element: 'RU_VehTranspTxPriceCategory' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_VehTranspTxPriceCategory,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_VehicleIsRegisteredInPlaton,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
RU_TransptCommonOwnershipShare,
// CN CADE
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_CN_CADEAssetUsageVH', element: 'CN_CADEFixedAssetUsage' } } ]
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
CN_CADEFixedAssetUsage,
//PL SAF-T
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
PL_CustInvcAccountingDocument,
@ObjectModel:{ mandatory:'EXTERNAL_CALCULATION', readOnly:'EXTERNAL_CALCULATION', enabled:'EXTERNAL_CALCULATION'}
PL_CustomerInvoiceFiscalYear,
Currency,
// Associations
@ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
_AssetTP,
_CompanyCode
}