R_PRAAccountingDocumentHdrTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PRAAccountingDocumentHdrDet | I_PRAAccountingDocumentHdrDet | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | R_PRAAcctgDocDetailTP | _PRAAcctgDocDetail | |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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