@EndUserText.label: 'API WBS Element Details(OBSOLETE)'
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'AWBSELEMENT'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory : #L
@ObjectModel.usageType.dataClass: #MIXED
@Metadata.ignorePropagatedAnnotations:true
@VDM.lifecycle.contract.type: #PUBLIC_REMOTE_API
//@VDM.lifecycle.status: #DEPRECATED
//@VDM.lifecycle.successor: 'A_FinWBSElement'
define view A_WBSElement
as select from I_WBSElement
// association [0..1] to I_ProjectResponsiblePerson as _ResponsiblePerson on $projection.ResponsiblePerson = _ResponsiblePerson.ResponsiblePerson
// association [0..1] to I_ProjectApplicant as _ProjectApplicant on $projection.ApplicantCode = _ProjectApplicant.ApplicantCode
// association [1..1] to A_Project as _Project on $projection.Project = _Project.Project
association [1..1] to E_WBSElement as _Extension on $projection.WBSElement = _Extension.WBSElement
{
//Entity description fields
key cast ( WBSElementInternalID as ps_posnr1 ) as WBSElementInternalID,
WBSElement,
WBSDescription,
//Organisational fields
CompanyCode,
ControllingArea,
FunctionalArea,
ProfitCenter,
//Dimensions
cast ( ProjectInternalID as abap.numc( 8 ) ) as ProjectInternalID,
Project,
WBSElementIsBillingElement,
WBSElementObject
// key WBSElement,
// WBSElementWithCodingMask, //Not finalized field - please donot use
// cast ( WBSElementInternalID as ps_posnr1 ) as WBSElementInternalID,
// cast ( ProjectInternalID as abap.numc( 8 ) ) as ProjectInternalID,
// // cast ( ProjectInternalID as ps_psphi1 preserving type) as ProjectInternalID,
// Project,
// WBSDescription,
// WBSElementObject,
// CreatedByUser,
// CreationDate,
// LastChangedByUser,
// LastChangeDate,
// // ResponsiblePerson,
// // ResponsiblePersonName,
// // ApplicantCode,
// // ApplicantName,
// CompanyCode,
// BusinessArea,
// ControllingArea,
// ProfitCenter,
// ProjectType,
// WBSElementIsPlanningElement,
// WBSIsAccountAssignmentElement,
// WBSElementIsBillingElement,
// CostingSheet,
// RequestingCostCenter,
// ResponsibleCostCenter,
// FactoryCalendar,
// PriorityCode,
// Currency,
// Plant,
// FreeDefinedTableFieldSemantic,
// WBSIsStatisticalWBSElement,
// TaxJurisdiction,
// WBSIsMarkedForIntegratedPlng,
// FunctionalArea,
// Location,
// Equipment,
// FunctionalLocation,
// ProjectObjectChangeNumber,
// ProjectObjectReferenceElement,
// ProjInterestCalcProfile,
// InvestmentProfile,
// BasicStartDate,
// ForecastedStartDate,
//
// ActualStartDate,
//
// BasicEndDate,
// ForecastedEndDate,
// ActualEndDate,
//
// @Semantics.unitOfMeasure: true
// ActualDurationUnit,
// @Semantics.unitOfMeasure: true
// ForecastedDurationUnit,
// @Semantics.unitOfMeasure: true
// BasicDurationUnit,
// @Semantics.quantity.unitOfMeasure: 'BasicDurationUnit'
// BasicDuration,
// @Semantics.quantity.unitOfMeasure: 'ForecastedDurationUnit'
// ForecastedDuration,
// @Semantics.quantity.unitOfMeasure: 'ActualDurationUnit'
// ActualDuration,
// SchedldBasicEarliestStartDate,
// ScheduledBasicLatestEndDate,
// SchedldFcstdEarliestStartDate,
// LatestSchedldFcstdEndDate,
// TentativeActualStartDate,
// TentativeActualEndDate,
// SchedldBasicLatestStartDate,
// SchedldBasicEarliestEndDate,
// LatestSchedldFcstdStartDate,
// SchedldFcstdEarliestEndDate,
// @EndUserText.label: 'Level' //annotation used since cast to abap.char(3) has no label and UI is showing field name as it is
// WBSElementHierarchyLevel,
// OverheadCode,
// ResultAnalysisInternalID,
// ProgressAnlysAggregationWeight,
//
// //Below fields not in excel for fields of WBS overview app
// WBSElementShortID,
// ReqgCostCenterControllingArea,
// RespCostCenterControllingArea,
// Language,
// CostCenter,
// CostObject,
// WBSElementIsUsedInProjSmmry,
// IsMarkedForDeletion,
// InventorySpecialStockValnType,
// BillingPlan,
// WBSElementIsGroupingWBSElement,
// CostingVariant,
// JointVenture,
// JointVentureRecoveryCode,
// JointVentureEquityType,
// JointVentureObjectType,
// JointVentureClass,
// JointVentureSubClass,
// WBSElementHasActivities,
// WBSHasFcstdDateFromActivity,
// WBSHasFcstdDateSetManually,
// WBSHasBasicDateManuallySet,
// WBSHasActualDateSetManually,
// WBSElmntHasActualDateFromActy,
// ControllingObjectClass,
// //Above fields not in excel for fields of WBS overview app
//
// // Following fields deprecated as per excel, but used in other views
// FreeDefinedAttribute01,
// FreeDefinedAttribute02,
// FreeDefinedAttribute03,
// FreeDefinedAttribute04,
// FreeDefinedQuantity1,
// FreeDefinedQuantity1Unit,
// FreeDefinedQuantity2,
// FreeDefinedQuantity2Unit,
// FreeDefinedAmount1,
// FreeDefinedAmount1Currency,
// FreeDefinedAmount2,
// FreeDefinedAmount2Currency,
// FreeDefinedDate1,
// FreeDefinedDate2,
// FreeDefinedIndicator1,
// FreeDefinedIndicator2
// // Above fields deprecated as per excel
// // _ResponsiblePerson,
// // _ProjectApplicant,
// // _Project
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WBSELEMENT"
],
"ASSOCIATED":
[
"E_WBSELEMENT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/