C_PPS_DirectPurchaseOrderTP_2

DDL: C_PPS_DIRECTPURCHASEORDERTP_2 Type: view_entity CONSUMPTION

Purchase Order

C_PPS_DirectPurchaseOrderTP_2 is a Consumption CDS View that provides data about "Purchase Order" in SAP S/4HANA. It reads from 1 data source (R_PPS_PurchaseOrderTP) and exposes 97 fields with key field PurchaseOrder. It has 25 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_PPS_PurchaseOrderTP R_PPS_PurchaseOrderTP projection

Associations (25)

CardinalityTargetAliasCondition
[0..*] C_PurOrdRefDocPO _PurOrdRefDocPurchaseOrder _PurOrdRefDocPurchaseOrder.Supplier = $projection.Supplier
[0..*] C_PurOrdRefDocIR _PurOrdRefDocInfoRecord _PurOrdRefDocInfoRecord.Supplier = $projection.Supplier
[0..*] C_PurOrdRefDocPC _PurOrdRefDocPurchaseContract _PurOrdRefDocPurchaseContract.Supplier = $projection.Supplier
[0..1] I_UserContactCard _UserContactCard _UserContactCard.ContactCardType = 'User' and _UserContactCard.ContactCardID = $projection.CreatedByUser and _UserContactCard.ContactCardRole = 'Creator' ------------------------------------------------------------------------------------------- -- Value-Help Associations -- -------------------------------------------------------------------------------------------
[0..1] C_MM_CompanyCodeValueHelp _CompanyCodeValueHelp _CompanyCodeValueHelp.CompanyCode = $projection.CompanyCode
[0..1] C_PurchasingOrgValueHelp _PurgOrgValueHelp _PurgOrgValueHelp.PurchasingOrganization = $projection.PurchasingOrganization and _PurgOrgValueHelp.CompanyCode = $projection.CompanyCode
[0..1] C_PurchasingGroupValueHelp _PurchasingGrpValueHelp _PurchasingGrpValueHelp.PurchasingGroup = $projection.PurchasingGroup
[0..1] I_PurgTotProdCmplncSuplrStsT _PurgTotProdCmplncSuplrStsT $projection.PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts and _PurgTotProdCmplncSuplrStsT.Language = $session.system_language
[0..1] I_PurgTotProdMarketabilityStsT _PurgTotProdMarketabilityStsT $projection.PurgAggrgdProdMarketabilitySts = _PurgTotProdMarketabilityStsT.PurgAggrgdProdMarketabilitySts and _PurgTotProdMarketabilityStsT.Language = $session.system_language
[0..1] I_PurgAggrgdSftyDataSheetStsT _PurgAggrgdSftyDataSheetStsT $projection.PurgAggrgdSftyDataSheetStatus = _PurgAggrgdSftyDataSheetStsT.PurgAggrgdSftyDataSheetStatus and _PurgAggrgdSftyDataSheetStsT.Language = $session.system_language
[0..1] I_PurgTotDangerousGoodsStsT _PurgTotDangerousGoodsStsT $projection.PurgProdCmplncTotDngrsGoodsSts = _PurgTotDangerousGoodsStsT.PurgProdCmplncTotDngrsGoodsSts and _PurgTotDangerousGoodsStsT.Language = $session.system_language
[0..1] C_POProdComplianceCriticality _POProdComplianceCriticality $projection.PurchaseOrder = _POProdComplianceCriticality.PurchaseOrder
[0..*] C_PurchaseOrderApprover _POApprover $projection.PurchaseOrder = _POApprover.PurchaseOrder
[1..1] I_PurgProcessingStatusText _PurOrdProcessingStatusTxt _PurOrdProcessingStatusTxt.PurchasingProcessingStatus = $projection.PurchasingProcessingStatus and _PurOrdProcessingStatusTxt.Language = $session.system_language
[1..1] C_PurchaseOrderStatus _POStatus $projection.PurchaseOrder = _POStatus.PurchaseOrder
[1..1] C_PPS_SupplierDetail _SupplierDetail $projection.Supplier = _SupplierDetail.Supplier
[0..1] C_PPS_PaymentTerm _PaymentTerm $projection.PaymentTerms = _PaymentTerm.PaymentTerms
[1..*] C_PPS_DrctPOVersionHistory_2 _PurOrdVersionHistory $projection.ActivePurchasingDocument = _PurOrdVersionHistory.ActivePurchasingDocument
[0..*] C_PPS_PurOrdDocumentTotal_2 _DocumentTotal $projection.ActivePurchasingDocument = _DocumentTotal.PurchaseOrder
[0..*] C_PPS_PurOrdDocTotalOptional_2 _OptionalDocumentTotal $projection.PurchaseOrder = _OptionalDocumentTotal.PurchaseOrder
[0..*] C_PPS_PurOrdItmDocTot _ItemDocumentTotal $projection.ActivePurchasingDocument = _ItemDocumentTotal.PurchaseOrder
[0..*] C_PPS_PurgDocBudgetOverviewC _PurgDocBudgetOverview $projection.PurchaseOrder = _PurgDocBudgetOverview.ReferenceDocument
[1..1] C_PPS_PricingArrangementTypeVH _PricingArrangementType $projection.PPSPricingArrangementType = _PricingArrangementType.PPSPricingArrangementType
[0..*] C_LegalTransactionIntegFacet _LegalTransaction _LegalTransaction.LglCntntMLinkdObj = $projection.PurchaseOrder and _LegalTransaction.LglCntntMIntegrationLink = 'POR'
[0..*] C_LegalDocumentIntegFacet _LegalDocuments _LegalDocuments.LglCntntMLinkdObj = $projection.PurchaseOrder and _LegalDocuments.LglCntntMIntegrationLink = 'POR'

