A_PurchaseReqnAcctAssgmt_2
Account Assignment
A_PurchaseReqnAcctAssgmt_2 is a Consumption CDS View that provides data about "Account Assignment" in SAP S/4HANA. It reads from 1 data source (R_PurchaseReqnAcctAssgmtTP) and exposes 51 fields with key fields PurchaseRequisition, PurchaseRequisitionItem, PurchaseReqnAcctAssgmtNumber.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PurchaseReqnAcctAssgmtTP | R_PurchaseReqnAcctAssgmtTP | projection |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Account Assignment | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (51)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| KEY | PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | |
| KEY | PurchaseReqnAcctAssgmtNumber | PurchaseReqnAcctAssgmtNumber | ||
| CostCenter | CostCenter | Cost Center | ||
| MasterFixedAsset | MasterFixedAsset | Fixed Asset | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| BaseUnitISOCode | _UnitOfMeasure | UnitOfMeasureISOCode | ||
| Quantity | Quantity | Value | ||
| MultipleAcctAssgmtDistrPercent | MultipleAcctAssgmtDistrPercent | Distribution | ||
| PurReqnItemCurrency | PurReqnItemCurrency | Currency | ||
| PurReqnNetAmount | PurReqnNetAmount | Net Value | ||
| IsDeleted | IsDeleted | TRUE | ||
| GLAccount | GLAccount | General Ledger | ||
| BusinessArea | BusinessArea | Business Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | SOrder schedule | ||
| FixedAsset | FixedAsset | Sub-number | ||
| OrderID | OrderID | Order ID | ||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostObject | CostObject | Cost Object | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProjectNetworkInternalID | ProjectNetworkInternalID | Plan No.f.Oper. | ||
| CommitmentItem | CommitmentItem | Commitment item | ||
| FundsCenter | FundsCenter | Funds Center | ||
| Fund | Fund | Sender Fund | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| CreationDate | CreationDate | Time Stamp | ||
| GoodsRecipientName | GoodsRecipientName | Recipient Name | ||
| REInternalFinNumber | REInternalFinNumber | Real Estate Key | ||
| 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 | ||
| EarmarkedFundsDocument | EarmarkedFundsDocument | Earmarked Funds | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| BusinessProcess | BusinessProcess | Business Process | ||
| GrantID | GrantID | Sender Grant | ||
| ValidityDate | ValidityDate | Valid On | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| PurchaseRequisitionType | PurchaseRequisitionType | Order Type | ||
| Plant | Plant | Valuation Area | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| virtualNetworkActivityps_s4_vornr |
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 A_PurchaseReqnAcctAssgmt_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 A_PurchaseReqnAcctAssgmt_2 AS
SELECT
PurchaseRequisition,
PurchaseRequisitionItem,
PurchaseReqnAcctAssgmtNumber,
CostCenter,
MasterFixedAsset,
ProjectNetwork,
BaseUnit,
_UnitOfMeasure.UnitOfMeasureISOCode AS BaseUnitISOCode,
Quantity,
MultipleAcctAssgmtDistrPercent,
PurReqnItemCurrency,
PurReqnNetAmount,
IsDeleted,
GLAccount,
BusinessArea,
SalesOrder,
SalesOrderItem,
SalesOrderScheduleLine,
FixedAsset,
OrderID,
UnloadingPointName,
ControllingArea,
CostObject,
ProfitCenter,
ProjectNetworkInternalID,
CommitmentItem,
FundsCenter,
Fund,
FunctionalArea,
CreationDate,
GoodsRecipientName,
REInternalFinNumber,
NetworkActivityInternalID,
PartnerAccountNumber,
JointVentureRecoveryCode,
SettlementReferenceDate,
OrderInternalID,
OrderIntBillOfOperationsItem,
EarmarkedFundsDocument,
CostCtrActivityType,
BusinessProcess,
GrantID,
ValidityDate,
ChartOfAccounts,
WBSElementExternalID,
LastChangeDateTime,
PurchaseRequisitionType,
Plant,
PurchasingOrganization,
PurchasingGroup,
virtual NetworkActivity: ps_s4_vornr AS virtualNetworkActivityps_s4_vornr
FROM R_PurchaseReqnAcctAssgmtTP
;
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