I_RSHOperationHasCrossOrderRel is a Basic CDS View that provides data about "Operations with cross order relationship" in SAP S/4HANA. It reads from 1 data source (P_RSHRelationshipSplit) and exposes 1 field.
@AbapCatalog.sqlViewName: 'IRSHOPHASCROSREL'
@AbapCatalog.compiler.compareFilter: true@AccessControl.authorizationCheck: #NOT_REQUIRED@VDM.viewType: #BASIC//@VDM.private: true@ClientHandling.algorithm: #SESSION_VARIABLE@ObjectModel.usageType.dataClass: #MIXED@ObjectModel.usageType.serviceQuality: #D@ObjectModel.usageType.sizeCategory: #XL@EndUserText.label: 'Operations withcrossorder relationship'
@AccessControl.personalData.blocking: #NOT_REQUIRED/*
CONTRACT*************************************************************************************************************************
Name: Operation Has CrossOrder Relation Determination
Specification: This view splits the crossorder relations to get a distinct list of operation technical keys withcrossorder relations.
Requires: NA
Ensures: Technical Keys of Operations withCrossOrder Relations are returned
Owners: CK
Contributors:
Unit Test required Y/N: Y
Additional comments Intended only for use in I_RSHOperationAndSubOperation
END OF CONTRACT******************************************************************************************************************
*/defineview I_RSHOperationHasCrossOrderRel
asselectdistinctfrom I_ProjectNetworkRelationship as _CrossOrderRelationships
crossjoin P_RSHRelationshipSplit // just a table with two records
{
keycase P_RSHRelationshipSplit.RelationshipSplit
when 1 then _CrossOrderRelationships.PredecessorProjNtwkIntID
else _CrossOrderRelationships.SuccessorProjNtwkIntID endas MaintOrderRoutingNumber,
keycase P_RSHRelationshipSplit.RelationshipSplit
when 1 then _CrossOrderRelationships.PredecessorNtwkActyIntID
else _CrossOrderRelationships.SuccessorNtwkActyIntID endas MaintOrderOperationCounter,
'X' as HasCrossOrderRelationship
}
where _CrossOrderRelationships.ObjectIsDeleted = ' '
and _CrossOrderRelationships.PredecessorProjNtwkIntID <> _CrossOrderRelationships.SuccessorProjNtwkIntID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PROJECTNETWORKRELATIONSHIP",
"P_RSHRELATIONSHIPSPLIT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/