C_SitnRelatedSituation
Related Situation
C_SitnRelatedSituation is a Consumption CDS View that provides data about "Related Situation" in SAP S/4HANA. It reads from 1 data source (I_SitnRelatedSituation) and exposes 13 fields with key fields SitnInstanceID, SitnDefRelatedObjectID. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SitnRelatedSituation | RelatedSituation | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SitnDefinition | _Definition | _Definition.SitnDefinitionID = $projection.SitnDefinitionID |
| [1..1] | I_SitnInstceWthoutPndgTrans | _Instance | _Instance.SitnInstanceID = $projection.SitnInstanceID |
| [1..1] | I_SitnDefTextForSitnInstance | _InstanceText | _InstanceText.SitnInstanceID = $projection.SitnInstanceID and _InstanceText.Language = $session.system_language |
| [1..1] | I_SitnDefAnchrObjType | _AnchorObjectType | _AnchorObjectType.SitnDefinitionID = $projection.SitnDefinitionID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSITNRELSIT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Related Situation | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SitnInstanceID | I_SitnRelatedSituation | SitnInstanceID | Instance ID |
| KEY | SitnDefRelatedObjectID | I_SitnRelatedSituation | SitnDefRelatedObjectID | Related Object ID |
| SitnDefinitionID | I_SitnRelatedSituation | SitnDefinitionID | Situation Type ID | |
| SitnInstceReltdObjKey | I_SitnRelatedSituation | SitnInstceReltdObjKey | Related Object Key | |
| SitnDefReltdObjSOT | I_SitnRelatedSituation | SitnDefReltdObjSOT | SAP Object Type | |
| SitnDefReltdObjSONT | I_SitnRelatedSituation | SitnDefReltdObjSONT | SAP Obj Node Type | |
| SitnInstceAnchorObjectKey | _Instance | SitnInstceAnchorObjectKey | Anchor Obj. Key | |
| SitnAnchorObjectReadableID | _Instance | SitnAnchorObjectReadableID | Anchor Object Key | |
| CreationDateTime | _Instance | CreationDateTime | Timestamp | |
| SitnDefAnchorObjectDesc | _AnchorObjectType | SitnDefAnchorObjectDesc | ||
| SitnDefShortText | _InstanceText | SitnDefShortText | Sitn Short Text | |
| SitnDefAnchorObjectView | _Definition | SitnDefAnchorObjectView | Anchor Object View | |
| SitnDefAnchorObject |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_SitnRelatedSituation.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW C_SitnRelatedSituation AS
SELECT
RelatedSituation.SitnInstanceID AS SitnInstanceID,
RelatedSituation.SitnDefRelatedObjectID AS SitnDefRelatedObjectID,
RelatedSituation.SitnDefinitionID AS SitnDefinitionID,
RelatedSituation.SitnInstceReltdObjKey AS SitnInstceReltdObjKey,
RelatedSituation.SitnDefReltdObjSOT AS SitnDefReltdObjSOT,
RelatedSituation.SitnDefReltdObjSONT AS SitnDefReltdObjSONT,
_Instance.SitnInstceAnchorObjectKey AS SitnInstceAnchorObjectKey,
_Instance.SitnAnchorObjectReadableID AS SitnAnchorObjectReadableID,
_Instance.CreationDateTime AS CreationDateTime,
_AnchorObjectType.SitnDefAnchorObjectDesc AS SitnDefAnchorObjectDesc,
_InstanceText.SitnDefShortText AS SitnDefShortText,
_Definition.SitnDefAnchorObjectView AS SitnDefAnchorObjectView
FROM I_SitnRelatedSituation AS RelatedSituation
LEFT OUTER JOIN I_SitnDefinition AS _Definition ON _Definition.SitnDefinitionID = SitnDefinitionID -- association [1..1]
LEFT OUTER JOIN I_SitnInstceWthoutPndgTrans AS _Instance ON _Instance.SitnInstanceID = SitnInstanceID -- association [1..1]
LEFT OUTER JOIN I_SitnDefTextForSitnInstance AS _InstanceText ON _InstanceText.SitnInstanceID = SitnInstanceID AND _InstanceText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_SitnDefAnchrObjType AS _AnchorObjectType ON _AnchorObjectType.SitnDefinitionID = SitnDefinitionID -- association [1..1]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA