Deprecated PUBLIC_LOCAL_API
This CDS view is deprecated in S/4HANA. Use I_PurReqnAcctAssgmtAPI01 instead. View all deprecated CDS views →

I_PurReqnAcctAssgmt_Api01

DDL: I_PURREQNACCTASSGMT_API01 SQL: IPRACCASGMTAPI01 Type: view COMPOSITE

Account Assgmt in Purchase Requisition

I_PurReqnAcctAssgmt_Api01 (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sourcing & Procurement

I_PurReqnAcctAssgmt_Api01 is a Composite CDS View that provides data about "Account Assgmt in Purchase Requisition" in SAP S/4HANA. It reads from 1 data source (I_PurReqnAcctAssgmt) and exposes 57 fields with key fields PurchaseRequisition, PurchaseRequisitionItem, PurchaseReqnAcctAssgmtNumber. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Purchase Requisitions
Data CategoryBasic
StatusDeprecated
Purpose
This CDS view helps to retrieve the fields related to account assignment details of a purchase requisition. This CDS view provides the prerequisites for answering the following business questions: Which cost center should be allocated more or less budget based on demand? Which plant has the highest demand? How many purchase requisitions have a net order value greater or lesser than a given value?

Prerequisites
Users who want to run reports using this CDS view must have a role based on the business role template listed in the table above.

Structure
Object types This view relates to the following SAP object types: Account assignment Main CDS parameters and filters The main CDS parameters are: Cost center Net order value Order number Business area Controlling area Profit center Measures and attributes Some important measures and attributes are: Purchase requisition number Purchase requisition item number Profit center Business area Cost center

View on SAP Help Portal →

SAP API Hub

StateDeprecated
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-REQ
PackageSourcing & Procurement for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view helps to retrieve the fields related to account assignment details of a purchase requisition.</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which cost center should be allocated more or less budget based on demand?</p></li> <li><p>Which plant has the highest demand?</p></li> <li><p>How many purchase requisitions have a net order value greater or lesser than a given value?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_PurReqnAcctAssgmt I_PurReqnAcctAssgmt from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PurchaseRequisition_Api01 _PurchaseRequisition_Api01 $projection.PurchaseRequisition = _PurchaseRequisition_Api01.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisition_Api01.PurchaseRequisitionItem

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.sqlViewName IPRACCASGMTAPI01 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Account Assgmt in Purchase Requisition view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_PurReqnAcctAssgmtAPI01 view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisition I_PurReqnAcctAssgmt PurchaseRequisition Purchase Requisition Number
KEY PurchaseRequisitionItem I_PurReqnAcctAssgmt PurchaseRequisitionItem Item number of purchase requisition
KEY PurchaseReqnAcctAssgmtNumber I_PurReqnAcctAssgmt PurchaseReqnAcctAssgmtNumber Serial number for PReq account assignment segment
CostCenter I_PurReqnAcctAssgmt CostCenter Cost Center
MasterFixedAsset I_PurReqnAcctAssgmt MasterFixedAsset Main Asset Number
ProjectNetwork I_PurReqnAcctAssgmt ProjectNetwork Network Number for Account Assignment
Quantity I_PurReqnAcctAssgmt Quantity Purchase requisition quantity
BaseUnit _PurchaseRequisition_Api01 BaseUnit Purchase requisition unit of measure
MultipleAcctAssgmtDistrPercent I_PurReqnAcctAssgmt MultipleAcctAssgmtDistrPercent Distribution percentage in the case of multiple acct assgt
PurReqnNetAmount I_PurReqnAcctAssgmt PurReqnNetAmount Net Order Value in PO Currency
PurReqnItemCurrency _PurchaseRequisition_Api01 PurReqnItemCurrency Currency Key
IsDeleted I_PurReqnAcctAssgmt IsDeleted Deletion Indicator in Purchasing Document
CostElement I_PurReqnAcctAssgmt CostElement G/L Account Number
GLAccount I_PurReqnAcctAssgmt GLAccount G/L Account Number
BusinessArea I_PurReqnAcctAssgmt BusinessArea Business Area
SDDocument I_PurReqnAcctAssgmt SDDocument Sales and Distribution Document Number
SalesOrder I_PurReqnAcctAssgmt SalesOrder Sales and Distribution Document Number
SalesDocumentItem I_PurReqnAcctAssgmt SalesDocumentItem Sales Document Item
SalesOrderItem I_PurReqnAcctAssgmt SalesOrderItem Sales Document Item
ScheduleLine I_PurReqnAcctAssgmt ScheduleLine Schedule Line Number
SalesOrderScheduleLine I_PurReqnAcctAssgmt SalesOrderScheduleLine Schedule Line Number
FixedAsset I_PurReqnAcctAssgmt FixedAsset Asset Subnumber
ProcessOrder I_PurReqnAcctAssgmt ProcessOrder Order Number
OrderID I_PurReqnAcctAssgmt OrderID Order Number
UnloadingPointName I_PurReqnAcctAssgmt UnloadingPointName Unloading Point Name
ControllingArea I_PurReqnAcctAssgmt ControllingArea Controlling Area
CostObject I_PurReqnAcctAssgmt CostObject Cost Object
ProfitabilitySegment Deprecated: Profitability Segment
ProfitabilitySegment_2 Profitability Segment
ProfitCenter I_PurReqnAcctAssgmt ProfitCenter Profit Center
WBSElementInternalID I_PurReqnAcctAssgmt WBSElementInternalID Work Breakdown Structure Element (WBS Element)
ProjectNetworkInternalID I_PurReqnAcctAssgmt ProjectNetworkInternalID Routing number of operations in the order
CommitmentItem I_PurReqnAcctAssgmt CommitmentItem Commitment item
FundsCenter I_PurReqnAcctAssgmt FundsCenter Funds Center
Fund I_PurReqnAcctAssgmt Fund Sender Fund
FunctionalArea I_PurReqnAcctAssgmt FunctionalArea Sendr Fctl Area
CreationDate I_PurReqnAcctAssgmt CreationDate Record Created On
GoodsRecipientName I_PurReqnAcctAssgmt GoodsRecipientName Goods Recipient
RealEstateObject I_PurReqnAcctAssgmt RealEstateObject Internal Key for Real Estate Object
NetworkActivityInternalID I_PurReqnAcctAssgmt NetworkActivityInternalID Internal counter
PartnerAccountNumber I_PurReqnAcctAssgmt PartnerAccountNumber Partner account number
JointVentureRecoveryCode I_PurReqnAcctAssgmt JointVentureRecoveryCode Recovery Indicator
SettlementReferenceDate I_PurReqnAcctAssgmt SettlementReferenceDate Reference date for settlement
OrderInternalID I_PurReqnAcctAssgmt OrderInternalID Routing number of operations in the order
OrderIntBillOfOperationsItem I_PurReqnAcctAssgmt OrderIntBillOfOperationsItem Order Internal Bill of Operations Item
EarmarkedFundsDocument I_PurReqnAcctAssgmt EarmarkedFundsDocument Document Number for Earmarked Funds
CostCtrActivityType I_PurReqnAcctAssgmt CostCtrActivityType Activity Type
BusinessProcess I_PurReqnAcctAssgmt BusinessProcess Business Process
GrantID I_PurReqnAcctAssgmt GrantID Sender Grant
ValidityDate I_PurReqnAcctAssgmt ValidityDate Valid On
ChartOfAccounts I_PurReqnAcctAssgmt ChartOfAccounts Chart of Accounts
WBSElement I_PurReqnAcctAssgmt WBSElement Work Breakdown Structure Element (WBS Element)
PurchaseRequisitionType _PurchaseRequisition_Api01 PurchaseRequisitionType Purchase Requisition Document Type
Plant _PurchaseRequisition_Api01 Plant Valuation Area
PurchasingOrganization _PurchaseRequisition_Api01 PurchasingOrganization Purchasing Organization
PurchasingGroup _PurchaseRequisition_Api01 PurchasingGroup Purchasing Group
_PurchaseRequisition_Api01 _PurchaseRequisition_Api01

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 I_PurReqnAcctAssgmt_Api01.
-- 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: IPRACCASGMTAPI01

CREATE VIEW I_PurReqnAcctAssgmt_Api01 AS
SELECT
  I_PurReqnAcctAssgmt.PurchaseRequisition AS PurchaseRequisition,
  I_PurReqnAcctAssgmt.PurchaseRequisitionItem AS PurchaseRequisitionItem,
  I_PurReqnAcctAssgmt.PurchaseReqnAcctAssgmtNumber AS PurchaseReqnAcctAssgmtNumber,
  I_PurReqnAcctAssgmt.CostCenter AS CostCenter,
  I_PurReqnAcctAssgmt.MasterFixedAsset AS MasterFixedAsset,
  I_PurReqnAcctAssgmt.ProjectNetwork AS ProjectNetwork,
  I_PurReqnAcctAssgmt.Quantity AS Quantity,
  _PurchaseRequisition_Api01.BaseUnit AS BaseUnit,
  I_PurReqnAcctAssgmt.MultipleAcctAssgmtDistrPercent AS MultipleAcctAssgmtDistrPercent,
  I_PurReqnAcctAssgmt.PurReqnNetAmount AS PurReqnNetAmount,
  _PurchaseRequisition_Api01.PurReqnItemCurrency AS PurReqnItemCurrency,
  I_PurReqnAcctAssgmt.IsDeleted AS IsDeleted,
  I_PurReqnAcctAssgmt.CostElement AS CostElement,
  I_PurReqnAcctAssgmt.GLAccount AS GLAccount,
  I_PurReqnAcctAssgmt.BusinessArea AS BusinessArea,
  I_PurReqnAcctAssgmt.SDDocument AS SDDocument,
  I_PurReqnAcctAssgmt.SalesOrder AS SalesOrder,
  I_PurReqnAcctAssgmt.SalesDocumentItem AS SalesDocumentItem,
  I_PurReqnAcctAssgmt.SalesOrderItem AS SalesOrderItem,
  I_PurReqnAcctAssgmt.ScheduleLine AS ScheduleLine,
  I_PurReqnAcctAssgmt.SalesOrderScheduleLine AS SalesOrderScheduleLine,
  I_PurReqnAcctAssgmt.FixedAsset AS FixedAsset,
  I_PurReqnAcctAssgmt.ProcessOrder AS ProcessOrder,
  I_PurReqnAcctAssgmt.OrderID AS OrderID,
  I_PurReqnAcctAssgmt.UnloadingPointName AS UnloadingPointName,
  I_PurReqnAcctAssgmt.ControllingArea AS ControllingArea,
  I_PurReqnAcctAssgmt.CostObject AS CostObject,
  cast(I_PurReqnAcctAssgmt.ProfitabilitySegment as rkeobjnr_numc ) AS ProfitabilitySegment,
  cast(I_PurReqnAcctAssgmt.ProfitabilitySegment as rkeobjnr_char ) AS ProfitabilitySegment_2,
  I_PurReqnAcctAssgmt.ProfitCenter AS ProfitCenter,
  I_PurReqnAcctAssgmt.WBSElementInternalID AS WBSElementInternalID,
  I_PurReqnAcctAssgmt.ProjectNetworkInternalID AS ProjectNetworkInternalID,
  I_PurReqnAcctAssgmt.CommitmentItem AS CommitmentItem,
  I_PurReqnAcctAssgmt.FundsCenter AS FundsCenter,
  I_PurReqnAcctAssgmt.Fund AS Fund,
  I_PurReqnAcctAssgmt.FunctionalArea AS FunctionalArea,
  I_PurReqnAcctAssgmt.CreationDate AS CreationDate,
  I_PurReqnAcctAssgmt.GoodsRecipientName AS GoodsRecipientName,
  I_PurReqnAcctAssgmt.RealEstateObject AS RealEstateObject,
  I_PurReqnAcctAssgmt.NetworkActivityInternalID AS NetworkActivityInternalID,
  I_PurReqnAcctAssgmt.PartnerAccountNumber AS PartnerAccountNumber,
  I_PurReqnAcctAssgmt.JointVentureRecoveryCode AS JointVentureRecoveryCode,
  I_PurReqnAcctAssgmt.SettlementReferenceDate AS SettlementReferenceDate,
  I_PurReqnAcctAssgmt.OrderInternalID AS OrderInternalID,
  I_PurReqnAcctAssgmt.OrderIntBillOfOperationsItem AS OrderIntBillOfOperationsItem,
  I_PurReqnAcctAssgmt.EarmarkedFundsDocument AS EarmarkedFundsDocument,
  I_PurReqnAcctAssgmt.CostCtrActivityType AS CostCtrActivityType,
  I_PurReqnAcctAssgmt.BusinessProcess AS BusinessProcess,
  I_PurReqnAcctAssgmt.GrantID AS GrantID,
  I_PurReqnAcctAssgmt.ValidityDate AS ValidityDate,
  I_PurReqnAcctAssgmt.ChartOfAccounts AS ChartOfAccounts,
  I_PurReqnAcctAssgmt.WBSElement AS WBSElement,
  _PurchaseRequisition_Api01.PurchaseRequisitionType AS PurchaseRequisitionType,
  _PurchaseRequisition_Api01.Plant AS Plant,
  _PurchaseRequisition_Api01.PurchasingOrganization AS PurchasingOrganization,
  _PurchaseRequisition_Api01.PurchasingGroup AS PurchasingGroup
FROM I_PurReqnAcctAssgmt
LEFT OUTER JOIN I_PurchaseRequisition_Api01 AS _PurchaseRequisition_Api01 ON PurchaseRequisition = _PurchaseRequisition_Api01.PurchaseRequisition AND PurchaseRequisitionItem = _PurchaseRequisition_Api01.PurchaseRequisitionItem  -- association [0..1]
;