Annotations (11)

NameValueLevelField
VDM.viewType #CONSUMPTION view
EndUserText.label Purchase Order view
AccessControl.personalData.blocking #REQUIRED view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.sapObjectNodeType.name PurchaseOrder view
ObjectModel.representativeKey PurchaseOrder view
Metadata.allowExtensions true view
Feature SW:PPS_NG_MVP2025 view

Fields (97)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
ActivePurchasingDocument ActivePurchasingDocument Active Purchase Doc
PurchaseOrderType PurchaseOrderType Document Type
PurchaseOrderTypeName _PurchaseOrderTypeText PurchasingDocumentTypeName Description
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
PurchaseOrderDate PurchaseOrderDate PO Date
LastChangeDateTime LastChangeDateTime Timestamp
Language Language Report Text Language
PPSPurgDocApprovalStatusText _WorkflowDetail PPSPurgDocApprovalStatusText
PPSPurOrderApprovalDate _WorkflowDetail PPSPurgDocApprovalDate Approval Date
PPSPurgDocApprovalStatus _WorkflowDetail PPSPurgDocApprovalStatus
PurchaseOrderDeletionCode PurchaseOrderDeletionCode Deletion Code
IsDeleted IsDeleted Deletion Indicator
ReleaseIsNotCompleted ReleaseIsNotCompleted Subj.to Release
PurchasingCompletenessStatus PurchasingCompletenessStatus Incomplete
PurchasingProcessingStatus PurchasingProcessingStatus Proc. State
PurgReleaseSequenceStatus PurgReleaseSequenceStatus Release State
ReleaseCode ReleaseCode Release ind.
PurchasingReleaseStrategy PurchasingReleaseStrategy Rel. Strategy
PurgReasonForDocCancellation PurgReasonForDocCancellation Reas. for Canc.
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CompanyCode CompanyCodeName Company Name
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
Supplier Supplier Supplier
SupplierName _Supplier SupplierName Supplier Name
PPSSupplierCurrency
SupplierRespSalesPersonName SupplierRespSalesPersonName Salesperson
SupplierPhoneNumber SupplierPhoneNumber Telephone
SupplyingSupplier SupplyingSupplier Goods Supplier
SupplyingPlant SupplyingPlant Supplying Plant
InvoicingParty InvoicingParty Supplier
Customer Customer Sold-to Party
PurchaseContract PurchaseContract Purchasing Doc.
SupplierQuotationExternalID SupplierQuotationExternalID Quotation
QuotationSubmissionDate QuotationSubmissionDate Quotation Date
ItemNumberIntervalForSubItems ItemNumberIntervalForSubItems Subitem Interv.
PaymentTerms PaymentTerms Pyt Terms
PaymentTermsName
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
NetPaymentDays NetPaymentDays Net Pmt Terms Period
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
DownPaymentType DownPaymentType Down Payment
DownPaymentPercentageOfTotAmt DownPaymentPercentageOfTotAmt Down Payment %
PPSDocumentCurrency PPSDocumentCurrency
DownPaymentAmount DownPaymentAmount Downpayment
DownPaymentDueDate DownPaymentDueDate Due Date for Down Payment
IncotermsClassification IncotermsClassification Incoterms
IncotermsClassificationNamelocalized
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
IncotermsVersion IncotermsVersion Inco. Version
IncotermsLocation1 IncotermsLocation1 Inco. Location1
PricingDocument PricingDocument Document Condition Number
PricingProcedure PricingProcedure Procedure
DocumentCurrency DocumentCurrency Document Currency
ExchangeRate ExchangeRate Exchange rate
ExchangeRateIsFixed ExchangeRateIsFixed Fixed Exch.Rate
PurgReleaseTimeTotalAmount PurgReleaseTimeTotalAmount
TaxReturnCountry TaxReturnCountry Reporting C/R
VATRegistrationCountry VATRegistrationCountry CtryRgnSlsTxNo.
PurgAggrgdProdCmplncSuplrSts PurgAggrgdProdCmplncSuplrSts Supplier Check Sts
PurgAggrgdProdMarketabilitySts PurgAggrgdProdMarketabilitySts Prod. Marktablty Sts
PurgAggrgdSftyDataSheetStatus PurgAggrgdSftyDataSheetStatus Sfty Data Sheet Sts
PurgProdCmplncTotDngrsGoodsSts PurgProdCmplncTotDngrsGoodsSts Dangerous Goods Sts
PurchaseOrderHasCommitmentItem PurchaseOrderHasCommitmentItem Purchase Order has Commitment Items
PPSIsDirectPurchaseOrder PPSIsDirectPurchaseOrder
POReworkCommentText POReworkCommentText Rework Comment
PPSPurchaseOrderDescription PPSPurchaseOrderDescription Description
PPSPurgDocClassfctnCode PPSPurgDocClassfctnCode Classification
PPSPurgDocClassfctnTxt _Classification PPSPurgDocClassfctnTxt
PPSPurOrdIsInPrep PPSPurOrdIsInPrep Boolean Variable (X = True, - = False, Space = Unknown)
PurchasingDocVersionReasonCode PurchasingDocVersionReasonCode Revision Reason
PurchasingDocVersionReasonText _VersionReasonValHelp PurchasingDocVersionReasonText Reason Description
PPSRevisionComment PPSRevisionComment Revision Comment
PurgDocChangeRequestStatus PurgDocChangeRequestStatus Change Request Stat.
PPSDocumentIsNovated PPSDocumentIsNovated
PurgDocIsChgVers PurgDocIsChgVers Checkbox
PurchasingDocumentVersion PurchasingDocumentVersion Version
PurchaseOrderStatus_H _PurchaseOrderStatus PurchasingDocumentStatus Short Description
PurchasingDocumentStatus _PurchaseOrderStatus PurchasingDocumentStatus Short Description
virtualApproverNamemm_approver_name
virtualManufacturerMaterialematn Material
virtualPlantwerks_d Plant
virtualMaterialGroupmatkl Material Group
char1 Purchase Order Legal Document
int4 Number Of Purchase Order Items
virtualUICT_VersionIsNotEnabledboolean
virtualUICT_HideExchangeRateboolean
virtualUICT_HideFixedExchangeRateboolean
virtualPurgDocHasActnRstrcnboole_d
virtualUICT_HideFedSystFacetboolean
virtualUICT_Hide_OpentextFacetboolean

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_PPS_DirectPurchaseOrderTP_2.
-- 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 C_PPS_DirectPurchaseOrderTP_2 AS
SELECT
  PurchaseOrder,
  ActivePurchasingDocument,
  PurchaseOrderType,
  _PurchaseOrderTypeText.PurchasingDocumentTypeName AS PurchaseOrderTypeName,
  CreatedByUser,
  CreationDate,
  PurchaseOrderDate,
  LastChangeDateTime,
  Language,
  _WorkflowDetail.PPSPurgDocApprovalStatusText AS PPSPurgDocApprovalStatusText,
  _WorkflowDetail.PPSPurgDocApprovalDate AS PPSPurOrderApprovalDate,
  _WorkflowDetail.PPSPurgDocApprovalStatus AS PPSPurgDocApprovalStatus,
  PurchaseOrderDeletionCode,
  IsDeleted,
  ReleaseIsNotCompleted,
  PurchasingCompletenessStatus,
  PurchasingProcessingStatus,
  PurgReleaseSequenceStatus,
  ReleaseCode,
  PurchasingReleaseStrategy,
  PurgReasonForDocCancellation,
  CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  PurchasingOrganization,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  PurchasingGroup,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  Supplier,
  _Supplier.SupplierName AS SupplierName,
  cast( _SupplierCurrency.PurchaseOrderCurrency as pps_e_po_source_currency preserving type ) AS PPSSupplierCurrency,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  SupplyingSupplier,
  SupplyingPlant,
  InvoicingParty,
  Customer,
  PurchaseContract,
  SupplierQuotationExternalID,
  QuotationSubmissionDate,
  ItemNumberIntervalForSubItems,
  PaymentTerms,
  _PaymentTerms._Text[ 1: Language = $session.system_language ].PaymentTermsName AS PaymentTermsName,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  DownPaymentType,
  DownPaymentPercentageOfTotAmt,
  PPSDocumentCurrency,
  DownPaymentAmount,
  DownPaymentDueDate,
  IncotermsClassification,
  _IncotermsClassificationText.IncotermsClassificationName : localized AS IncotermsClassificationNamelocalized,
  IncotermsTransferLocation,
  IncotermsVersion,
  IncotermsLocation1,
  PricingDocument,
  PricingProcedure,
  DocumentCurrency,
  ExchangeRate,
  ExchangeRateIsFixed,
  PurgReleaseTimeTotalAmount,
  TaxReturnCountry,
  VATRegistrationCountry,
  PurgAggrgdProdCmplncSuplrSts,
  PurgAggrgdProdMarketabilitySts,
  PurgAggrgdSftyDataSheetStatus,
  PurgProdCmplncTotDngrsGoodsSts,
  PurchaseOrderHasCommitmentItem,
  PPSIsDirectPurchaseOrder,
  POReworkCommentText,
  PPSPurchaseOrderDescription,
  PPSPurgDocClassfctnCode,
  _Classification.PPSPurgDocClassfctnTxt AS PPSPurgDocClassfctnTxt,
  PPSPurOrdIsInPrep,
  PurchasingDocVersionReasonCode,
  _VersionReasonValHelp.PurchasingDocVersionReasonText AS PurchasingDocVersionReasonText,
  PPSRevisionComment,
  PurgDocChangeRequestStatus,
  PPSDocumentIsNovated,
  PurgDocIsChgVers,
  PurchasingDocumentVersion,
  _PurchaseOrderStatus.PurchasingDocumentStatus AS PurchaseOrderStatus_H,
  _PurchaseOrderStatus.PurchasingDocumentStatus AS PurchasingDocumentStatus,
  virtual ApproverName : mm_approver_name AS virtualApproverNamemm_approver_name,
  virtual ManufacturerMaterial : ematn AS virtualManufacturerMaterialematn,
  virtual Plant : werks_d AS virtualPlantwerks_d,
  virtual MaterialGroup : matkl AS virtualMaterialGroupmatkl,
  virtual PurchaseOrderLegalDocument : abap.char( 1 ) AS char1,
  virtual NumberOfPurchaseOrderItems : abap.int4 AS int4,
  virtual UICT_VersionIsNotEnabled : boolean AS virtualUICT_VersionIsNotEnabledboolean,
  virtual UICT_HideExchangeRate : boolean AS virtualUICT_HideExchangeRateboolean,
  virtual UICT_HideFixedExchangeRate : boolean AS virtualUICT_HideFixedExchangeRateboolean,
  virtual PurgDocHasActnRstrcn : boole_d AS virtualPurgDocHasActnRstrcnboole_d,
  virtual UICT_HideFedSystFacet : boolean AS virtualUICT_HideFedSystFacetboolean,
  virtual UICT_Hide_OpentextFacet : boolean AS virtualUICT_Hide_OpentextFacetboolean
