I_PPS_PurOrdDocType

DDL: I_PPS_PURORDDOCTYPE Type: view_entity BASIC

PPS Relevant Purchase Order Types

I_PPS_PurOrdDocType is a Basic CDS View that provides data about "PPS Relevant Purchase Order Types" in SAP S/4HANA. It reads from 1 data source (t161) and exposes 3 fields with key fields PurchasingDocumentCategory, PurchaseOrderType. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
t161 t161 from

Associations (1)

CardinalityTargetAliasCondition
[1..1] t161t _Text $projection.PurchaseOrderType = _Text.bsart and $projection.PurchasingDocumentCategory = _Text.bstyp and _Text.spras = $session.system_language

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label PPS Relevant Purchase Order Types view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
VDM.viewType #BASIC view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocumentCategory bstyp Source doc.cat.
KEY PurchaseOrderType bsart Stnd purch.ord.
PurchaseOrderTypeName _Text batxt Doc.Type Desc.

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_PPS_PurOrdDocType.
-- 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_PPS_PurOrdDocType AS
SELECT
  bstyp AS PurchasingDocumentCategory,
  bsart AS PurchaseOrderType,
  _Text.batxt AS PurchaseOrderTypeName
FROM t161
LEFT OUTER JOIN t161t AS _Text ON PurchaseOrderType = _Text.bsart AND PurchasingDocumentCategory = _Text.bstyp AND _Text.spras = $session.system_language  -- association [1..1]
;