I_PRAContract
PRA Contract
I_PRAContract (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
ProductionRevenueAccountingContract · Cross Applications
I_PRAContract is a Basic CDS View (Dimension) that provides data about "PRA Contract" in SAP S/4HANA. It reads from 1 data source (oiucm_contract) and exposes 22 fields with key field PRAContract. It has 5 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Source in SQL Select, Analytical Dimension, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
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 |
|---|---|---|
| oiucm_contract | oiucm_contract | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer | _SoldToParty | $projection.SoldToParty = _SoldToParty.Customer |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_PRAContractType | _PRAContractType | $projection.PRAContractType = _PRAContractType.PRAContractType |
| [0..1] | I_Customer | _MarketingRepCustomer | $projection.MarketingRepCustomer = _MarketingRepCustomer.Customer |
| [0..1] | I_Supplier | _MarketingRepSupplier | $projection.MarketingRepSupplier = _MarketingRepSupplier.Supplier |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | PRA Contract | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IPVCONTRACT | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | PRAContract | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.sapObjectNodeType.name | PRAContract | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PRAContract | vbeln | Contract Number | |
| PRAContractDesc | Contract Description | |||
| PRAContractDate | audat | Document Date (Date Received/Sent) | ||
| SoldToParty | kunnr | Stock customer | ||
| CompanyCode | CCodeToBeBilled | |||
| PRAContractType | oiu_ct_type_cd | Contract Type | ||
| IsApproved | oiu_appr_fl | Approval indicator | ||
| PreviousPRAContract | oiu_prev_ct_no | Old / Previous Contract Number | ||
| CustomerOrSupplierType | oiu_cust_vend_cd | Customer/Vendor Indicator | ||
| MarketingRep | oiu_mk_rep_no | Marketing Representative No | ||
| MarketingRepIntrstSequNmbr | oiu_mk_rep_isq | Marketing Representative Interest Sequence No | ||
| MarketingRepName | Marketing Representative Name | |||
| MarketingRepCustomer | Marketing Representative Customer | |||
| MarketingRepSupplier | Marketing Representative Supplier | |||
| CreatedByUser | ernam | Name of Person Responsible for Creating the Object | ||
| CreationDate | erdat | Record Created On | ||
| CreationTime | Creation Time | |||
| _SoldToParty | _SoldToParty | |||
| _PRAContractType | _PRAContractType | |||
| _MarketingRepCustomer | _MarketingRepCustomer | |||
| _MarketingRepSupplier | _MarketingRepSupplier | |||
| _CompanyCode | _CompanyCode |
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_PRAContract.
-- 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: IPVCONTRACT
CREATE VIEW I_PRAContract AS
SELECT
vbeln AS PRAContract,
cast( ktext as oiu_vdm_contract_description ) AS PRAContractDesc,
audat AS PRAContractDate,
kunnr AS SoldToParty,
cast ( bukrs_vf as fis_bukrs) AS CompanyCode,
oiu_ct_type_cd AS PRAContractType,
oiu_appr_fl AS IsApproved,
oiu_prev_ct_no AS PreviousPRAContract,
oiu_cust_vend_cd AS CustomerOrSupplierType,
oiu_mk_rep_no AS MarketingRep,
oiu_mk_rep_isq AS MarketingRepIntrstSequNmbr,
cast( bname as oiu_vdm_marketing_rep_name ) AS MarketingRepName,
cast( case oiu_cust_vend_cd when 'C' then oiu_mk_rep_no end as oiu_vdm_marketing_rep_cust ) AS MarketingRepCustomer,
cast( case oiu_cust_vend_cd when 'V' then oiu_mk_rep_no end as oiu_vdm_marketing_rep_suppl ) AS MarketingRepSupplier,
ernam AS CreatedByUser,
erdat AS CreationDate,
cast( erzet as oiu_vdm_creation_time) AS CreationTime
FROM oiucm_contract
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PRAContractType AS _PRAContractType ON PRAContractType = _PRAContractType.PRAContractType -- association [0..1]
LEFT OUTER JOIN I_Customer AS _MarketingRepCustomer ON MarketingRepCustomer = _MarketingRepCustomer.Customer -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _MarketingRepSupplier ON MarketingRepSupplier = _MarketingRepSupplier.Supplier -- 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