C_CFinRpldPurchaseOrder

DDL: C_CFINRPLDPURCHASEORDER SQL: CCFINRPOHEADER Type: view CONSUMPTION Package: FINS_CFIN_ACC_VIEW

CFin Rpld Purchase Order

C_CFinRpldPurchaseOrder is a Consumption CDS View that provides data about "CFin Rpld Purchase Order" in SAP S/4HANA. It reads from 1 data source (I_CFinRpldPurchasingDocument) and exposes 38 fields with key fields SenderLogicalSystem, CFinReplicatedPurchaseOrder. It has 6 associations to related views. It is exposed through 1 OData service (UI_CFINRPLDPURCHASEORDER). Part of development package FINS_CFIN_ACC_VIEW.

Data Sources (1)

SourceAliasJoin Type
I_CFinRpldPurchasingDocument I_CFinRpldPurchasingDocument from

Associations (6)

CardinalityTargetAliasCondition
[1..*] C_CFinRpldPurchaseOrderItem _CFinRpldPurchaseOrderItem _CFinRpldPurchaseOrderItem.SenderLogicalSystem = $projection.SenderLogicalSystem and _CFinRpldPurchaseOrderItem.CFinReplicatedPurchaseOrder = $projection.CFinReplicatedPurchaseOrder
[1..*] C_CFinRpldPurchaseOrderDetails _CFinRpldPurchaseOrderDetails _CFinRpldPurchaseOrderDetails.SenderLogicalSystem = $projection.SenderLogicalSystem and _CFinRpldPurchaseOrderDetails.CFinReplicatedPurchaseOrder = $projection.CFinReplicatedPurchaseOrder
[0..*] C_CFinRpldPurOrdAcctAssgmt _CFinRpldPurOrdAcctAssgmt _CFinRpldPurOrdAcctAssgmt.SenderLogicalSystem = $projection.SenderLogicalSystem and _CFinRpldPurOrdAcctAssgmt.CFinReplicatedPurchaseOrder = $projection.CFinReplicatedPurchaseOrder
[0..1] C_CFinPurchaseOrderTypeVH _CFinPurchaseOrderTypeVH _CFinPurchaseOrderTypeVH.PurchaseOrderType = $projection.PurchasingDocumentType ------------------------------------------------------------------------------------------- -- Text Associations -- -------------------------------------------------------------------------------------------
[0..1] I_CountryText _CountryText _CountryText.Country = $projection.TaxReturnCountry and _CountryText.Language = $session.system_language
[1..1] E_CFinRpldPurchasingDocument _Extension $projection.CFinReplicatedPurchaseOrder = _Extension.CFinRpldPurchasingDocument and $projection.SenderLogicalSystem = _Extension.SourceSystemLogicalSystem

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CCFINRPOHEADER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label CFin Rpld Purchase Order view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.representativeKey CFinReplicatedPurchaseOrder view
UI.headerInfo.typeName Accounting View of Purchase Order view
UI.headerInfo.title.value CFinReplicatedPurchaseOrder view
UI.headerInfo.description.value PurchasingDocumentTypeName view
Consumption.valueHelpDefault.fetchValues #AUTOMATICALLY_WHEN_DISPLAYED view

OData Services (1)

