R_TrdgDocReltdDocInBsUnt

DDL: R_TRDGDOCRELTDDOCINBSUNT Type: view_entity COMPOSITE

Related Document in Base Unit

R_TrdgDocReltdDocInBsUnt is a Composite CDS View that provides data about "Related Document in Base Unit" in SAP S/4HANA. It reads from 1 data source (R_TrdgDocReltdDocInfoBasic) and exposes 16 fields with key field TrdgReltdDocumentUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
R_TrdgDocReltdDocInfoBasic R_TrdgDocReltdDocInfoBasic from

Associations (1)

CardinalityTargetAliasCondition
[1..1] R_TrdgDoc _TrdgDoc $projection.TradingDocument = _TrdgDoc.TradingDocument

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Related Document in Base Unit view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.compositionRoot false view
ObjectModel.representativeKey TrdgReltdDocumentUUID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
Analytics.dataExtraction.enabled false view
Analytics.internalName #LOCAL view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY TrdgReltdDocumentUUID TrdgReltdDocumentUUID SM Doc Rel UUID
TrdgDocRelatedDocument TrdgDocRelatedDocument SD Sched. Agmt
TradingDocument TradingDocument Trading Contract
TradingDocumentItem TradingDocumentItem
TrdgDocExternalIdentifier TrdgDocExternalIdentifier Ext. Identifier
TrdgDocReltdSideCat TrdgDocReltdSideCat
TrdgReltdDocCategory TrdgReltdDocCategory
TrdgDocItemIsComplete TrdgDocItemIsComplete Totals status
TrdgDocDgtlSgntrProcID TrdgDocDgtlSgntrProcID UUID 22 char.
TrdgDocReltdDocDeltnCat TrdgDocReltdDocDeltnCat Deletion Ind.
TrdgDocDeltnIsRlvt TrdgDocDeltnIsRlvt Deletion
Product Product Product Sold
TrdgDocReltdDocUoM TrdgDocReltdDocUoM Current Doc UoM
BaseUnit _Product BaseUnit Unit of Measure
TrdgDocReltdDocCurrency TrdgDocReltdDocCurrency Currency
_TrdgDoc _TrdgDoc

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 R_TrdgDocReltdDocInBsUnt.
-- 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 R_TrdgDocReltdDocInBsUnt AS
SELECT
  TrdgReltdDocumentUUID,
  TrdgDocRelatedDocument,
  TradingDocument,
  TradingDocumentItem,
  TrdgDocExternalIdentifier,
  TrdgDocReltdSideCat,
  TrdgReltdDocCategory,
  TrdgDocItemIsComplete,
  TrdgDocDgtlSgntrProcID,
  TrdgDocReltdDocDeltnCat,
  TrdgDocDeltnIsRlvt,
  Product,
  TrdgDocReltdDocUoM,
  _Product.BaseUnit AS BaseUnit,
  TrdgDocReltdDocCurrency
FROM R_TrdgDocReltdDocInfoBasic
LEFT OUTER JOIN R_TrdgDoc AS _TrdgDoc ON TradingDocument = _TrdgDoc.TradingDocument  -- association [1..1]
;