I_PRAContract

DDL: I_PRACONTRACT SQL: IPVCONTRACT Type: view BASIC

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

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
CapabilitiesData Source in SQL Select, Analytical Dimension, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
oiucm_contract oiucm_contract from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;