C_PPS_PurOrdAcctAssignmentTP_2
Purchase Order Account Assignment
C_PPS_PurOrdAcctAssignmentTP_2 is a Consumption CDS View that provides data about "Purchase Order Account Assignment" in SAP S/4HANA. It reads from 1 data source (R_PPS_PurOrdAcctAssignmentTP) and exposes 89 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PPS_PurOrdAcctAssignmentTP | R_PPS_PurOrdAcctAssignmentTP | projection |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MM_SalesOrderItemVH | _SalesOrderItemValueHelp | $projection.SalesOrderItem = _SalesOrderItemValueHelp.SalesOrderItem and $projection.SalesOrder = _SalesOrderItemValueHelp.SalesOrder |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Purchase Order Account Assignment | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.extensibility.extensible | true | view |
Fields (89)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| KEY | AccountAssignmentNumber | AccountAssignmentNumber | Account Assgmt No. | |
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | ||
| AccountAssignmentForEdit | AccountAssignmentForEdit | Account Assgmt No. | ||
| CostCenter | CostCenter | Cost Center | ||
| AcctAssignmentCategoryName | _AccountAssignmentCatText | AcctAssignmentCategoryName | Description | |
| MasterFixedAsset | MasterFixedAsset | Fixed Asset | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| ProjectNetworkDescription | ||||
| NetworkActivity | Operation/Activity | |||
| NetworkActivityDescription | _NetworkActivityDescription | OperationText | Description | |
| PurchaseOrderQuantityUnit | _PurchaseOrderItem | PurchaseOrderQuantityUnit | Order Unit | |
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| Quantity | Quantity | Value | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| PurgDocNetAmount | PurgDocNetAmount | Net Value | ||
| PPSMultiAcctAssgmtDistrPct | PPSMultiAcctAssgmtDistrPct | |||
| IsDeleted | IsDeleted | TRUE | ||
| GLAccountName | ||||
| GLAccount | GLAccount | General Ledger | ||
| BusinessAreaName | ||||
| BusinessArea | BusinessArea | Business Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | SOrder schedule | ||
| FixedAssetDescription | _FixedAsset | FixedAssetDescription | Description | |
| FixedAsset | FixedAsset | Sub-number | ||
| OrderID | OrderID | Order ID | ||
| OrderDescription | ||||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| ControllingAreaName | _ControllingArea | ControllingAreaName | Long Text | |
| ControllingArea | ControllingArea | Controlling Area | ||
| CostObject | CostObject | Cost Object | ||
| ProfitabilitySegment | ProfitabilitySegment | Profitability Segment | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitCenterName | ||||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| ProjectNetworkInternalID | ProjectNetworkInternalID | Plan No.f.Oper. | ||
| FinancialManagementArea | FinancialManagementArea | FM Area | ||
| FundsCenter | Funds Center | |||
| FundsCenterName | ||||
| FundsCenterDescription | ||||
| Fund | Fund | Sender Fund | ||
| FundName | ||||
| FundDescription | ||||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| FunctionalAreaNamelocalized | ||||
| GoodsRecipientName | GoodsRecipientName | Recipient Name | ||
| IsFinallyInvoiced | IsFinallyInvoiced | Final Invoice | ||
| NetworkActivityInternalID | NetworkActivityInternalID | Counter | ||
| PartnerAccountNumber | PartnerAccountNumber | Partner | ||
| JointVentureRecoveryCode | JointVentureRecoveryCode | Recovery Ind. | ||
| SettlementReferenceDate | SettlementReferenceDate | Reference date | ||
| OrderInternalID | OrderInternalID | Plan No.f.Oper. | ||
| OrderIntBillOfOperationsItem | OrderIntBillOfOperationsItem | Order Internal Bill of Operations Item | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| BusinessProcessName | ||||
| BusinessProcess | BusinessProcess | Business Process | ||
| GrantID | GrantID | Sender Grant | ||
| GrantName | ||||
| BudgetPeriod | BudgetPeriod | Budget Period | ||
| BudgetPeriodNamelocalized | ||||
| USFedGovernmentUUID | USFedGovernmentUUID | US Govt | ||
| EarmarkedFundsDocument | EarmarkedFundsDocument | Earmarked Funds | ||
| EarmarkedFundsDocumentItem | EarmarkedFundsDocumentItem | Document Item | ||
| ValidityDate | ValidityDate | Valid On | ||
| ServiceDocumentType | Transaction Type | |||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentItem | Service Document | |||
| CreationDate | CreationDate | Time Stamp | ||
| IsAcctLineFinal | IsAcctLineFinal | Final AA | ||
| AcctLineFinalReason | AcctLineFinalReason | Final AA Reason | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | ||||
| PPSAccountAssignmentIsUnfunded | PPSAccountAssignmentIsUnfunded | Acc. Asg is Unfunded | ||
| WBSDescription | _WBSElement | WBSDescription | WBS Element Name | |
| PPSBdgtPeriodValdtyEndDateCat | PPSBdgtPeriodValdtyEndDateCat | |||
| PPSBdgtPerdValdtyEndDteCatName | _BdgtPerdValdtyEndDteCat | PPSBdgtPerdValdtyEndDteCatName | ||
| ValidityEndDate | _BudgetPeriodStdVH | ValidityEndDate | ValidTo | |
| virtualValidityEndDateIsHdnboolean | ||||
| CostCenterDescription | ||||
| CostCtrActivityTypeDesc | ||||
| char60 | ||||
| AccountAssignmentCategory | Acct Assgmt Cat |
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_PurOrdAcctAssignmentTP_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_PurOrdAcctAssignmentTP_2 AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
AccountAssignmentNumber,
PurchasingDocument,
PurchasingDocumentItem,
AccountAssignmentForEdit,
CostCenter,
_AccountAssignmentCatText.AcctAssignmentCategoryName AS AcctAssignmentCategoryName,
MasterFixedAsset,
ProjectNetwork,
_ProjectNetwork[1:ProjectNetwork = ProjectNetwork].ProjectNetworkDescription AS ProjectNetworkDescription,
cast ( NetworkActivity as pps_e_network_activity preserving type ) AS NetworkActivity,
_NetworkActivityDescription.OperationText AS NetworkActivityDescription,
_PurchaseOrderItem.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
OrderQuantityUnit,
Quantity,
DocumentCurrency,
PurgDocNetAmount,
PPSMultiAcctAssgmtDistrPct,
IsDeleted,
_GLAccountText[1: Language = $session.system_language].GLAccountName AS GLAccountName,
GLAccount,
_BusinessAreaText[1: Language = $session.system_language].BusinessAreaName AS BusinessAreaName,
BusinessArea,
SalesOrder,
SalesOrderItem,
SalesOrderScheduleLine,
_FixedAsset.FixedAssetDescription AS FixedAssetDescription,
FixedAsset,
OrderID,
_OrderId[1:OrderID = OrderID].OrderDescription AS OrderDescription,
UnloadingPointName,
_ControllingArea.ControllingAreaName AS ControllingAreaName,
ControllingArea,
CostObject,
ProfitabilitySegment,
ProfitCenter,
_ProfitCenterText[1: Language = $session.system_language ].ProfitCenterName AS ProfitCenterName,
WBSElementInternalID,
WBSElementExternalID,
ProjectNetworkInternalID,
FinancialManagementArea,
cast ( FundsCenter as pps_e_funds_center preserving type ) AS FundsCenter,
_FundsCenter[1:FinancialManagementArea = FinancialManagementArea]._Text[1: FinancialManagementArea = FinancialManagementArea and Language = $session.system_language].FundsCenterName AS FundsCenterName,
_FundsCenter[1:FinancialManagementArea = FinancialManagementArea]._Text[1: FinancialManagementArea = FinancialManagementArea and Language = $session.system_language].FundsCenterDescription AS FundsCenterDescription,
Fund,
_Fund[1:FinancialManagementArea = FinancialManagementArea]._Text[1: Language = $session.system_language].FundName AS FundName,
_Fund[1:FinancialManagementArea = FinancialManagementArea]._Text[1: Language = $session.system_language].FundDescription AS FundDescription,
FunctionalArea,
_FunctionalAreaText.FunctionalAreaName : localized AS FunctionalAreaNamelocalized,
GoodsRecipientName,
IsFinallyInvoiced,
NetworkActivityInternalID,
PartnerAccountNumber,
JointVentureRecoveryCode,
SettlementReferenceDate,
OrderInternalID,
OrderIntBillOfOperationsItem,
TaxCode,
TaxJurisdiction,
CostCtrActivityType,
_BusinessProcessText[1: Language = $session.system_language ].BusinessProcessName AS BusinessProcessName,
BusinessProcess,
GrantID,
_GrantId._Text[1:Language = $session.system_language].GrantName AS GrantName,
BudgetPeriod,
_BudgetPeriodStdVH._Text.BudgetPeriodName : localized AS BudgetPeriodNamelocalized,
USFedGovernmentUUID,
EarmarkedFundsDocument,
EarmarkedFundsDocumentItem,
ValidityDate,
cast( ServiceDocumentType as pps_e_service_doc_type preserving type ) AS ServiceDocumentType,
ServiceDocument,
cast( ServiceDocumentItem as pps_e_service_document_item preserving type ) AS ServiceDocumentItem,
CreationDate,
IsAcctLineFinal,
AcctLineFinalReason,
CompanyCode,
_PurchaseOrderItem._CompanyCode.CompanyCodeName AS CompanyCodeName,
PPSAccountAssignmentIsUnfunded,
_WBSElement.WBSDescription AS WBSDescription,
PPSBdgtPeriodValdtyEndDateCat,
_BdgtPerdValdtyEndDteCat.PPSBdgtPerdValdtyEndDteCatName AS PPSBdgtPerdValdtyEndDteCatName,
_BudgetPeriodStdVH.ValidityEndDate AS ValidityEndDate,
virtual ValidityEndDateIsHdn : boolean AS virtualValidityEndDateIsHdnboolean,
cast( _CostCenterText[1: Language = $session.system_language ].CostCenterDescription as pps_e_cost_center_desc preserving type ) AS CostCenterDescription,
_CostCenterActivityTypeText[1: Language = $session.system_language].CostCtrActivityTypeDesc AS CostCtrActivityTypeDesc,
virtual LeadingObjectDescription : abap.char( 60 ) AS char60,
cast( AccountAssignmentCategory as pps_e_accnt_assignment_cat preserving type ) AS AccountAssignmentCategory
FROM R_PPS_PurOrdAcctAssignmentTP
LEFT OUTER JOIN I_MM_SalesOrderItemVH AS _SalesOrderItemValueHelp ON SalesOrderItem = _SalesOrderItemValueHelp.SalesOrderItem AND SalesOrder = _SalesOrderItemValueHelp.SalesOrder -- 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