R_REUseEnableLdngObjAssgmtTP
IntegrationObject Object Assignment TP
R_REUseEnableLdngObjAssgmtTP is a Transactional CDS View that provides data about "IntegrationObject Object Assignment TP" in SAP S/4HANA. It reads from 1 data source (I_REIntegObjectObjectAssgmt) and exposes 21 fields with key fields InternalRealEstateNumber, REObjectAssignmentType, REStatusObjectTarget, ValidityStartEndDateValue. It has 7 associations to related views. Part of development package RAP_RE_IP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_REIntegObjectObjectAssgmt | _REObjectAssgmt | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_REEntryValidity | _REEntryValidity | $projection.REEntryValidity = _REEntryValidity.REEntryValidity |
| [1..1] | I_REObjectAssgmtHierAddl | _REObjectAssgmtHierAddl | $projection.REObjectAssignmentType = _REObjectAssgmtHierAddl.REObjectAssignmentType and $projection.REStatusObjectTarget = _REObjectAssgmtHierAddl.REStatusObjectTarget and $projection.REStatusObjectSource = _REObjectAssgmtHierAddl.REStatusObjectSource and $projection.InternalRealEstateNumber = _REObjectAssgmtHierAddl.InternalRealEstateNumber and $projection.ValidityStartEndDateValue = _REObjectAssgmtHierAddl.ValidityStartEndDateValue |
| [1..*] | I_REObjectTypeText | _REObjectTypeText | _REObjectTypeText.Language = $session.system_language and ( _REObjectTypeText.RealEstateObjectType = 'KS' or _REObjectTypeText.RealEstateObjectType = 'OR' or _REObjectTypeText.RealEstateObjectType = 'PR' or _REObjectTypeText.RealEstateObjectType = 'IW' or _REObjectTypeText.RealEstateObjectType = 'IB' or _REObjectTypeText.RealEstateObjectType = 'IG' or _REObjectTypeText.RealEstateObjectType = 'IM' ) |
| [0..1] | I_CostCenter | _CostCenter | $projection.REStatusObjectTarget = _CostCenter.ObjectInternalID and $projection.REObjectTypeTarget = 'KS' and ( _CostCenter.ValidityStartDate <= $session.system_date and _CostCenter.ValidityEndDate >= $session.system_date ) |
| [0..1] | I_WBSElementBasicData | _WBSElement | $projection.REStatusObjectTarget = _WBSElement.WBSElementObject and $projection.REObjectTypeTarget = 'PR' |
| [0..1] | I_InternalOrder | _InternalOrder | $projection.REStatusObjectTarget = _InternalOrder.ControllingObject and $projection.REObjectTypeTarget = 'OR' |
| [0..1] | I_REObjectTypeDetails | _REObjectTypeDetails | $projection.REStatusObjectTarget = _REObjectTypeDetails.REStatusObject |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.representativeKey | REStatusObjectTarget | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | IntegrationObject Object Assignment TP | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InternalRealEstateNumber | InternalRealEstateNumber | ||
| KEY | REObjectAssignmentType | REObjectAssignmentType | ||
| KEY | REStatusObjectTarget | REStatusObjectTarget | ||
| KEY | ValidityStartEndDateValue | |||
| REStatusObjectTargetForEdit | REStatusObjectTarget | |||
| REIdentification | ||||
| REIdentificationKey | ||||
| REStatusObjectSource | REStatusObjectSource | |||
| ValidityStartDate | ||||
| ValidityEndDate | ||||
| REStatusObjectSourceIsArchived | REStatusObjectSourceIsArchived | |||
| REObjectTypeTarget | REObjectTypeTarget | |||
| REIsLeadingObject | REIsLeadingObject | |||
| _REObjectTypeTarget | _REObjectTypeTarget | |||
| _REIntegrationObjectTP | _REIntegrationObjectTP | |||
| _CostCenter | _CostCenter | |||
| _WBSElement | _WBSElement | |||
| _InternalOrder | _InternalOrder | |||
| _REEntryValidity | _REEntryValidity | |||
| _REObjectTypeDetails | _REObjectTypeDetails | |||
| _REObjectAssgmtHierAddl | _REObjectAssgmtHierAddl |
//@AbapCatalog.sqlViewName: 'RREUSELCOASSTP'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.usage.type: [ #TRANSACTIONAL_PROCESSING_SERVICE ]
@ObjectModel.representativeKey: 'REStatusObjectTarget'
@ObjectModel.semanticKey: ['REStatusObjectTarget', 'ValidityStartEndDateValue' ]
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@EndUserText.label: 'IntegrationObject Object Assignment TP'
//@ClientHandling.algorithm: #SESSION_VARIABLE
define view entity R_REUseEnableLdngObjAssgmtTP
// as select from I_REObjectAssgmtHier as _REObjectAssgmt
as select from I_REIntegObjectObjectAssgmt as _REObjectAssgmt
association to parent R_REIntegrationObjectTP as _REIntegrationObjectTP on $projection.InternalRealEstateNumber = _REIntegrationObjectTP.InternalRealEstateNumber
// association [0..1] to I_REAccountingObject as _REAccountingObject on $projection.REStatusObjectTarget = _REAccountingObject.REAccountingObject
association [1..1] to I_REEntryValidity as _REEntryValidity on $projection.REEntryValidity = _REEntryValidity.REEntryValidity
association [1..1] to I_REObjectAssgmtHierAddl as _REObjectAssgmtHierAddl on $projection.REObjectAssignmentType = _REObjectAssgmtHierAddl.REObjectAssignmentType
and $projection.REStatusObjectTarget = _REObjectAssgmtHierAddl.REStatusObjectTarget
and $projection.REStatusObjectSource = _REObjectAssgmtHierAddl.REStatusObjectSource
and $projection.InternalRealEstateNumber = _REObjectAssgmtHierAddl.InternalRealEstateNumber
and $projection.ValidityStartEndDateValue = _REObjectAssgmtHierAddl.ValidityStartEndDateValue
association [1..*] to I_REObjectTypeText as _REObjectTypeText on _REObjectTypeText.Language = $session.system_language
and (
_REObjectTypeText.RealEstateObjectType = 'KS'
or _REObjectTypeText.RealEstateObjectType = 'OR'
or _REObjectTypeText.RealEstateObjectType = 'PR'
or _REObjectTypeText.RealEstateObjectType = 'IW'
or _REObjectTypeText.RealEstateObjectType = 'IB'
or _REObjectTypeText.RealEstateObjectType = 'IG'
or _REObjectTypeText.RealEstateObjectType = 'IM'
)
association [0..1] to I_CostCenter as _CostCenter on $projection.REStatusObjectTarget = _CostCenter.ObjectInternalID
and $projection.REObjectTypeTarget = 'KS'
and (
// $projection.ValidityStartDate <= _CostCenter.ValidityEndDate
// or $projection.ValidityEndDate >= _CostCenter.ValidityStartDate
_CostCenter.ValidityStartDate <= $session.system_date
and _CostCenter.ValidityEndDate >= $session.system_date
)
association [0..1] to I_WBSElementBasicData as _WBSElement on $projection.REStatusObjectTarget = _WBSElement.WBSElementObject
and $projection.REObjectTypeTarget = 'PR'
association [0..1] to I_InternalOrder as _InternalOrder on $projection.REStatusObjectTarget = _InternalOrder.ControllingObject
and $projection.REObjectTypeTarget = 'OR'
association [0..1] to I_REObjectTypeDetails as _REObjectTypeDetails on $projection.REStatusObjectTarget = _REObjectTypeDetails.REStatusObject
{
key InternalRealEstateNumber,
key REObjectAssignmentType,
key REStatusObjectTarget,
// key ValidityStartDate,
key cast(concat(ValidityStartDate, ValidityEndDate ) as recadateperiod preserving type ) as ValidityStartEndDateValue,
REStatusObjectTarget as REStatusObjectTargetForEdit,
@ObjectModel.virtualElement: true
cast( '' as recaident ) as REIdentification,
@ObjectModel.virtualElement: true
cast( '' as recaidentkey ) as REIdentificationKey,
REStatusObjectSource,
@Semantics.businessDate.from: true
cast( coalesce(ValidityStartDate, '00000000') as rebdvdmvalidfrom preserving type ) as ValidityStartDate,
@Semantics.businessDate.to: true
cast( coalesce(ValidityEndDate, '99991231') as rebdvdmvalidto preserving type ) as ValidityEndDate,
// REOnlyInfoAssgmt,
REStatusObjectSourceIsArchived,
// REGenerationType,
// REIsMainAsset,
// REAssignmentHasMultiple,
// REObjectPossessionStartDate,
// REObjectPossessionEndDate,
// REGroupNumber,
// REObjectGroupName,
REObjectTypeTarget,
REIsLeadingObject,
@ObjectModel.foreignKey.association: '_REEntryValidity'
case
// when ValidityStartDate is initial then cast ('0' as recavdmentryvalidity)
when ValidityStartDate is initial and ValidityEndDate is initial then cast (left('3',1) as recavdmentryvalidity preserving type )
when ValidityStartDate > $session.system_date then cast (left('2',1) as recavdmentryvalidity preserving type )
when ValidityStartDate <= $session.system_date and ValidityEndDate >= $session.system_date then cast(left('3',1) as recavdmentryvalidity preserving type )
else cast (left('1',1) as recavdmentryvalidity preserving type)
end as REEntryValidity,
case
// when ValidityStartDate is initial then 0
when ValidityStartDate is initial and ValidityEndDate is initial then 3
when ValidityStartDate > $session.system_date then 2
when ValidityStartDate <= $session.system_date and ValidityEndDate >= $session.system_date then 3
else 1
end as REEntryValidityCriticality,
// _REObjectTypeDetails,
_REObjectTypeTarget,
//
// _REObjectAssignmentType,
// _REGenerationType,
_REIntegrationObjectTP,
// _REAccountingObject,
_CostCenter,
_WBSElement,
_InternalOrder,
_REEntryValidity,
_REObjectTypeDetails,
_REObjectAssgmtHierAddl
}
where
REObjectAssignmentType = 'IO'
and REIsLeadingObject = 'X'
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