I_RO_SAFTMatlDocHeader

DDL: I_RO_SAFTMATLDOCHEADER Type: view_entity COMPOSITE

RO SAFT Material Document Header

I_RO_SAFTMatlDocHeader is a Composite CDS View that provides data about "RO SAFT Material Document Header" in SAP S/4HANA. It reads from 3 data sources (I_AccountingDocument, I_RO_SAFTDocumentTypeMap, I_Product) and exposes 7 fields with key fields MaterialDocument, MaterialDocumentYear, CompanyCode. It has 8 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_AccountingDocument _AccountingDoc inner
I_RO_SAFTDocumentTypeMap _DocumentMap inner
I_Product _Product inner

Associations (8)

CardinalityTargetAliasCondition
[0..1] I_RO_SAFTGoodsService _GoodsService _GoodsService.MaterialType = _Product.ProductType
[0..1] I_AccountingDocumentTypeText _AccountingDocumentText _AccountingDocumentText.AccountingDocumentType = _Matdoc.AccountingDocumentType and _AccountingDocumentText.Language = $session.system_language
[0..1] I_RO_SAFTMvtTypeTableEntry _MovementType1 _MovementType1.GoodsMovementType = _Matdoc.GoodsMovementType and _MovementType1.Plant = _Matdoc.Plant and _MovementType1.TargetGLAccount = '' and _MovementType1.AccountingDocumentType = _Matdoc.AccountingDocumentType and _MovementType1.DebitCreditCode = _Matdoc.DebitCreditCode and _MovementType1.ValuationClass = ''
[0..1] I_RO_SAFTMvtTypeTableEntry _MovementType2 _MovementType2.GoodsMovementType = _Matdoc.GoodsMovementType and _MovementType2.Plant = _Matdoc.Plant and _MovementType2.TargetGLAccount = '' and _MovementType2.AccountingDocumentType = _Matdoc.AccountingDocumentType and _MovementType2.DebitCreditCode = '' and _MovementType2.ValuationClass = ''
[0..1] I_RO_SAFTMvtTypeTableEntry _MovementType3 _MovementType3.GoodsMovementType = _Matdoc.GoodsMovementType and _MovementType3.Plant = _Matdoc.Plant and _MovementType3.TargetGLAccount = '' and _MovementType3.AccountingDocumentType = '' and _MovementType3.DebitCreditCode = '' and _MovementType3.ValuationClass = ''
[0..1] I_RO_SAFTMvtTypeTableEntry _MovementType4 _MovementType4.GoodsMovementType = _Matdoc.GoodsMovementType and _MovementType4.Plant = _Matdoc.Plant and _MovementType4.TargetGLAccount = '' and _MovementType4.AccountingDocumentType = '' and _MovementType4.DebitCreditCode = _Matdoc.DebitCreditCode and _MovementType4.ValuationClass = ''
[0..1] I_RO_SAFTMvtTypeTableEntry _MovementType5 _MovementType5.GoodsMovementType = _Matdoc.GoodsMovementType and _MovementType5.Plant = '' and _MovementType5.TargetGLAccount = '' and _MovementType5.AccountingDocumentType = '' and _MovementType5.DebitCreditCode = '' and _MovementType5.ValuationClass = ''
[0..1] I_RO_SAFTMvtTypeTableEntry _MovementType6 _MovementType6.GoodsMovementType = _Matdoc.GoodsMovementType and _MovementType6.Plant = _Matdoc.Plant and _MovementType6.TargetGLAccount = '' and _MovementType6.AccountingDocumentType = _Matdoc.AccountingDocumentType and _MovementType6.DebitCreditCode = _Matdoc.DebitCreditCode and _MovementType6.ValuationClass = _Matdoc.ValuationClass

Annotations (11)

