Deprecated
This CDS view is deprecated in S/4HANA. Use I_BR_MaterialOrigin instead. View all deprecated CDS views →

C_OriginOfMatlTemp

DDL: C_ORIGINOFMATLTEMP SQL: CORIGNOFMATL Type: view CONSUMPTION

Origin of Material value help

C_OriginOfMatlTemp is a Consumption CDS View that provides data about "Origin of Material value help" in SAP S/4HANA. It reads from 1 data source (dd07l) and exposes 3 fields with key field ProductOriginType. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
dd07l dd07l from

Associations (1)

CardinalityTargetAliasCondition
[0..*] C_OriginOfMatlTextTemp _Text $projection.ProductOriginType = _Text.ProductOriginType

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CORIGNOFMATL view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_BR_MaterialOrigin view
ObjectModel.representativeKey ProductOriginType view
Search.searchable true view
EndUserText.label Origin of Material value help view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.dataCategory #VALUE_HELP view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY ProductOriginType
DomainValue domvalue_l Lower Value
_Text _Text

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_OriginOfMatlTemp.
-- 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: CORIGNOFMATL

CREATE VIEW C_OriginOfMatlTemp AS
SELECT
  cast(cast ( substring( domvalue_l, 1, 1 ) as abap.char( 1 ) ) as productorigintype) AS ProductOriginType,
  domvalue_l AS DomainValue
FROM dd07l
LEFT OUTER JOIN C_OriginOfMatlTextTemp AS _Text ON ProductOriginType = _Text.ProductOriginType  -- association [0..*]
;