I_PRASettlmtStmntDetail
Settlement statement detail
I_PRASettlmtStmntDetail (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRASettlmtStmntDetail · Cross Applications
I_PRASettlmtStmntDetail is a Basic CDS View that provides data about "Settlement statement detail" in SAP S/4HANA. It reads from 1 data source (oiurv_sstd) and exposes 45 fields with key fields PRASettlmtStmntDocumentNumber, ValuationDocumentYear, PRADocumentLineItemNumber. It has 13 associations to related views.
SAP Help Documentation
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|
This CDS view gives the details of a settlement statement document in PRA. Prerequisites
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: O_OIU_TXN:ACTVT-03,O_OIU_TXN:OIU_TCODE-O3URV_SS0 (Mapping role for PRASettlmtStmntDetail)
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 gives the details of a settlement statement document in PRA. </p> <p>Prerequisites </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 |
|---|---|---|
| oiurv_sstd | oiurv_sstd | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PRAMatlMjrProdMappg | _PRAMatlMjrProdMappg | _PRAMatlMjrProdMappg.Material = $projection.PRAMaterial |
| [1..1] | I_PRAContract | _PRAContract | _PRAContract.PRAContract = $projection.PRAContract |
| [1..1] | I_PriorPeriodAdjustmentReason | _PriorPeriodAdjustmentReason | _PriorPeriodAdjustmentReason.PriorPeriodAdjustmentReason = $projection.PriorPeriodAdjustmentReason |
| [1..1] | I_CompanyCode | _CompanyCode | _CompanyCode.CompanyCode = $projection.CompanyCode |
| [1..1] | I_PRAJointVenture | _PRAJointVenture | _PRAJointVenture.PRAJointVenture = $projection.PRAJointVenture and _PRAJointVenture.CompanyCode = $projection.CompanyCode |
| [0..1] | I_DivisionOfInterest | _DivisionOfInterest | $projection.CompanyCode = _DivisionOfInterest.CompanyCode and $projection.PRAJointVenture = _DivisionOfInterest.JointVenture and $projection.DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest |
| [1..1] | I_VolumeType | _VolumeType | _VolumeType.VolumeType = $projection.VolumeType |
| [0..1] | I_UnitOfMeasure | _VolumeUnit | _VolumeUnit.UnitOfMeasure = $projection.PRAPlntVolReducnQuantityUnit |
| [0..1] | I_UnitOfMeasure | _EnergyUnit | _EnergyUnit.UnitOfMeasure = $projection.PRASettlementGrossVolUnit and _EnergyUnit.UnitOfMeasure = $projection.PRASettlementEnergyUnit |
| [0..1] | I_UnitOfMeasure | _HeatingValUnit | _HeatingValUnit.UnitOfMeasure = $projection.PRAHeatingValueFactorUnit |
| [0..1] | I_Currency | _Currency | _Currency.Currency = $projection.Currency |
| [1..1] | I_AllocationFrequencyCode | _AllocationFrequencyCode | _AllocationFrequencyCode.AllocationFrequency = $projection.AllocationFrequency |
| [1..1] | I_PRAValnLineItmProcgStatusVH | _PRAValnLineItmProcgStatusVH | _PRAValnLineItmProcgStatusVH.PRALineProcessingStatus = $projection.PRALineProcessingStatus |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Settlement statement detail | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.sapObjectNodeType.name | PRASettlmtStmntDetail | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PRASettlmtStmntDocumentNumber | doc_no | Val. document number | |
| KEY | ValuationDocumentYear | doc_year | Mat. Doc. Year | |
| KEY | PRADocumentLineItemNumber | line_item_no | Document Line Item Number | |
| PRALineProcessingStatus | line_item_sts_cd | Line Item Processing Status | ||
| PRARejectionReasonCode | rej_rsn_cd | Rejection Reason Code | ||
| PRAPurchaserLeaseName | pu_vname | Purchaser's Lease Number | ||
| PRAPurrRefProductOrMaterial | pu_matnr | Purchaser's Xref Product / Material | ||
| PRAMaterial | matnr | Material Number | ||
| SalesDate | sale_dt | Sales Date / Month | ||
| PRAContract | ct_no | Contract Number | ||
| PriorPeriodAdjustmentReason | ppa_rsn_cd | Prior Period Adjustment Reason Code | ||
| AllocationFrequency | freq_cd | Frequency | ||
| CostCenter | cost_center | Posted Cost Center | ||
| CompanyCode | bukrs | Company Code | ||
| PRAJointVenture | vname | Volatility Name | ||
| DivisionOfInterest | doi_no | Division of Interest (DOI) | ||
| VolumeType | vl_type_cd | Volume type code | ||
| PRASettlementGrossVolUnit | tot_gr_vl_u | Measurement unit | ||
| ActualGrossVolume | actl_gr_vl | Actual Gross Volume Amount | ||
| PRASettlementEnergyUnit | energy_u | Measurement unit | ||
| ActualEnergy | actl_energy | Actual Energy | ||
| PRAPlntVolReducnQuantityUnit | pvr_am_u | PVR Volume Unit of Measure | ||
| PRAHeatingValueFactorUnit | heat_val_fct_u | Measurement unit | ||
| PRAActualHeatingFactorQty | act_heat_val_fct | Actual Heating Factor | ||
| Currency | curr | Valuation Crcy | ||
| ActualGrossValue | actl_gr_val | Actual Gross Value Amount | ||
| PRAHeatValueClass | heat_val_cls | Heat value class | ||
| PRAIsCalculationTax | calc_taxes_fl | Calculate Tax Flag | ||
| PRAPlntVolReducnQuantity | pvr | Plant volume reduction amount | ||
| CreatedByUser | oiu_cruser | Name of Person Responsible for Creating the Object | ||
| PRACreationDateTime | oiu_timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| ValuationDocumentNumber | vl_doc_no | Val. document number | ||
| _PRAValnLineItmProcgStatusVH | _PRAValnLineItmProcgStatusVH | |||
| _AllocationFrequencyCode | _AllocationFrequencyCode | |||
| _PRAMatlMjrProdMappg | _PRAMatlMjrProdMappg | |||
| _PRAContract | _PRAContract | |||
| _PriorPeriodAdjustmentReason | _PriorPeriodAdjustmentReason | |||
| _CompanyCode | _CompanyCode | |||
| _PRAJointVenture | _PRAJointVenture | |||
| _DivisionOfInterest | _DivisionOfInterest | |||
| _VolumeType | _VolumeType | |||
| _EnergyUnit | _EnergyUnit | |||
| _VolumeUnit | _VolumeUnit | |||
| _HeatingValUnit | _HeatingValUnit | |||
| _Currency | _Currency |
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_PRASettlmtStmntDetail.
-- 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_PRASettlmtStmntDetail AS
SELECT
doc_no AS PRASettlmtStmntDocumentNumber,
doc_year AS ValuationDocumentYear,
line_item_no AS PRADocumentLineItemNumber,
line_item_sts_cd AS PRALineProcessingStatus,
rej_rsn_cd AS PRARejectionReasonCode,
pu_vname AS PRAPurchaserLeaseName,
pu_matnr AS PRAPurrRefProductOrMaterial,
matnr AS PRAMaterial,
sale_dt AS SalesDate,
ct_no AS PRAContract,
ppa_rsn_cd AS PriorPeriodAdjustmentReason,
freq_cd AS AllocationFrequency,
cost_center AS CostCenter,
bukrs AS CompanyCode,
vname AS PRAJointVenture,
doi_no AS DivisionOfInterest,
vl_type_cd AS VolumeType,
tot_gr_vl_u AS PRASettlementGrossVolUnit,
actl_gr_vl AS ActualGrossVolume,
energy_u AS PRASettlementEnergyUnit,
actl_energy AS ActualEnergy,
pvr_am_u AS PRAPlntVolReducnQuantityUnit,
heat_val_fct_u AS PRAHeatingValueFactorUnit,
act_heat_val_fct AS PRAActualHeatingFactorQty,
curr AS Currency,
actl_gr_val AS ActualGrossValue,
heat_val_cls AS PRAHeatValueClass,
calc_taxes_fl AS PRAIsCalculationTax,
pvr AS PRAPlntVolReducnQuantity,
oiu_cruser AS CreatedByUser,
oiu_timestamp AS PRACreationDateTime,
vl_doc_no AS ValuationDocumentNumber
FROM oiurv_sstd
LEFT OUTER JOIN I_PRAMatlMjrProdMappg AS _PRAMatlMjrProdMappg ON _PRAMatlMjrProdMappg.Material = PRAMaterial -- association [1..1]
LEFT OUTER JOIN I_PRAContract AS _PRAContract ON _PRAContract.PRAContract = PRAContract -- association [1..1]
LEFT OUTER JOIN I_PriorPeriodAdjustmentReason AS _PriorPeriodAdjustmentReason ON _PriorPeriodAdjustmentReason.PriorPeriodAdjustmentReason = PriorPeriodAdjustmentReason -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = CompanyCode -- association [1..1]
LEFT OUTER JOIN I_PRAJointVenture AS _PRAJointVenture ON _PRAJointVenture.PRAJointVenture = PRAJointVenture AND _PRAJointVenture.CompanyCode = CompanyCode -- association [1..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON CompanyCode = _DivisionOfInterest.CompanyCode AND PRAJointVenture = _DivisionOfInterest.JointVenture AND DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest -- association [0..1]
LEFT OUTER JOIN I_VolumeType AS _VolumeType ON _VolumeType.VolumeType = VolumeType -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON _VolumeUnit.UnitOfMeasure = PRAPlntVolReducnQuantityUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EnergyUnit ON _EnergyUnit.UnitOfMeasure = PRASettlementGrossVolUnit AND _EnergyUnit.UnitOfMeasure = PRASettlementEnergyUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _HeatingValUnit ON _HeatingValUnit.UnitOfMeasure = PRAHeatingValueFactorUnit -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON _Currency.Currency = Currency -- association [0..1]
LEFT OUTER JOIN I_AllocationFrequencyCode AS _AllocationFrequencyCode ON _AllocationFrequencyCode.AllocationFrequency = AllocationFrequency -- association [1..1]
LEFT OUTER JOIN I_PRAValnLineItmProcgStatusVH AS _PRAValnLineItmProcgStatusVH ON _PRAValnLineItmProcgStatusVH.PRALineProcessingStatus = PRALineProcessingStatus -- association [1..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