I_PurchaseReqnDocumentType

DDL: I_PURCHASEREQNDOCUMENTTYPE SQL: IPURREQNDOCTYPE Type: view BASIC

Purchase Requisition Document Type

I_PurchaseReqnDocumentType is a Basic CDS View that provides data about "Purchase Requisition Document Type" in SAP S/4HANA. It reads from 2 data sources (t161p, I_PurchasingDocumentType) and exposes 5 fields with key fields PurchaseRequisitionType, PurchasingDocumentCategory, PurchasingDocumentItemCategory. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
t161p DocItem inner
I_PurchasingDocumentType PurchaseReqnDocumentType from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory and $projection.PurchaseRequisitionType = _PurchasingDocumentTypeText.PurchasingDocumentType and _PurchasingDocumentTypeText.Language = $session.system_language
[0..1] I_PurgDocumentItemCategoryText _PurgDocumentItemCategoryText $projection.PurchasingDocumentItemCategory = _PurgDocumentItemCategoryText.PurchasingDocumentItemCategory and _PurgDocumentItemCategoryText.Language = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPURREQNDOCTYPE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Purchase Requisition Document Type view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.sapObjectNodeType.name PurchaseRequisitionType view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisitionType I_PurchasingDocumentType PurchasingDocumentType RFQ Type
KEY PurchasingDocumentCategory I_PurchasingDocumentType PurchasingDocumentCategory Doc. Category
KEY PurchasingDocumentItemCategory t161p pstyp Item Category
_PurchasingDocumentTypeText _PurchasingDocumentTypeText
_PurgDocumentItemCategoryText _PurgDocumentItemCategoryText

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_PurchaseReqnDocumentType.
-- 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.
-- SQL view name: IPURREQNDOCTYPE

CREATE VIEW I_PurchaseReqnDocumentType AS
SELECT
  PurchaseReqnDocumentType.PurchasingDocumentType AS PurchaseRequisitionType,
  PurchaseReqnDocumentType.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  DocItem.pstyp AS PurchasingDocumentItemCategory
FROM I_PurchasingDocumentType AS PurchaseReqnDocumentType
INNER JOIN t161p AS DocItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory AND PurchaseRequisitionType = _PurchasingDocumentTypeText.PurchasingDocumentType AND _PurchasingDocumentTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategoryText AS _PurgDocumentItemCategoryText ON PurchasingDocumentItemCategory = _PurgDocumentItemCategoryText.PurchasingDocumentItemCategory AND _PurgDocumentItemCategoryText.Language = $session.system_language  -- association [0..1]
;