R_PPS_PurReqAcctAssgmtDraft

DDL: R_PPS_PURREQACCTASSGMTDRAFT Type: view_entity BASIC

Purchase Requisition Draft

R_PPS_PurReqAcctAssgmtDraft is a Basic CDS View that provides data about "Purchase Requisition Draft" in SAP S/4HANA. It reads from 1 data source (pps_pr_acct_d) and exposes 76 fields with key fields PurReqnAcctAssgmtNmbr, PurchaseRequisition, PurchaseRequisitionItem, DraftUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
pps_pr_acct_d pps_pr_acct_d from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_CostCenter _CostCenter $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea and _CostCenter.ValidityStartDate < $session.system_date and _CostCenter.ValidityEndDate > $session.system_date
[0..*] I_FundsCenterText _FundsCenterText _FundsCenterText.Language = $session.system_language and _FundsCenterText.FundsCenter = $projection.FundsCenter and _FundsCenterText.FinancialManagementArea = $projection.FinancialManagementArea and _FundsCenterText.ValidityStartDate < $session.system_date and _FundsCenterText.ValidityEndDate > $session.system_date
[0..*] I_FundText _FundText _FundText.Language = $session.system_language and _FundText.FinancialManagementArea = $projection.FinancialManagementArea

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Purchase Requisition Draft view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (76)

