C_Purctraccassign
Account assignment C view
C_Purctraccassign is a Consumption CDS View that provides data about "Account assignment C view" in SAP S/4HANA. It reads from 1 data source (I_PurCtrAccountWD) and exposes 63 fields with key fields PurchaseContractItem, AccountAssignment, PurchaseContract. It has 12 associations to related views. Part of development package ODATA_MM_OA_MAINTAIN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurCtrAccountWD | Document | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ContractMaintain | _PurchaseContractWD | $projection.PurchaseContract = _PurchaseContractWD.PurchaseContract |
| [1..1] | C_ContractMaintainItem | _PurchaseContractItemWD | $projection.PurchaseContractItem = _PurchaseContractItemWD.PurchaseContractItem and $projection.PurchaseContract = _PurchaseContractItemWD.PurchaseContract |
| [1..1] | I_InternalOrder | _InternalOrder | $projection.OrderID = _InternalOrder.InternalOrder |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.companycode = _CompanyCode.CompanyCode |
| [0..1] | I_MM_InternalOrderVH | _MM_InternalOrderVH | $projection.OrderID = _MM_InternalOrderVH.InternalOrder |
| [0..*] | I_MM_ProfitCenterValueHelp | _MM_ProfitCenterValueHelp | $projection.ControllingArea = _MM_ProfitCenterValueHelp.ControllingArea and $projection.ProfitCenter = _MM_ProfitCenterValueHelp.ProfitCenter |
| [0..1] | I_MM_ProjectNetworkVH | _MM_ProjectNetworkVH | $projection.ProjectNetwork = _MM_ProjectNetworkVH.ProjectNetwork |
| [0..1] | I_MM_WBSElementValueHelp | _MM_WBSElementValueHelp | $projection.WBSElementInternalID = _MM_WBSElementValueHelp.WBSElementInternalID |
| [0..1] | I_WBSElementByInternalKey | _WBSElementByInternalKeyVH | $projection.WBSElementInternalID = _WBSElementByInternalKeyVH.WBSElementInternalID |
| [0..*] | I_MM_CommitmentItemVH | _MM_CommitmentItemVH | $projection.CommitmentItem = _MM_CommitmentItemVH.CommitmentItem |
| [0..*] | I_FundStdVH | _FundStdVH | $projection.Fund = _FundStdVH.Fund |
| [0..1] | I_BudgetPeriodStdVH | _BudgetPeriodStdVH | _BudgetPeriodStdVH.BudgetPeriod = $projection.BudgetPeriod |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURCTRACTASSIGN | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Account assignment C view | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| UI.headerInfo.typeName | Account Assignment | view | |
| UI.headerInfo.typeNamePlural | Account Assignments | view | |
| UI.headerInfo.title.value | AccountAssignment | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContractItem | I_PurCtrAccountWD | PurchaseContractItem | Purchasing Doc. Item No. |
| KEY | AccountAssignment | I_PurCtrAccountWD | AccountAssignment | Account Assignment No. |
| KEY | PurchaseContract | I_PurCtrAccountWD | PurchaseContract | Purchasing Doc. |
| PurchaseContractForEdit | I_PurCtrAccountWD | PurchaseContractForEdit | Purchase Contract | |
| PurchaseContractItemForEdit | I_PurCtrAccountWD | PurchaseContractItemForEdit | Item | |
| CostCenter | I_PurCtrAccountWD | CostCenter | Cost Center | |
| MasterFixedAsset | I_PurCtrAccountWD | MasterFixedAsset | Fixed Asset | |
| ProjectNetwork | I_PurCtrAccountWD | ProjectNetwork | Order | |
| Quantity | I_PurCtrAccountWD | Quantity | Value | |
| MultipleAcctAssgmtDistrPercent | I_PurCtrAccountWD | MultipleAcctAssgmtDistrPercent | Distribution | |
| PurgDocNetAmount | I_PurCtrAccountWD | PurgDocNetAmount | Net Value | |
| IsDeleted | I_PurCtrAccountWD | IsDeleted | TRUE | |
| GLAccount | I_PurCtrAccountWD | GLAccount | General Ledger | |
| BusinessArea | I_PurCtrAccountWD | BusinessArea | Business Area | |
| SalesOrder | I_PurCtrAccountWD | SalesOrder | SD Document | |
| SalesOrderItem | I_PurCtrAccountWD | SalesOrderItem | Sales Doc. Item No. | |
| SalesOrderScheduleLine | I_PurCtrAccountWD | SalesOrderScheduleLine | SOrder schedule | |
| FixedAsset | I_PurCtrAccountWD | FixedAsset | Sub-number | |
| OrderID | I_PurCtrAccountWD | OrderID | Order ID | |
| UnloadingPointName | I_PurCtrAccountWD | UnloadingPointName | Unloading Point Name | |
| ControllingArea | I_PurCtrAccountWD | ControllingArea | Controlling Area | |
| CostObject | I_PurCtrAccountWD | CostObject | Cost Object | |
| ProfitabilitySegment | I_PurCtrAccountWD | ProfitabilitySegment | Profitability Segment | |
| ProfitCenter | I_PurCtrAccountWD | ProfitCenter | Profit Center | |
| WBSElementInternalID | I_PurCtrAccountWD | WBSElementInternalID | WBS Internal ID | |
| WBSElement | I_PurCtrAccountWD | WBSElementExternalID | WBS Element External ID | |
| WBSDescription | I_PurCtrAccountWD | WBSDescription | WBS Element Name | |
| ProjectNetworkInternalID | I_PurCtrAccountWD | ProjectNetworkInternalID | Opertn Task List No. | |
| CommitmentItem | I_PurCtrAccountWD | CommitmentItem | Commitment Item | |
| Fund | I_PurCtrAccountWD | Fund | Sender Fund | |
| FunctionalArea | I_PurCtrAccountWD | FunctionalArea | Sendr Fctl Area | |
| GoodsRecipientName | I_PurCtrAccountWD | GoodsRecipientName | Recipient Name | |
| IsFinallyInvoiced | I_PurCtrAccountWD | IsFinallyInvoiced | Final Invoice | |
| RealEstateObject | I_PurCtrAccountWD | RealEstateObject | Real Estate Key | |
| NetworkActivityInternalID | I_PurCtrAccountWD | NetworkActivityInternalID | Internal Counter | |
| PartnerAccountNumber | I_PurCtrAccountWD | PartnerAccountNumber | Partner | |
| JointVentureRecoveryCode | I_PurCtrAccountWD | JointVentureRecoveryCode | Recovery Ind. | |
| SettlementReferenceDate | I_PurCtrAccountWD | SettlementReferenceDate | Reference Date | |
| OrderInternalID | I_PurCtrAccountWD | OrderInternalID | Plan No.f.Oper. | |
| OrderIntBillOfOperationsItem | General Counter | |||
| TaxCode | I_PurCtrAccountWD | TaxCode | Tax Code | |
| TaxJurisdiction | I_PurCtrAccountWD | TaxJurisdiction | Tax Jurisdiction | |
| NonDeductibleInputTaxAmount | I_PurCtrAccountWD | NonDeductibleInputTaxAmount | Non-deductible | |
| CostCtrActivityType | I_PurCtrAccountWD | CostCtrActivityType | Activity Type | |
| GrantID | I_PurCtrAccountWD | GrantID | Sender Grant | |
| BudgetPeriod | I_PurCtrAccountWD | BudgetPeriod | Budget Period | |
| EarmarkedFundsDocument | I_PurCtrAccountWD | EarmarkedFundsDocument | Earmarked Funds | |
| ValidityDate | I_PurCtrAccountWD | ValidityDate | Valid On | |
| CompanyCode | _PurchaseContractWD | CompanyCode | Receiver Company Code | |
| DocumentCurrency | I_PurCtrAccountWD | DocumentCurrency | Document Currency | |
| OrderQuantityUnit | I_PurCtrAccountWD | OrderQuantityUnit | Order Unit | |
| _PurchaseContractWD | _PurchaseContractWD | |||
| _PurchaseContractItemWD | _PurchaseContractItemWD | |||
| _MM_InternalOrderVH | _MM_InternalOrderVH | |||
| _MM_ProfitCenterValueHelp | _MM_ProfitCenterValueHelp | |||
| _MM_ProjectNetworkVH | _MM_ProjectNetworkVH | |||
| _MM_WBSElementValueHelp | _MM_WBSElementValueHelp | |||
| _WBSElementByInternalKey | _WBSElementByInternalKey | |||
| _WBSElementByInternalKeyVH | _WBSElementByInternalKeyVH | |||
| _MM_CommitmentItemVH | _MM_CommitmentItemVH | |||
| _BudgetPeriodStdVH | _BudgetPeriodStdVH | |||
| _FundStdVH | _FundStdVH | |||
| _CompanyCode | _CompanyCode |
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_Purctraccassign.
-- 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: CPURCTRACTASSIGN
CREATE VIEW C_Purctraccassign AS
SELECT
Document.PurchaseContractItem AS PurchaseContractItem,
Document.AccountAssignment AS AccountAssignment,
Document.PurchaseContract AS PurchaseContract,
Document.PurchaseContractForEdit AS PurchaseContractForEdit,
Document.PurchaseContractItemForEdit AS PurchaseContractItemForEdit,
Document.CostCenter AS CostCenter,
Document.MasterFixedAsset AS MasterFixedAsset,
Document.ProjectNetwork AS ProjectNetwork,
Document.Quantity AS Quantity,
Document.MultipleAcctAssgmtDistrPercent AS MultipleAcctAssgmtDistrPercent,
Document.PurgDocNetAmount AS PurgDocNetAmount,
Document.IsDeleted AS IsDeleted,
Document.GLAccount AS GLAccount,
Document.BusinessArea AS BusinessArea,
Document.SalesOrder AS SalesOrder,
Document.SalesOrderItem AS SalesOrderItem,
Document.SalesOrderScheduleLine AS SalesOrderScheduleLine,
Document.FixedAsset AS FixedAsset,
Document.OrderID AS OrderID,
Document.UnloadingPointName AS UnloadingPointName,
Document.ControllingArea AS ControllingArea,
Document.CostObject AS CostObject,
Document.ProfitabilitySegment AS ProfitabilitySegment,
Document.ProfitCenter AS ProfitCenter,
Document.WBSElementInternalID AS WBSElementInternalID,
Document.WBSElementExternalID AS WBSElement,
Document.WBSDescription AS WBSDescription,
Document.ProjectNetworkInternalID AS ProjectNetworkInternalID,
Document.CommitmentItem AS CommitmentItem,
Document.Fund AS Fund,
Document.FunctionalArea AS FunctionalArea,
Document.GoodsRecipientName AS GoodsRecipientName,
Document.IsFinallyInvoiced AS IsFinallyInvoiced,
Document.RealEstateObject AS RealEstateObject,
Document.NetworkActivityInternalID AS NetworkActivityInternalID,
Document.PartnerAccountNumber AS PartnerAccountNumber,
Document.JointVentureRecoveryCode AS JointVentureRecoveryCode,
Document.SettlementReferenceDate AS SettlementReferenceDate,
Document.OrderInternalID AS OrderInternalID,
cast (Document.OrderIntBillOfOperationsItem as mm_oa_co_aplzl) AS OrderIntBillOfOperationsItem,
Document.TaxCode AS TaxCode,
Document.TaxJurisdiction AS TaxJurisdiction,
Document.NonDeductibleInputTaxAmount AS NonDeductibleInputTaxAmount,
Document.CostCtrActivityType AS CostCtrActivityType,
Document.GrantID AS GrantID,
Document.BudgetPeriod AS BudgetPeriod,
Document.EarmarkedFundsDocument AS EarmarkedFundsDocument,
Document.ValidityDate AS ValidityDate,
_PurchaseContractWD.CompanyCode AS CompanyCode,
Document.DocumentCurrency AS DocumentCurrency,
Document.OrderQuantityUnit AS OrderQuantityUnit
FROM I_PurCtrAccountWD AS Document
LEFT OUTER JOIN C_ContractMaintain AS _PurchaseContractWD ON PurchaseContract = _PurchaseContractWD.PurchaseContract -- association [1..1]
LEFT OUTER JOIN C_ContractMaintainItem AS _PurchaseContractItemWD ON PurchaseContractItem = _PurchaseContractItemWD.PurchaseContractItem AND PurchaseContract = _PurchaseContractItemWD.PurchaseContract -- association [1..1]
LEFT OUTER JOIN I_InternalOrder AS _InternalOrder ON OrderID = _InternalOrder.InternalOrder -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON companycode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_MM_InternalOrderVH AS _MM_InternalOrderVH ON OrderID = _MM_InternalOrderVH.InternalOrder -- association [0..1]
LEFT OUTER JOIN I_MM_ProfitCenterValueHelp AS _MM_ProfitCenterValueHelp ON ControllingArea = _MM_ProfitCenterValueHelp.ControllingArea AND ProfitCenter = _MM_ProfitCenterValueHelp.ProfitCenter -- association [0..*]
LEFT OUTER JOIN I_MM_ProjectNetworkVH AS _MM_ProjectNetworkVH ON ProjectNetwork = _MM_ProjectNetworkVH.ProjectNetwork -- association [0..1]
LEFT OUTER JOIN I_MM_WBSElementValueHelp AS _MM_WBSElementValueHelp ON WBSElementInternalID = _MM_WBSElementValueHelp.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElementByInternalKeyVH ON WBSElementInternalID = _WBSElementByInternalKeyVH.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_MM_CommitmentItemVH AS _MM_CommitmentItemVH ON CommitmentItem = _MM_CommitmentItemVH.CommitmentItem -- association [0..*]
LEFT OUTER JOIN I_FundStdVH AS _FundStdVH ON Fund = _FundStdVH.Fund -- association [0..*]
LEFT OUTER JOIN I_BudgetPeriodStdVH AS _BudgetPeriodStdVH ON _BudgetPeriodStdVH.BudgetPeriod = BudgetPeriod -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA