I_ValuationDocumentHdr
Valuation Document Header
I_ValuationDocumentHdr (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Production Revenue Accounting Valuation Document Header · Cross Applications
I_ValuationDocumentHdr is a Basic CDS View (Cube) that provides data about "Valuation Document Header" in SAP S/4HANA. It reads from 1 data source (oiurv_doc_hdr) and exposes 21 fields with key fields ValuationDocumentYear, ValuationDocumentNumber. It has 7 associations to related views. Part of development package OIU_VDM_CDS.
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Source for Data Extraction,Data Source in SQL Select,Data Provider for Analytical Queries,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| oiurv_doc_hdr | oiurv_doc_hdr | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CalendarYear | _ValuationDocumentYear | $projection.ValuationDocumentYear = _ValuationDocumentYear.CalendarYear |
| [0..1] | I_DeliveryNetwork | _DeliveryNetwork | $projection.DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork |
| [0..1] | I_AllocationFrequencyCode | _AllocationFrequencyCode | $projection.AllocationFrequency = _AllocationFrequencyCode.AllocationFrequency |
| [0..1] | I_ValnDocProcessingStatus | _ValnDocProcessingStatus | $projection.ProcessingStatus = _ValnDocProcessingStatus.ProcessingStatus |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_ValnDocStatus | _ValnDocStatus | $projection.ValuationDocumentStatus = _ValnDocStatus.ValuationDocumentStatus |
| [0..1] | I_ValnDocType | _ValnDocType | $projection.ValuationDocumentType = _ValnDocType.ValuationDocumentType |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Valuation Document Header | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IPVVALNDOCHDR | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.sapObjectNodeType.name | PRAValuationDocumentHeader | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ValuationDocumentYear | doc_year | Mat. Doc. Year | |
| KEY | ValuationDocumentNumber | doc_no | Val. document number | |
| DeliveryNetwork | dn_no | Delivery network number | ||
| SalesDate | sale_dt | Sales Date / Month | ||
| AllocationFrequency | freq_cd | Frequency | ||
| ValuationDocumentStatus | doc_status | Valuation Document Status | ||
| ValuationDocumentType | doc_type | Valuation Document Type | ||
| ProcessingStatus | proc_status | Valuation Document Processing Status | ||
| LastExecutionDate | run_date | Run date | ||
| LastExecutionTime | run_time | Start Time | ||
| DocumentIsArchived | Indicator: Document Already Archived? | |||
| CreatedByUser | Created By | |||
| NumberOfDocuments | Number of Documents | |||
| OriginTransaction | Source Transaction ID | |||
| _ValuationDocumentYear | _ValuationDocumentYear | |||
| _DeliveryNetwork | _DeliveryNetwork | |||
| _AllocationFrequencyCode | _AllocationFrequencyCode | |||
| _ValnDocStatus | _ValnDocStatus | |||
| _ValnDocType | _ValnDocType | |||
| _ValnDocProcessingStatus | _ValnDocProcessingStatus | |||
| _CreatedByUser | _CreatedByUser |
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_ValuationDocumentHdr.
-- 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: IPVVALNDOCHDR
CREATE VIEW I_ValuationDocumentHdr AS
SELECT
doc_year AS ValuationDocumentYear,
doc_no AS ValuationDocumentNumber,
dn_no AS DeliveryNetwork,
sale_dt AS SalesDate,
freq_cd AS AllocationFrequency,
doc_status AS ValuationDocumentStatus,
doc_type AS ValuationDocumentType,
proc_status AS ProcessingStatus,
run_date AS LastExecutionDate,
run_time AS LastExecutionTime,
cast( arch_flag as xarch ) AS DocumentIsArchived,
cast( oiu_cruser as fclm_bam_created_by ) AS CreatedByUser,
cast( 1 as oiu_vdm_no_of_docs ) AS NumberOfDocuments,
cast( 'O3URV_DOC' as fqm_origin_trans_id ) AS OriginTransaction
FROM oiurv_doc_hdr
LEFT OUTER JOIN I_CalendarYear AS _ValuationDocumentYear ON ValuationDocumentYear = _ValuationDocumentYear.CalendarYear -- association [0..1]
LEFT OUTER JOIN I_DeliveryNetwork AS _DeliveryNetwork ON DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork -- association [0..1]
LEFT OUTER JOIN I_AllocationFrequencyCode AS _AllocationFrequencyCode ON AllocationFrequency = _AllocationFrequencyCode.AllocationFrequency -- association [0..1]
LEFT OUTER JOIN I_ValnDocProcessingStatus AS _ValnDocProcessingStatus ON ProcessingStatus = _ValnDocProcessingStatus.ProcessingStatus -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_ValnDocStatus AS _ValnDocStatus ON ValuationDocumentStatus = _ValnDocStatus.ValuationDocumentStatus -- association [0..1]
LEFT OUTER JOIN I_ValnDocType AS _ValnDocType ON ValuationDocumentType = _ValnDocType.ValuationDocumentType -- 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