I_PPS_PurContrDocType

DDL: I_PPS_PURCONTRDOCTYPE Type: view_entity BASIC

PPS Relevant Purchase Contract Types

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

Data Sources (1)

SourceAliasJoin Type
t161 t161 from

Associations (1)

CardinalityTargetAliasCondition
[1..1] t161t _Text $projection.PurchaseContractType = _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 Contract Types view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocumentCategory bstyp Source doc.cat.
KEY PurchaseContractType bsart Stnd purch.ord.
IsDefaultDocument default_doc_ty Def. Doc Typ
PurchasingDocumentTypeName _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_PurContrDocType.
-- 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_PurContrDocType AS
SELECT
  bstyp AS PurchasingDocumentCategory,
  bsart AS PurchaseContractType,
  default_doc_ty AS IsDefaultDocument,
  _Text.batxt AS PurchasingDocumentTypeName
FROM t161
LEFT OUTER JOIN t161t AS _Text ON PurchaseContractType = _Text.bsart AND PurchasingDocumentCategory = _Text.bstyp AND _Text.spras = $session.system_language  -- association [1..1]
;