I_PRAManualAccountingDocHdr
Manual Revenue Accounting document hdr
I_PRAManualAccountingDocHdr (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRA Manual Revenue Accounting Document · Cross Applications
I_PRAManualAccountingDocHdr is a Basic CDS View that provides data about "Manual Revenue Accounting document hdr" in SAP S/4HANA. It reads from 1 data source (/pra/acc_mdoc_hd) and exposes 23 fields with key fields CompanyCode, PRAAccountingPeriod, AccountingDocument. It has 5 associations to related views.
SAP Help Documentation
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|
This CDS view records changes in values in a company code arising from accounting transactions. Manual records consist of one or more line items (postings), each of which represents an individual transaction posted to an account. When posting an accounting document, the SAP system updates the transaction figures in the accounts to which the document is posted.
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: /PRA/RADM:BUKRS-,/PRA/RADM:ACTVT-03 (Mapping role for I_PRAManualAccountingDocHdr )
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Source in SQL Select |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view records changes in values in a company code arising from accounting transactions. Manual records consist of one or more line items (postings), each of which represents an individual transaction posted to an account. When posting an accounting document, the SAP system updates the transaction figures in the accounts to which the document is posted.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /pra/acc_mdoc_hd | /pra/acc_mdoc_hd | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_PRAApplicationOrigin | _Origin | $projection.PRAAcctgDocApplication = _Origin.Origin |
| [0..1] | I_PRAAccountingDocumentType | _AccountingDocumentType | $projection.PRAAcctgDocApplication = _AccountingDocumentType.Origin and $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType |
| [0..1] | I_PRAAccountingDocStatus | _AccountingDocumentStatus | $projection.AccountingDocumentStatus = _AccountingDocumentStatus.AccountingDocumentStatus |
| [0..1] | I_Indicator | _AccountingDocumentIsReversed | $projection.AccountingDocumentIsReversed = _AccountingDocumentIsReversed.IndicatorValue |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Manual Revenue Accounting document hdr | view | |
| AbapCatalog.sqlViewName | IPRAMNLRAD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | PRAMnlRevnAcctgDoc | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Company Code | |
| KEY | PRAAccountingPeriod | PRA Accounting Period | ||
| KEY | AccountingDocument | doc_no | Revenue Accounting Document Number | |
| AccountingDocumentType | doc_type | VAT Document Type | ||
| OriginReferenceDocument | ref_key | Source Reference Document (VL,CI,SS,FT) | ||
| PRAAcctgDocApplication | system_src | Application | ||
| AccountingDocumentStatus | doc_status | Accounting Document Status | ||
| AccountingDocumentIsReversed | rvrs_doc_fl | Accounting Reverse Flag | ||
| AccountingDocumentCrossCoRef | xcc_key | Cross Company key for Accounting Document Header | ||
| NumberOfItems | total_rec_cnt | Accounting Document Total Line | ||
| NumberOfRejectedItems | rej_rec_cnt | Accounting Document Total Rejcet Line | ||
| PostingDate | post_dt | Accounting Document Posting Date | ||
| DocumentDate | doc_dt | Document Date | ||
| DocumentDescription | document_desc | Document Description | ||
| CreatedByUser | oiu_cruser | Name of Person Responsible for Creating the Object | ||
| CreationDateTime | oiu_timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| LastChangedByUser | change_user | Name of Person Who Changed Object | ||
| ChangedDateTime | change_timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| Associations_CompanyCode | ||||
| _Origin | _Origin | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _AccountingDocumentStatus | _AccountingDocumentStatus | |||
| _AccountingDocumentIsReversed | _AccountingDocumentIsReversed |
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_PRAManualAccountingDocHdr.
-- 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 I_PRAManualAccountingDocHdr AS
SELECT
bukrs AS CompanyCode,
cast (acct_period as oiu_vdm_acct_period ) AS PRAAccountingPeriod,
doc_no AS AccountingDocument,
doc_type AS AccountingDocumentType,
ref_key AS OriginReferenceDocument,
system_src AS PRAAcctgDocApplication,
doc_status AS AccountingDocumentStatus,
rvrs_doc_fl AS AccountingDocumentIsReversed,
xcc_key AS AccountingDocumentCrossCoRef,
total_rec_cnt AS NumberOfItems,
rej_rec_cnt AS NumberOfRejectedItems,
post_dt AS PostingDate,
doc_dt AS DocumentDate,
document_desc AS DocumentDescription,
oiu_cruser AS CreatedByUser,
oiu_timestamp AS CreationDateTime,
change_user AS LastChangedByUser,
change_timestamp AS ChangedDateTime
FROM /pra/acc_mdoc_hd
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PRAApplicationOrigin AS _Origin ON PRAAcctgDocApplication = _Origin.Origin -- association [0..1]
LEFT OUTER JOIN I_PRAAccountingDocumentType AS _AccountingDocumentType ON PRAAcctgDocApplication = _AccountingDocumentType.Origin AND AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType -- association [0..1]
LEFT OUTER JOIN I_PRAAccountingDocStatus AS _AccountingDocumentStatus ON AccountingDocumentStatus = _AccountingDocumentStatus.AccountingDocumentStatus -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _AccountingDocumentIsReversed ON AccountingDocumentIsReversed = _AccountingDocumentIsReversed.IndicatorValue -- association [0..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