I_VarianceReasonText

DDL: I_VARIANCEREASONTEXT SQL: IVARCREASONTEXT Type: view BASIC

Variance Reason - Text

I_VarianceReasonText (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_VarianceReasonText is a Basic CDS View that provides data about "Variance Reason - Text" in SAP S/4HANA. It reads from 1 data source (trugt) and exposes 7 fields with key fields VarianceReasonCode, Plant, Language. It has 3 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM
CapabilitiesLanguage-Dependent Text, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Search, Data Source for Data Extraction
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which variance reason codes are maintained in a plant?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
trugt txt from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Language _Language $projection.Language = _Language.Language
[1..1] I_VarianceReason _VarianceReason $projection.Plant = _VarianceReason.Plant and $projection.VarianceReasonCode = _VarianceReason.VarianceReasonCode

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName IVARCREASONTEXT view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #GENERIC view
AbapCatalog.buffering.numberOfKeyFields 001 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataExtraction.enabled true view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #LANGUAGE_DEPENDENT_TEXT view
ObjectModel.representativeKey VarianceReasonCode view
ObjectModel.dataCategory #TEXT view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Variance Reason - Text view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY VarianceReasonCode Reason for Variance
KEY Plant trugt werks Receiving Plant
KEY Language Language Key
VarianceReasonName Description of the Variance Reason
_VarianceReason _VarianceReason
_Plant _Plant
_Language _Language

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 I_VarianceReasonText.
-- 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.
-- SQL view name: IVARCREASONTEXT

CREATE VIEW I_VarianceReasonText AS
SELECT
  cast(txt.grund as pph_agrnd preserving type) AS VarianceReasonCode,
  txt.werks AS Plant,
  cast(txt.spras as spras preserving type) AS Language,
  cast(txt.grdtx as pph_grdtx preserving type) AS VarianceReasonName
FROM trugt AS txt
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [1..1]
LEFT OUTER JOIN I_VarianceReason AS _VarianceReason ON Plant = _VarianceReason.Plant AND VarianceReasonCode = _VarianceReason.VarianceReasonCode  -- association [1..1]
;