FROM R_PPS_PurchaseOrderTP
LEFT OUTER JOIN C_PurOrdRefDocPO AS _PurOrdRefDocPurchaseOrder ON _PurOrdRefDocPurchaseOrder.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN C_PurOrdRefDocIR AS _PurOrdRefDocInfoRecord ON _PurOrdRefDocInfoRecord.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN C_PurOrdRefDocPC AS _PurOrdRefDocPurchaseContract ON _PurOrdRefDocPurchaseContract.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON _UserContactCard.ContactCardType = 'User' AND _UserContactCard.ContactCardID = CreatedByUser AND _UserContactCard.ContactCardRole = 'Creator'  -- association [0..1]
LEFT OUTER JOIN C_MM_CompanyCodeValueHelp AS _CompanyCodeValueHelp ON _CompanyCodeValueHelp.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurgOrgValueHelp ON _PurgOrgValueHelp.PurchasingOrganization = PurchasingOrganization AND _PurgOrgValueHelp.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGrpValueHelp ON _PurchasingGrpValueHelp.PurchasingGroup = PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN I_PurgTotProdCmplncSuplrStsT AS _PurgTotProdCmplncSuplrStsT ON PurgAggrgdProdCmplncSuplrSts = _PurgTotProdCmplncSuplrStsT.PurgAggrgdProdCmplncSuplrSts AND _PurgTotProdCmplncSuplrStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgTotProdMarketabilityStsT AS _PurgTotProdMarketabilityStsT ON PurgAggrgdProdMarketabilitySts = _PurgTotProdMarketabilityStsT.PurgAggrgdProdMarketabilitySts AND _PurgTotProdMarketabilityStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgAggrgdSftyDataSheetStsT AS _PurgAggrgdSftyDataSheetStsT ON PurgAggrgdSftyDataSheetStatus = _PurgAggrgdSftyDataSheetStsT.PurgAggrgdSftyDataSheetStatus AND _PurgAggrgdSftyDataSheetStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgTotDangerousGoodsStsT AS _PurgTotDangerousGoodsStsT ON PurgProdCmplncTotDngrsGoodsSts = _PurgTotDangerousGoodsStsT.PurgProdCmplncTotDngrsGoodsSts AND _PurgTotDangerousGoodsStsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_POProdComplianceCriticality AS _POProdComplianceCriticality ON PurchaseOrder = _POProdComplianceCriticality.PurchaseOrder  -- association [0..1]
LEFT OUTER JOIN C_PurchaseOrderApprover AS _POApprover ON PurchaseOrder = _POApprover.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN I_PurgProcessingStatusText AS _PurOrdProcessingStatusTxt ON _PurOrdProcessingStatusTxt.PurchasingProcessingStatus = PurchasingProcessingStatus AND _PurOrdProcessingStatusTxt.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN C_PurchaseOrderStatus AS _POStatus ON PurchaseOrder = _POStatus.PurchaseOrder  -- association [1..1]
LEFT OUTER JOIN C_PPS_SupplierDetail AS _SupplierDetail ON Supplier = _SupplierDetail.Supplier  -- association [1..1]
LEFT OUTER JOIN C_PPS_PaymentTerm AS _PaymentTerm ON PaymentTerms = _PaymentTerm.PaymentTerms  -- association [0..1]
LEFT OUTER JOIN C_PPS_DrctPOVersionHistory_2 AS _PurOrdVersionHistory ON ActivePurchasingDocument = _PurOrdVersionHistory.ActivePurchasingDocument  -- association [1..*]
LEFT OUTER JOIN C_PPS_PurOrdDocumentTotal_2 AS _DocumentTotal ON ActivePurchasingDocument = _DocumentTotal.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN C_PPS_PurOrdDocTotalOptional_2 AS _OptionalDocumentTotal ON PurchaseOrder = _OptionalDocumentTotal.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN C_PPS_PurOrdItmDocTot AS _ItemDocumentTotal ON ActivePurchasingDocument = _ItemDocumentTotal.PurchaseOrder  -- association [0..*]
LEFT OUTER JOIN C_PPS_PurgDocBudgetOverviewC AS _PurgDocBudgetOverview ON PurchaseOrder = _PurgDocBudgetOverview.ReferenceDocument  -- association [0..*]
LEFT OUTER JOIN C_PPS_PricingArrangementTypeVH AS _PricingArrangementType ON PPSPricingArrangementType = _PricingArrangementType.PPSPricingArrangementType  -- association [1..1]
LEFT OUTER JOIN C_LegalTransactionIntegFacet AS _LegalTransaction ON _LegalTransaction.LglCntntMLinkdObj = PurchaseOrder AND _LegalTransaction.LglCntntMIntegrationLink = 'POR'  -- association [0..*]
LEFT OUTER JOIN C_LegalDocumentIntegFacet AS _LegalDocuments ON _LegalDocuments.LglCntntMLinkdObj = PurchaseOrder AND _LegalDocuments.LglCntntMIntegrationLink = 'POR'  -- association [0..*]
;