ServiceBindingVersionContractRelease
UI_CFINRPLDPURCHASEORDER UI_CFINRPLDPURCHASEORDER V2 C1 NOT_RELEASED

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY SenderLogicalSystem SenderLogicalSystem Sender Logical System
KEY CFinReplicatedPurchaseOrder Purchasing Doc.
PurchasingDocumentOrderDate PurchasingDocumentOrderDate PO Date
PurchasingDocumentType PurchasingDocumentType RFQ Type
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
CompanyCode CompanyCode Receiver Company Code
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
PurchasingDocumentVersion PurchasingDocumentVersion Purchase Order Version Number
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Business Purpose Completed
ReleaseIsNotCompleted ReleaseIsNotCompleted Subject to Release
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
DocumentCurrency DocumentCurrency Document Currency
ExchangeRate ExchangeRate Exchange rate
TaxReturnCountry TaxReturnCountry Reporting Country/Region
SupplyingPlant SupplyingPlant Supplying Plant
Supplier Supplier Supplier
InvoicingParty InvoicingParty Supplier
PurchasingCompletenessStatus PurchasingCompletenessStatus Purchase Order Not Complete
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode Deletion Indicator
PurchasingDocumentIsAged PurchasingDocumentIsAged Purchase Order Aged
PurchasingDocumentTypeName
LogicalSystemName
_CFinRpldPurchaseOrderItem _CFinRpldPurchaseOrderItem
_CFinRpldPurchaseOrderDetails _CFinRpldPurchaseOrderDetails
_CFinRpldPurOrdAcctAssgmt _CFinRpldPurOrdAcctAssgmt
_CFinPurchaseOrderTypeVH _CFinPurchaseOrderTypeVH
_CompanyCode _CompanyCode
_PurchasingGroup _PurchasingGroup
_DocumentCurrency _DocumentCurrency
_Supplier _Supplier
_PurchasingOrganization _PurchasingOrganization
_InvoicingParty _InvoicingParty
_CountryText _CountryText
_SupplyingPlant _SupplyingPlant
_LogicalSystem _LogicalSystem

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_CFinRpldPurchaseOrder.
-- 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: CCFINRPOHEADER

CREATE VIEW C_CFinRpldPurchaseOrder AS
SELECT
  SenderLogicalSystem,
  cast( CFinRpldPurchasingDocument as fins_cfin_av_rpld_purord preserving type ) AS CFinReplicatedPurchaseOrder,
  PurchasingDocumentOrderDate,
  PurchasingDocumentType,
  CreationDate,
  CreatedByUser,
  CompanyCode,
  ValidityStartDate,
  ValidityEndDate,
  PurchasingDocumentVersion,
  IsEndOfPurposeBlocked,
  ReleaseIsNotCompleted,
  PurchasingOrganization,
  PurchasingGroup,
  DocumentCurrency,
  ExchangeRate,
  TaxReturnCountry,
  SupplyingPlant,
  Supplier,
  InvoicingParty,
  PurchasingCompletenessStatus,
  PurchasingDocumentDeletionCode,
  PurchasingDocumentIsAged,
  _PurchasingDocumentType._Text[1: Language = $session.system_language].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  _LogicalSystem._Text[1: Language = $session.system_language].LogicalSystemName AS LogicalSystemName
FROM I_CFinRpldPurchasingDocument
LEFT OUTER JOIN C_CFinRpldPurchaseOrderItem AS _CFinRpldPurchaseOrderItem ON _CFinRpldPurchaseOrderItem.SenderLogicalSystem = SenderLogicalSystem AND _CFinRpldPurchaseOrderItem.CFinReplicatedPurchaseOrder = CFinReplicatedPurchaseOrder  -- association [1..*]
LEFT OUTER JOIN C_CFinRpldPurchaseOrderDetails AS _CFinRpldPurchaseOrderDetails ON _CFinRpldPurchaseOrderDetails.SenderLogicalSystem = SenderLogicalSystem AND _CFinRpldPurchaseOrderDetails.CFinReplicatedPurchaseOrder = CFinReplicatedPurchaseOrder  -- association [1..*]
LEFT OUTER JOIN C_CFinRpldPurOrdAcctAssgmt AS _CFinRpldPurOrdAcctAssgmt ON _CFinRpldPurOrdAcctAssgmt.SenderLogicalSystem = SenderLogicalSystem AND _CFinRpldPurOrdAcctAssgmt.CFinReplicatedPurchaseOrder = CFinReplicatedPurchaseOrder  -- association [0..*]
LEFT OUTER JOIN C_CFinPurchaseOrderTypeVH AS _CFinPurchaseOrderTypeVH ON _CFinPurchaseOrderTypeVH.PurchaseOrderType = PurchasingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _CountryText ON _CountryText.Country = TaxReturnCountry AND _CountryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN E_CFinRpldPurchasingDocument AS _Extension ON CFinReplicatedPurchaseOrder = _Extension.CFinRpldPurchasingDocument AND SenderLogicalSystem = _Extension.SourceSystemLogicalSystem  -- association [1..1]
;