R_PRAAccountingDocumentHdrTP

DDL: R_PRAACCOUNTINGDOCUMENTHDRTP Type: view_entity TRANSACTIONAL

Revenue Accounting Header details - TP

R_PRAAccountingDocumentHdrTP is a Transactional CDS View that provides data about "Revenue Accounting Header details - TP" in SAP S/4HANA. It reads from 1 data source (I_PRAAccountingDocumentHdrDet) and exposes 28 fields with key fields CompanyCode, PRAAccountingPeriod, AccountingDocument. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_PRAAccountingDocumentHdrDet I_PRAAccountingDocumentHdrDet from

Associations (1)

CardinalityTargetAliasCondition
[1..*] R_PRAAcctgDocDetailTP _PRAAcctgDocDetail

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Revenue Accounting Header details - TP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.sapObjectNodeType.name PRARevenueAccountingDocument view
OData.entityType.name RevenueAccountingHeader_Type view
OData.entitySet.name RevenueAccountingHeader view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY PRAAccountingPeriod PRAAccountingPeriod
KEY AccountingDocument AccountingDocument Journal Entry
DocumentDescription DocumentDescription Doc. Name
PRAOrigin PRAOrigin Application
AccountingDocumentType AccountingDocumentType Journal Entry Type
OriginReferenceDocument OriginReferenceDocument Root Document
AccountingDocumentStatus AccountingDocumentStatus VL Doc Status
AccountingDocumentIsReversed AccountingDocumentIsReversed Reverse Flag
AccountingDocumentCrossCoRef AccountingDocumentCrossCoRef Cross Comp Key
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TotalDebitAmount TotalDebitAmount Receivables
TotalCreditAmount TotalCreditAmount Credit Amount
TotalStatisticalAmount TotalStatisticalAmount Sts Amount
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CreatedByUser CreatedByUser User Name
CreationDateTime CreationDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
ChangedDateTime ChangedDateTime Time Stamp
NumberOfItems NumberOfItems
NumberOfRejectedItems NumberOfRejectedItems
_CompanyCode _CompanyCode
_AccountingDocumentType _AccountingDocumentType
_AccountingDocumentStatus _AccountingDocumentStatus
_Origin _Origin
_AccountingDocumentIsReversed _AccountingDocumentIsReversed
_PRAAcctgDocDetail _PRAAcctgDocDetail

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_PRAAccountingDocumentHdrTP.
-- 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_PRAAccountingDocumentHdrTP AS
SELECT
  CompanyCode,
  PRAAccountingPeriod,
  AccountingDocument,
  DocumentDescription,
  PRAOrigin,
  AccountingDocumentType,
  OriginReferenceDocument,
  AccountingDocumentStatus,
  AccountingDocumentIsReversed,
  AccountingDocumentCrossCoRef,
  PostingDate,
  DocumentDate,
  TotalDebitAmount,
  TotalCreditAmount,
  TotalStatisticalAmount,
  CompanyCodeCurrency,
  CreatedByUser,
  CreationDateTime,
  LastChangedByUser,
  ChangedDateTime,
  NumberOfItems,
  NumberOfRejectedItems
FROM I_PRAAccountingDocumentHdrDet
LEFT OUTER JOIN R_PRAAcctgDocDetailTP AS _PRAAcctgDocDetail ON /* condition not available in parsed metadata */  -- association [1..*]
;