R_TrdgDocPurgDocCat

DDL: R_TRDGDOCPURGDOCCAT Type: view_entity BASIC

Purchasing Document Category

R_TrdgDocPurgDocCat is a Basic CDS View that provides data about "Purchasing Document Category" in SAP S/4HANA. It reads from 1 data source (dd07l) and exposes 3 fields with key field PurchasingDocumentCategory. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
dd07l dd07l from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PurchasingDocumentCategory _PurchasingDocumentCategory $projection.PurchasingDocumentCategory = 'F' or $projection.PurchasingDocumentCategory = 'K'
[0..*] R_TrdgDocPurgDocCatText _Text

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Purchasing Document Category view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey PurchasingDocumentCategory view
ObjectModel.resultSet.sizeCategory #XS view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocumentCategory
DomainValue dd07l 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 R_TrdgDocPurgDocCat.
-- 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_TrdgDocPurgDocCat AS
SELECT
  cast( dd07l.domvalue_l as bstyp_tc ) AS PurchasingDocumentCategory,
  dd07l.domvalue_l AS DomainValue
FROM dd07l
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurchasingDocumentCategory ON PurchasingDocumentCategory = 'F' OR PurchasingDocumentCategory = 'K'  -- association [0..1]
LEFT OUTER JOIN R_TrdgDocPurgDocCatText AS _Text ON /* condition not available in parsed metadata */  -- association [0..*]
;