P_EquipmentSearch
P_EquipmentSearch is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_Equipment) and exposes 65 fields with key field Equipment. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Equipment | I_Equipment | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Language | abap.lang | |
| P_KeyDate | sydate |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TextObjectPlainLongText | _LongText | $projection.Equipment = _LongText.TextObjectKey and _LongText.TextObjectCategory = 'EQUI' and _LongText.TextObjectType = 'LTXT' |
| [0..*] | I_TextObjectPlainLongText | _LongTextIntNote | $projection.Equipment = _LongTextIntNote.TextObjectKey and _LongTextIntNote.TextObjectCategory = 'EQUI' and _LongTextIntNote.TextObjectType = 'INTV' |
| [0..*] | I_ClfnObjectCharcValForKeyDate | _CharValueAssignment | $projection.Equipment = _CharValueAssignment.ClfnObjectID and _CharValueAssignment.ClfnObjectTable = 'EQUI' |
| [0..*] | I_ClfnObjectClassForKeyDate | _ClassAssignment | $projection.Equipment = _ClassAssignment.ClfnObjectID and _ClassAssignment.ClfnObjectTable = 'EQUI' |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEQUISEARCH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | Equipment | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Equipment | Equipment | ||
| EquipmentCategory | EquipmentCategory | |||
| TechnicalObjectType | TechnicalObjectType | |||
| Plant | Plant | |||
| Division | Division | |||
| StorageLocation | StorageLocation | |||
| CreatedByUser | CreatedByUser | |||
| LastChangedByUser | LastChangedByUser | |||
| CreationDate | CreationDate | |||
| LastChangeDate | LastChangeDate | |||
| AssetManufacturerName | AssetManufacturerName | |||
| ManufacturerPartTypeName | ManufacturerPartTypeName | |||
| ManufacturerCountry | ManufacturerCountry | |||
| ConstructionYear | ConstructionYear | |||
| ConstructionMonth | ConstructionMonth | |||
| AcquisitionDate | AcquisitionDate | |||
| Currency | Currency | |||
| AcquisitionValue | AcquisitionValue | |||
| MaintObjectInternalID | MaintObjectInternalID | |||
| SerialNumber | ||||
| EquipUsagePeriodSequenceNumber | EquipUsagePeriodSequenceNumber | |||
| Material | Material | |||
| Customer | Customer | |||
| AuthorizationGroup | AuthorizationGroup | |||
| ManufacturerSerialNumber | ManufacturerSerialNumber | |||
| UniqueItemIdentifier | UniqueItemIdentifier | |||
| UniqueItemIdentifierStrucType | UniqueItemIdentifierStrucType | |||
| UniqueItemIdentifierRespPlant | UniqueItemIdentifierRespPlant | |||
| AssetSynchronizationRule | AssetSynchronizationRule | |||
| InventoryNumber | InventoryNumber | |||
| GrossWeight | GrossWeight | |||
| GrossWeightUnit | GrossWeightUnit | |||
| SizeOrDimensionText | SizeOrDimensionText | |||
| Batch | Batch | |||
| OperationStartDate | OperationStartDate | |||
| Supplier | Supplier | |||
| HasEquipmentData | HasEquipmentData | |||
| MasterWarranty | MasterWarranty | |||
| LastChangeDateTime | LastChangeDateTime | |||
| _Batch | _Batch | |||
| _CreatedByUser | _CreatedByUser | |||
| _Currency | _Currency | |||
| _CurrentTimeSegment | _CurrentTimeSegment | |||
| _Customer | _Customer | |||
| _Division | _Division | |||
| _EquipmentCategory | _EquipmentCategory | |||
| _EquipmentText | _EquipmentText | |||
| _EquipmentTimeSeg | _EquipmentTimeSeg | |||
| _GrossWeightUnit | _GrossWeightUnit | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _LinearAssetManagementData | _LinearAssetManagementData | |||
| _ManufacturerCountry | _ManufacturerCountry | |||
| _MasterWarranty | _MasterWarranty | |||
| _MasterWrntyObjectAssgmt | _MasterWrntyObjectAssgmt | |||
| _Plant | _Plant | |||
| _PlantMaintenancePartner | _PlantMaintenancePartner | |||
| _SerialNumberStockSegment | _SerialNumberStockSegment | |||
| _Status | _Status | |||
| _StorageLocation | _StorageLocation | |||
| _Supplier | _Supplier | |||
| _TechnicalObjectType | _TechnicalObjectType | |||
| _LongText | _LongText | |||
| _LongTextIntNote | _LongTextIntNote | |||
| _CharValueAssignment | _CharValueAssignment | |||
| _ClassAssignment | _ClassAssignment |
//Equipment Anchor View for CDS Search Model
@AbapCatalog.sqlViewName: 'PEQUISEARCH'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_LongText', '_LongTextIntNote']
@VDM.private: true
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'Equipment'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory : #L
@ObjectModel.usageType.dataClass: #MASTER
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_EquipmentSearch
with parameters
@Consumption.hidden: true
@Environment.systemField: #SYSTEM_LANGUAGE
P_Language : abap.lang,
@Consumption.hidden: true
@Environment.systemField: #SYSTEM_DATE
P_KeyDate : sydate
as select from I_Equipment
association [0..*] to I_TextObjectPlainLongText as _LongText on $projection.Equipment = _LongText.TextObjectKey
and _LongText.TextObjectCategory = 'EQUI'
and _LongText.TextObjectType = 'LTXT'
association [0..*] to I_TextObjectPlainLongText as _LongTextIntNote on $projection.Equipment = _LongTextIntNote.TextObjectKey
and _LongTextIntNote.TextObjectCategory = 'EQUI'
and _LongTextIntNote.TextObjectType = 'INTV'
association [0..*] to I_ClfnObjectCharcValForKeyDate as _CharValueAssignment on $projection.Equipment = _CharValueAssignment.ClfnObjectID
and _CharValueAssignment.ClfnObjectTable = 'EQUI'
association [0..*] to I_ClfnObjectClassForKeyDate as _ClassAssignment on $projection.Equipment = _ClassAssignment.ClfnObjectID
and _ClassAssignment.ClfnObjectTable = 'EQUI'
{
key Equipment,
EquipmentCategory,
TechnicalObjectType,
Plant,
Division,
StorageLocation,
CreatedByUser,
LastChangedByUser,
CreationDate,
LastChangeDate,
AssetManufacturerName,
ManufacturerPartTypeName,
ManufacturerCountry,
ConstructionYear,
ConstructionMonth,
AcquisitionDate,
Currency,
AcquisitionValue,
MaintObjectInternalID,
cast( SerialNumber as equnr) as SerialNumber,
EquipUsagePeriodSequenceNumber,
Material,
Customer,
AuthorizationGroup,
ManufacturerSerialNumber,
UniqueItemIdentifier,
UniqueItemIdentifierStrucType,
UniqueItemIdentifierRespPlant,
AssetSynchronizationRule,
InventoryNumber,
GrossWeight,
GrossWeightUnit,
SizeOrDimensionText,
Batch,
OperationStartDate,
Supplier,
HasEquipmentData,
MasterWarranty,
LastChangeDateTime,
/* Associations */
_Batch,
_CreatedByUser,
_Currency,
_CurrentTimeSegment,
_Customer,
_Division,
_EquipmentCategory,
_EquipmentText,
_EquipmentTimeSeg,
_GrossWeightUnit,
_LastChangedByUser,
_LinearAssetManagementData,
_ManufacturerCountry,
_MasterWarranty,
_MasterWrntyObjectAssgmt,
_Plant,
_PlantMaintenancePartner,
_SerialNumberStockSegment,
_Status,
_StorageLocation,
_Supplier,
_TechnicalObjectType,
_LongText,
_LongTextIntNote,
_CharValueAssignment,
_ClassAssignment
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EQUIPMENT"
],
"ASSOCIATED":
[
"I_BATCH",
"I_CLFNOBJECTCHARCVALFORKEYDATE",
"I_CLFNOBJECTCLASSFORKEYDATE",
"I_COUNTRY",
"I_CURRENCY",
"I_CUSTOMER",
"I_DIVISION",
"I_EQUIPMENTCATEGORY",
"I_EQUIPMENTTEXT",
"I_EQUIPMENTTIMESEG",
"I_LINEARASSETMANAGEMENTDATA",
"I_MASTERWARRANTY",
"I_MASTERWRNTYOBJECTASSGMT",
"I_PLANT",
"I_PLANTMAINTENANCEPARTNER",
"I_SERIALNUMBERSTOCKSEGMENT",
"I_STATUSOBJECTSTATUS",
"I_STORAGELOCATION",
"I_SUPPLIER",
"I_TECHNICALOBJECTTYPE",
"I_TEXTOBJECTPLAINLONGTEXT",
"I_UNITOFMEASURE",
"I_USER"
],
"BASE":
[
"I_EQUIPMENT"
],
"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