C_PurOrderDraftForMngPurReqn

DDL: C_PURORDERDRAFTFORMNGPURREQN SQL: CPODRAFTFORPR Type: view CONSUMPTION Package: ODATA_MM_PUR_PR_PROCESS

PO Draft For Purchase Requisition

C_PurOrderDraftForMngPurReqn is a Consumption CDS View that provides data about "PO Draft For Purchase Requisition" in SAP S/4HANA. It reads from 2 data sources (I_PurchasingDocumentTypeText, I_PurOrderDraftForMngPurReqn) and exposes 23 fields with key field PurchaseOrderDraftUUID. It has 5 associations to related views. Part of development package ODATA_MM_PUR_PR_PROCESS.

Data Sources (2)

SourceAliasJoin Type
I_PurchasingDocumentTypeText _PurchasingDocumentTypeText left_outer
I_PurOrderDraftForMngPurReqn _PurOrderDraftForMngPurReqn from

Associations (5)

CardinalityTargetAliasCondition
[1..*] C_PurOrderItmDrftForMngPurReqn _PurOrderItmDrftForMngPurReqn $projection.PurchaseOrderDraftUUID = _PurOrderItmDrftForMngPurReqn.PurchaseOrderDraftUUID
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] C_PurchaseOrderTypeValueHelp _PurchaseOrderTypeValueHelp $projection.PurchaseOrderType = _PurchaseOrderTypeValueHelp.PurchaseOrderType

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CPODRAFTFORPR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label PO Draft For Purchase Requisition view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrderDraftUUID PurchaseOrderDraftUUID Draft Document ID
CompanyCode CompanyCode Receiver Company Code
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
DocumentCurrency DocumentCurrency Document Currency
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
PaymentTerms PaymentTerms Pyt Terms
PurchaseOrderNetPriceAmount PurchaseOrderNetPriceAmount
PurchasingDocument PurchasingDocument Purchasing Document
PurchasingDocumentTypeName I_PurchasingDocumentTypeText PurchasingDocumentTypeName Description
PurchaseOrderType PurchaseOrderType PO Type
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
Supplier Supplier Supplier
SupplierName _Supplier SupplierName Supplier Name
SupplierAccount SupplierAccount Supplier
SupplyingSupplier SupplyingSupplier Goods Supplier
SerialNumber
_PurOrderItmDrftForMngPurReqn _PurOrderItmDrftForMngPurReqn
_PurchaseOrderTypeValueHelp _PurchaseOrderTypeValueHelp

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 C_PurOrderDraftForMngPurReqn.
-- 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: CPODRAFTFORPR

CREATE VIEW C_PurOrderDraftForMngPurReqn AS
SELECT
  PurchaseOrderDraftUUID,
  CompanyCode,
  CreatedByUser,
  CreationDate,
  DocumentCurrency,
  IncotermsClassification,
  IncotermsTransferLocation,
  PaymentTerms,
  PurchaseOrderNetPriceAmount,
  PurchasingDocument,
  _PurchasingDocumentTypeText.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  PurchaseOrderType,
  PurchasingGroup,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  PurchasingOrganization,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  Supplier,
  _Supplier.SupplierName AS SupplierName,
  SupplierAccount,
  SupplyingSupplier,
  cast ('' as abap.char( 10 )) AS SerialNumber
FROM I_PurOrderDraftForMngPurReqn AS _PurOrderDraftForMngPurReqn
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_PurOrderItmDrftForMngPurReqn AS _PurOrderItmDrftForMngPurReqn ON PurchaseOrderDraftUUID = _PurOrderItmDrftForMngPurReqn.PurchaseOrderDraftUUID  -- association [1..*]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN C_PurchaseOrderTypeValueHelp AS _PurchaseOrderTypeValueHelp ON PurchaseOrderType = _PurchaseOrderTypeValueHelp.PurchaseOrderType  -- association [1..1]
;