I_MaterialDocumentHeaderVH

DDL: I_MATERIALDOCUMENTHEADERVH SQL: IMATDOCHEADERVH Type: view COMPOSITE

Material document value help

I_MaterialDocumentHeaderVH is a Composite CDS View that provides data about "Material document value help" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 9 fields with key fields MaterialDocumentYear, MaterialDocument. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_MaterialDocumentItem _MaterialDocumentItem $projection.MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear and $projection.MaterialDocument = _MaterialDocumentItem.MaterialDocument

Annotations (17)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName IMATDOCHEADERVH view
EndUserText.label Material document value help view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey MaterialDocument view
VDM.private false view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view
Consumption.ranked true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
KEY MaterialDocument MaterialDocument Material Doc.
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
InventoryTransactionType InventoryTransactionType Trans. Ev. Type
MaterialDocumentHeaderText MaterialDocumentHeaderText
DeliveryDocument DeliveryInMatlDocumentHeader
ReferenceDocument ReferenceDocument Reference Document
_MaterialDocumentItem _MaterialDocumentItem

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_MaterialDocumentHeaderVH.
-- 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: IMATDOCHEADERVH

CREATE VIEW I_MaterialDocumentHeaderVH AS
SELECT
  MaterialDocumentYear,
  MaterialDocument,
  DocumentDate,
  PostingDate,
  InventoryTransactionType,
  MaterialDocumentHeaderText,
  DeliveryInMatlDocumentHeader AS DeliveryDocument,
  ReferenceDocument
FROM I_MaterialDocumentRecord
LEFT OUTER JOIN I_MaterialDocumentItem AS _MaterialDocumentItem ON MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear AND MaterialDocument = _MaterialDocumentItem.MaterialDocument  -- association [1..*]
;