NameValueLevelField
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label RO SAFT Material Document Header view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
Analytics.internalName #LOCAL view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey MaterialDocument view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocument _Matdoc MaterialDocument Material Doc.
KEY MaterialDocumentYear _Matdoc MaterialDocumentYear Material Document Year
KEY CompanyCode _Matdoc CompanyCode Receiver Company Code
CreatedByUser _Matdoc CreatedByUser User Name
PostingDate _Matdoc PostingDate Posting Date for GR
DocumentDate _Matdoc DocumentDate Journal Entry Date
AccountingDocumentTypeName _AccountingDocumentText AccountingDocumentTypeName

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_RO_SAFTMatlDocHeader.
-- 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 I_RO_SAFTMatlDocHeader AS
SELECT
  _Matdoc.MaterialDocument AS MaterialDocument,
  _Matdoc.MaterialDocumentYear AS MaterialDocumentYear,
  _Matdoc.CompanyCode AS CompanyCode,
  _Matdoc.CreatedByUser AS CreatedByUser,
  _Matdoc.PostingDate AS PostingDate,
  _Matdoc.DocumentDate AS DocumentDate,
  _AccountingDocumentText.AccountingDocumentTypeName AS AccountingDocumentTypeName
INNER JOIN I_AccountingDocument AS _AccountingDoc ON /* join condition not captured in parsed metadata */
INNER JOIN I_RO_SAFTDocumentTypeMap AS _DocumentMap ON /* join condition not captured in parsed metadata */
INNER JOIN I_Product AS _Product ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RO_SAFTGoodsService AS _GoodsService ON _GoodsService.MaterialType = _Product.ProductType  -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _AccountingDocumentText ON _AccountingDocumentText.AccountingDocumentType = _Matdoc.AccountingDocumentType AND _AccountingDocumentText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_RO_SAFTMvtTypeTableEntry AS _MovementType1 ON _MovementType1.GoodsMovementType = _Matdoc.GoodsMovementType AND _MovementType1.Plant = _Matdoc.Plant AND _MovementType1.TargetGLAccount = '' AND _MovementType1.AccountingDocumentType = _Matdoc.AccountingDocumentType AND _MovementType1.DebitCreditCode = _Matdoc.DebitCreditCode AND _MovementType1.ValuationClass = ''  -- association [0..1]
LEFT OUTER JOIN I_RO_SAFTMvtTypeTableEntry AS _MovementType2 ON _MovementType2.GoodsMovementType = _Matdoc.GoodsMovementType AND _MovementType2.Plant = _Matdoc.Plant AND _MovementType2.TargetGLAccount = '' AND _MovementType2.AccountingDocumentType = _Matdoc.AccountingDocumentType AND _MovementType2.DebitCreditCode = '' AND _MovementType2.ValuationClass = ''  -- association [0..1]
LEFT OUTER JOIN I_RO_SAFTMvtTypeTableEntry AS _MovementType3 ON _MovementType3.GoodsMovementType = _Matdoc.GoodsMovementType AND _MovementType3.Plant = _Matdoc.Plant AND _MovementType3.TargetGLAccount = '' AND _MovementType3.AccountingDocumentType = '' AND _MovementType3.DebitCreditCode = '' AND _MovementType3.ValuationClass = ''  -- association [0..1]
LEFT OUTER JOIN I_RO_SAFTMvtTypeTableEntry AS _MovementType4 ON _MovementType4.GoodsMovementType = _Matdoc.GoodsMovementType AND _MovementType4.Plant = _Matdoc.Plant AND _MovementType4.TargetGLAccount = '' AND _MovementType4.AccountingDocumentType = '' AND _MovementType4.DebitCreditCode = _Matdoc.DebitCreditCode AND _MovementType4.ValuationClass = ''  -- association [0..1]
LEFT OUTER JOIN I_RO_SAFTMvtTypeTableEntry AS _MovementType5 ON _MovementType5.GoodsMovementType = _Matdoc.GoodsMovementType AND _MovementType5.Plant = '' AND _MovementType5.TargetGLAccount = '' AND _MovementType5.AccountingDocumentType = '' AND _MovementType5.DebitCreditCode = '' AND _MovementType5.ValuationClass = ''  -- association [0..1]
LEFT OUTER JOIN I_RO_SAFTMvtTypeTableEntry AS _MovementType6 ON _MovementType6.GoodsMovementType = _Matdoc.GoodsMovementType AND _MovementType6.Plant = _Matdoc.Plant AND _MovementType6.TargetGLAccount = '' AND _MovementType6.AccountingDocumentType = _Matdoc.AccountingDocumentType AND _MovementType6.DebitCreditCode = _Matdoc.DebitCreditCode AND _MovementType6.ValuationClass = _Matdoc.ValuationClass  -- association [0..1]
;