KeyFieldSource TableSource FieldDescription
KEY PurReqnAcctAssgmtNmbr purreqnacctassgmtnmbr Ser.no.acc.ass.
KEY PurchaseRequisition purchaserequisition Requisition
KEY PurchaseRequisitionItem purchaserequisitionitem Requisn. item
KEY DraftUUID draftuuid UUID
ParentDraftUUID parentdraftuuid NodeID
CostCenter costcenter Cost Center
CostCenterDescription
MasterFixedAsset masterfixedasset Fixed Asset
ProjectNetwork projectnetwork Order
Quantity quantity Value
BaseUnit baseunit Unit of Measure
MultipleAcctAssgmtDistrPercent multipleacctassgmtdistrpercent Distribution
PurReqnItemCurrency purreqnitemcurrency Currency
PurReqnNetAmount purreqnnetamount Net Value
IsDeleted isdeleted TRUE
CostElement costelement G/L Account
GLAccount glaccount General Ledger
GLAccountLongName glaccountlongname Long Text
BusinessArea businessarea Business Area
SDDocument sddocument SD Document
SalesOrder salesorder SD Document
SalesDocumentItem salesdocumentitem Sales Document Item
SalesOrderItem salesorderitem Sales Order Item
ScheduleLine scheduleline Schedule Line
SalesOrderScheduleLine salesorderscheduleline SOrder schedule
FixedAsset fixedasset Sub-number
ProcessOrder processorder Order
OrderID orderid Order ID
UnloadingPointName unloadingpointname Unloading Point Name
ControllingArea controllingarea Controlling Area
CostObject costobject Cost Object
ProfitabilitySegment profitabilitysegment Profitability Segment
ProfitCenter profitcenter Profit Center
WBSElementInternalID wbselementinternalid WBS Internal ID
WBSElementExternalID wbselementexternalid WBS Element External ID
WBSElement wbselement WBS Internal ID
ProjectNetworkInternalID projectnetworkinternalid Plan No.f.Oper.
CommitmentItem commitmentitem Commitment item
CommitmentItemShortID commitmentitemshortid Commitment Item Short ID
FundsCenter fundscenter Funds Center
FundsCenterDescription
Fund fund Sender Fund
FundDescription
FunctionalArea functionalarea Sendr Fctl Area
CreationDate creationdate Time Stamp
GoodsRecipientName goodsrecipientname Recipient Name
RealEstateObject realestateobject 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
EarmarkedFundsDocumentItem earmarkedfundsdocumentitem Document Item
CostCtrActivityType costctractivitytype Activity Type
BusinessProcess businessprocess Business Process
GrantID grantid Sender Grant
ValidityDate validitydate Valid On
ChartOfAccounts chartofaccounts Node Class
BudgetPeriod budgetperiod Budget Period
FundedProgram fundedprogram Funded Program
NetworkActivity networkactivity Operation/Activity
PurReqnNetworkActivityForDsp purreqnnetworkactivityfordsp Operation or Phase
CompanyCode companycode Receiver Company Code
FinancialManagementArea financialmanagementarea FM Area
PubSecSplitBatchNumberID pubsecsplitbatchnumberid Dist.Batch No.
PubSecSplitAuthznGroup pubsecsplitauthzngroup Auth.Group
PPSAccountAssignmentIsUnfunded ppsaccountassignmentisunfunded Acc. Asg is Unfunded
PurchaseReqnDraftUUID purchasereqndraftuuid Draft Document ID
DraftEntityCreationDateTime draftentitycreationdatetime Draft Created On
DraftEntityLastChangeDateTime draftentitylastchangedatetime Draft Last Changed On
DraftAdministrativeDataUUID draftadministrativedatauuid UUID
DraftEntityOperationCode draftentityoperationcode Draft - Operation Code
HasActiveEntity hasactiveentity TRUE
DraftFieldChanges draftfieldchanges Field Changes

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 R_PPS_PurReqAcctAssgmtDraft.
-- 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 R_PPS_PurReqAcctAssgmtDraft AS
SELECT
  PurReqnAcctAssgmtNmbr,
  PurchaseRequisition,
  PurchaseRequisitionItem,
  DraftUUID,
  ParentDraftUUID,
  CostCenter,
  _CostCenter._Text[1: Language = $session.system_language ].CostCenterDescription AS CostCenterDescription,
  MasterFixedAsset,
  ProjectNetwork,
  Quantity,
  BaseUnit,
  MultipleAcctAssgmtDistrPercent,
  PurReqnItemCurrency,
  PurReqnNetAmount,
  IsDeleted,
  CostElement,
  GLAccount,
  GLAccountLongName,
  BusinessArea,
  SDDocument,
  SalesOrder,
  SalesDocumentItem,
  SalesOrderItem,
  ScheduleLine,
  SalesOrderScheduleLine,
  FixedAsset,
  ProcessOrder,
  OrderID,
  UnloadingPointName,
  ControllingArea,
  CostObject,
  ProfitabilitySegment,
  ProfitCenter,
  WBSElementInternalID,
  WBSElementExternalID,
  WBSElement,
  ProjectNetworkInternalID,
  CommitmentItem,
  CommitmentItemShortID,
  FundsCenter,
  _FundsCenterText[1: Language = $session.system_language ].FundsCenterDescription AS FundsCenterDescription,
  Fund,
  _FundText[1: Language = $session.system_language ].FundDescription AS FundDescription,
  FunctionalArea,
  CreationDate,
  GoodsRecipientName,
  RealEstateObject,
  NetworkActivityInternalID,
  PartnerAccountNumber,
  JointVentureRecoveryCode,
  SettlementReferenceDate,
  OrderInternalID,
  OrderIntBillOfOperationsItem,
  EarmarkedFundsDocument,
  EarmarkedFundsDocumentItem,
  CostCtrActivityType,
  BusinessProcess,
  GrantID,
  ValidityDate,
  ChartOfAccounts,
  BudgetPeriod,
  FundedProgram,
  NetworkActivity,
  PurReqnNetworkActivityForDsp,
  CompanyCode,
  FinancialManagementArea,
  PubSecSplitBatchNumberID,
  PubSecSplitAuthznGroup,
  PPSAccountAssignmentIsUnfunded,
  PurchaseReqnDraftUUID,
  DraftEntityCreationDateTime,
  DraftEntityLastChangeDateTime,
  DraftAdministrativeDataUUID,
  DraftEntityOperationCode,
  HasActiveEntity,
  DraftFieldChanges
FROM pps_pr_acct_d
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea AND _CostCenter.ValidityStartDate < $session.system_date AND _CostCenter.ValidityEndDate > $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_FundsCenterText AS _FundsCenterText ON _FundsCenterText.Language = $session.system_language AND _FundsCenterText.FundsCenter = FundsCenter AND _FundsCenterText.FinancialManagementArea = FinancialManagementArea AND _FundsCenterText.ValidityStartDate < $session.system_date AND _FundsCenterText.ValidityEndDate > $session.system_date  -- association [0..*]
LEFT OUTER JOIN I_FundText AS _FundText ON _FundText.Language = $session.system_language AND _FundText.FinancialManagementArea = FinancialManagementArea  -- association [0..*]
;