R_MaintenanceTaskListBasicTP
TP View for Tasklist Header Details
R_MaintenanceTaskListBasicTP is a Transactional CDS View that provides data about "TP View for Tasklist Header Details" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceTaskList) and exposes 46 fields with key fields TaskListType, TaskListGroup, TaskListGroupCounter, TaskListVersionCounter. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceTaskList | I_MaintenanceTaskList | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | R_TaskListLongTextTP | _LongText | $projection.TaskListType = _LongText.TaskListType and $projection.TaskListGroup = _LongText.TaskListGroup and $projection.TaskListGroupCounter = _LongText.TaskListGroupCounter and $projection.TaskListVersionCounter = _LongText.TaskListVersionCounter |
| [0..*] | R_MaintTskListStrgyPackageTP | _MaintPackage | $projection.TaskListType = _MaintPackage.TaskListType and $projection.TaskListGroup = _MaintPackage.TaskListGroup and $projection.TaskListGroupCounter = _MaintPackage.TaskListGroupCounter |
| [0..*] | R_MaintTaskListOpBasicTP | _Operation | $projection.TaskListType = _Operation.TaskListType and $projection.TaskListGroup = _Operation.TaskListGroup and $projection.TaskListGroupCounter = _Operation.TaskListGroupCounter and $projection.ValidityEndDate >= _Operation.ValidityStartDate and $projection.ValidityStartDate <= _Operation.ValidityEndDate |
| [0..1] | I_Equipment | _Equipment | $projection.Equipment = _Equipment.Equipment |
| [0..1] | I_FunctionalLocation | _FunctionalLocation | $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation |
| [0..1] | I_EquipmentTimeSeg | _Equipmentts | $projection.Equipment = _Equipmentts.Equipment and _Equipmentts.ValidityEndDate = '99991231' and _Equipmentts.EquipUsagePeriodSequenceNumber = '001' -- HasEquipmentData = 'X' |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | TP View for Tasklist Header Details | view |
Fields (46)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TaskListType | TaskListType | ||
| KEY | TaskListGroup | TaskListGroup | ||
| KEY | TaskListGroupCounter | TaskListGroupCounter | ||
| KEY | TaskListVersionCounter | TaskListVersionCounter | ||
| MaintenancePlanningPlant | MaintenancePlanningPlant | |||
| TaskListStatus | TaskListStatus | |||
| TechnicalObject | TechnicalObject | |||
| TaskListObjectKey | TaskListObjectKey | |||
| TechObjIsEquipOrFuncnlLoc | TechObjIsEquipOrFuncnlLoc | |||
| TaskListUsage | TaskListUsage | |||
| TaskListDesc | TaskListDesc | |||
| WorkCenter | _WorkCenter | WorkCenter | ||
| WorkCenterTypeCode | WorkCenterTypeCode | |||
| WorkCenterInternalID | WorkCenterInternalID | |||
| MaintenanceStrategy | MaintenanceStrategy | |||
| OperationSystemCondition | OperationSystemCondition | |||
| Assembly | Assembly | |||
| ChangeNumber | ChangeNumber | |||
| SafetyRelevantObject | SafetyRelevantObject | |||
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndDate | ValidityEndDate | |||
| IsMarkedForDeletion | IsMarkedForDeletion | |||
| LastChangeDate | LastChangeDate | |||
| LastChangedByUser | LastChangedByUser | |||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| Plant | Plant | |||
| ResponsiblePlannerGroup | ResponsiblePlannerGroup | |||
| ReferenceElement | ReferenceElement | |||
| InspSubsetFieldCombination | InspSubsetFieldCombination | |||
| InspExternalNumberingOfValues | InspExternalNumberingOfValues | |||
| IsDeleted | IsDeleted | |||
| Equipment | Equipment | |||
| FunctionalLocation | FunctionalLocation | |||
| FunctionalLocationLabelName | FunctionalLocationLabelName | |||
| BillOfOperationsUsage | BillOfOperationsUsage | |||
| TaskListIsHierarchical | TaskListIsHierarchical | |||
| TaskListStatusDesc | ||||
| ControllingAreaendasControllingArea | ||||
| CostCenterendasCostCenter | ||||
| MaintenancePlantendasMaintenancePlant | ||||
| _TechnicalObject | _TechnicalObject | |||
| _Header | _Header | |||
| _Operation | _Operation | |||
| _LongText | _LongText | |||
| _MaintPackage | _MaintPackage |
//@AbapCatalog.sqlViewName: 'RMAINTTLBASICTP'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@Metadata.ignorePropagatedAnnotations: true
//@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: { viewType: #TRANSACTIONAL, lifecycle.contract.type: #SAP_INTERNAL_API }
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #MIXED}
@EndUserText.label: 'TP View for Tasklist Header Details'
define view entity R_MaintenanceTaskListBasicTP
as select from I_MaintenanceTaskList
association [0..1] to R_TaskListLongTextTP as _LongText on $projection.TaskListType = _LongText.TaskListType
and $projection.TaskListGroup = _LongText.TaskListGroup
and $projection.TaskListGroupCounter = _LongText.TaskListGroupCounter
and $projection.TaskListVersionCounter = _LongText.TaskListVersionCounter
association [0..*] to R_MaintTskListStrgyPackageTP as _MaintPackage on $projection.TaskListType = _MaintPackage.TaskListType
and $projection.TaskListGroup = _MaintPackage.TaskListGroup
and $projection.TaskListGroupCounter = _MaintPackage.TaskListGroupCounter
association [0..*] to R_MaintTaskListOpBasicTP as _Operation on $projection.TaskListType = _Operation.TaskListType
and $projection.TaskListGroup = _Operation.TaskListGroup
and $projection.TaskListGroupCounter = _Operation.TaskListGroupCounter
and $projection.ValidityEndDate >= _Operation.ValidityStartDate
and $projection.ValidityStartDate <= _Operation.ValidityEndDate
association to parent R_MaintenanceTaskListTP as _Header on $projection.TaskListGroup = _Header.TaskListGroup
and $projection.TaskListType = _Header.TaskListType
and $projection.TaskListGroupCounter = _Header.TaskListGroupCounter
association [0..1] to I_Equipment as _Equipment on $projection.Equipment = _Equipment.Equipment
association [0..1] to I_FunctionalLocation as _FunctionalLocation on $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
association [0..1] to I_EquipmentTimeSeg as _Equipmentts on $projection.Equipment = _Equipmentts.Equipment
and _Equipmentts.ValidityEndDate = '99991231'
and _Equipmentts.EquipUsagePeriodSequenceNumber = '001' -- HasEquipmentData = 'X'
{
key TaskListType,
key TaskListGroup,
key TaskListGroupCounter,
key TaskListVersionCounter,
MaintenancePlanningPlant,
TaskListStatus,
TechnicalObject,
TaskListObjectKey,
TechObjIsEquipOrFuncnlLoc,
TaskListUsage,
TaskListDesc,
_WorkCenter.WorkCenter as WorkCenter,
WorkCenterTypeCode,
WorkCenterInternalID,
MaintenanceStrategy,
OperationSystemCondition,
Assembly,
ChangeNumber,
SafetyRelevantObject,
ValidityStartDate,
ValidityEndDate,
IsMarkedForDeletion,
LastChangeDate,
LastChangedByUser,
CreatedByUser,
CreationDate,
Plant,
ResponsiblePlannerGroup,
ReferenceElement,
InspSubsetFieldCombination,
InspExternalNumberingOfValues,
IsDeleted,
Equipment,
FunctionalLocation,
FunctionalLocationLabelName,
BillOfOperationsUsage,
TaskListIsHierarchical,
_TaskListStatus._Text[1:Language = $session.system_language].BillOfOperationsStatusDesc as TaskListStatusDesc,
case TechObjIsEquipOrFuncnlLoc
when 'EAMS_EQUI' then _Equipment.AuthorizationGroup
else _FunctionalLocation.AuthorizationGroup
end as AuthorizationGroup,
case TechObjIsEquipOrFuncnlLoc
when 'EAMS_EQUI' then _Equipmentts._LocationAccountAssignment.ControllingArea
else _FunctionalLocation._LocationAccountAssignment.ControllingArea
end as ControllingArea,
case TechObjIsEquipOrFuncnlLoc
when 'EAMS_EQUI' then _Equipmentts.MaintenancePlannerGroup
else _FunctionalLocation.MaintenancePlannerGroup
end as MaintenancePlannerGroup,
case TechObjIsEquipOrFuncnlLoc
when 'EAMS_EQUI' then _Equipmentts._LocationAccountAssignment.CostCenter
else _FunctionalLocation._LocationAccountAssignment.CostCenter
end as CostCenter,
case TechObjIsEquipOrFuncnlLoc
when 'EAMS_EQUI' then _Equipmentts._LocationAccountAssignment.MaintenancePlant
else _FunctionalLocation._LocationAccountAssignment.MaintenancePlant
end as MaintenancePlant,
/* Associations */
_TechnicalObject,
_Header,
_Operation,
_LongText,
_MaintPackage
}
where
IsDeleted <> 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLOFOPERATIONSSTATUS",
"I_BILLOFOPERATIONSSTATUSTEXT",
"I_EQUIPMENT",
"I_EQUIPMENTTIMESEG",
"I_FUNCTIONALLOCATION",
"I_LOCATIONACCOUNTASSIGNMENT",
"I_MAINTENANCETASKLIST",
"I_WORKCENTER"
],
"ASSOCIATED":
[
"I_TECHNICALOBJECT",
"R_MAINTENANCETASKLISTTP",
"R_MAINTTASKLISTOPBASICTP",
"R_MAINTTSKLISTSTRGYPACKAGETP",
"R_TASKLISTLONGTEXTTP"
],
"BASE":
[
"I_MAINTENANCETASKLIST"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA