I_PRAMaintVenture

DDL: I_PRAMAINTVENTURE Type: view BASIC

Maintain Joint Venture for XI

I_PRAMaintVenture is a Basic CDS View that provides data about "Maintain Joint Venture for XI" in SAP S/4HANA. It reads from 1 data source (oiu_do_jv) and exposes 38 fields with key fields CompanyCode, PRAJointVenture. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oiu_do_jv oiu_do_jv from

Associations (12)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_PRAVentureStatusCodeVH _PRAVentureStatusCodeVH _PRAVentureStatusCodeVH.PRAVentureStatus = $projection.PRAJointVentureStatus
[1..1] I_Country _Country _Country.Country = $projection.Country
[1..1] I_PrimaryGeogrlLocation _PrimaryGeogrlLocation _PrimaryGeogrlLocation.Country = $projection.Country and _PrimaryGeogrlLocation.PrimaryGeogrlLocation = $projection.PrimaryGeogrlLocation
[1..1] I_SecondaryGeogrlLocation _Location $projection.Country = _Location.Country and $projection.PrimaryGeogrlLocation = _Location.PrimaryGeogrlLocation and $projection.SecondaryGeogrlLocation = _Location.SecondaryGeogrlLocation
[1..1] I_PRAJointVentureUsageTypeVH _PRAJointVentureUsageTypeVH _PRAJointVentureUsageTypeVH.PRAJointVentureUsageType = $projection.PRAJointVentureUsageType
[1..1] I_PRAOnshoreOffshoreCodeVH _PRAOnshoreOffshoreCodeVH _PRAOnshoreOffshoreCodeVH.PRAJntVntrOnshoreOffshoreCode = $projection.PRAJntVntrOnshoreOffshoreCode
[1..1] I_Customer _AcquiredFrom _AcquiredFrom.Customer = $projection.PRAJointVentureAcquiredFrom
[1..1] I_Customer _SoldTo _SoldTo.Customer = $projection.PRAJointVentureSoldTo
[1..1] I_GeologicField _Field $projection.PRAFieldID = _Field.GeologicField
[1..1] I_PRAVentureInterestCodeVH _PRAVentureInterestCodeVH $projection.PRAJointVentureInterestCode = _PRAVentureInterestCodeVH.PRAJointVentureInterestCode
[0..*] I_PRAMaintUnitVenture _UnitVenture

Annotations (13)

NameValueLevelField
EndUserText.label Maintain Joint Venture for XI view
AbapCatalog.sqlViewName IPRAVENTURES view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.dataMaintenance #RESTRICTED view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Value
KEY PRAJointVenture vname Volatility Name
PRAJointVentureInterestCode vname_int_cd Interest Code
PRAJointVentureName vname_nm Venture Name
PRAJointVentureDesc shtxt Unit
PRAJointVentureStatus sts_code PRA Venture Sta
PRAJointVentureStsEffctvDte sts_eff_dt Status Eff Date
Country country Venue: Ctry/Reg
PrimaryGeogrlLocation pri_geo_loc Primary geo.loc
SecondaryGeogrlLocation sec_geo_loc Secndry geo.loc
PRAJointVentureAcquiredDate acq_dt Acquired date
PRAJointVentureUsageType type_cd Usage Type
PRAJointVentureOldLeaseID old_vname_no Old lease ID
JointVentureIsUnit unit_fl Unit venture
PRAJointVentureHasDOIByTract doi_by_tr_fl DOI By Tract
PRAJntVntrIsSubjToDrillFund drl_fund_fl Drill Fund
PRAJntVntrOnshoreOffshoreCode ons_ofs_cd On/Offshore
PRAJointVentureAcquiredFrom acq_from_kunnr Party Acq From
PRAJointVentureSoldTo sld_to_kunnr Party Sold To
PRAJointVentureHasLegalDesc leg_de_cmt_fl Legal desc.
PRAFieldID field Logical Field
PRAJntVntrSpacingOrdNmbr space_ord_no Space order no.
PRAJntVntrLandPrptyNmbr lpn_no LPN No
PRAJntVntrDOINameIsPrinted doi_prt_fl DOI Print Flag
CreatedByUser oiu_cruser Created By
CreationDateTime oiu_timestamp Timestamp
_UnitVenture _UnitVenture
_CompanyCode _CompanyCode
_PRAVentureStatusCodeVH _PRAVentureStatusCodeVH
_Country _Country
_PrimaryGeogrlLocation _PrimaryGeogrlLocation
_Location _Location
_PRAJointVentureUsageTypeVH _PRAJointVentureUsageTypeVH
_PRAOnshoreOffshoreCodeVH _PRAOnshoreOffshoreCodeVH
_AcquiredFrom _AcquiredFrom
_SoldTo _SoldTo
_Field _Field
_PRAVentureInterestCodeVH _PRAVentureInterestCodeVH

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_PRAMaintVenture.
-- 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_PRAMaintVenture AS
SELECT
  bukrs AS CompanyCode,
  vname AS PRAJointVenture,
  vname_int_cd AS PRAJointVentureInterestCode,
  vname_nm AS PRAJointVentureName,
  shtxt AS PRAJointVentureDesc,
  sts_code AS PRAJointVentureStatus,
  sts_eff_dt AS PRAJointVentureStsEffctvDte,
  Country,
  pri_geo_loc AS PrimaryGeogrlLocation,
  sec_geo_loc AS SecondaryGeogrlLocation,
  acq_dt AS PRAJointVentureAcquiredDate,
  type_cd AS PRAJointVentureUsageType,
  old_vname_no AS PRAJointVentureOldLeaseID,
  unit_fl AS JointVentureIsUnit,
  doi_by_tr_fl AS PRAJointVentureHasDOIByTract,
  drl_fund_fl AS PRAJntVntrIsSubjToDrillFund,
  ons_ofs_cd AS PRAJntVntrOnshoreOffshoreCode,
  acq_from_kunnr AS PRAJointVentureAcquiredFrom,
  sld_to_kunnr AS PRAJointVentureSoldTo,
  leg_de_cmt_fl AS PRAJointVentureHasLegalDesc,
  field AS PRAFieldID,
  space_ord_no AS PRAJntVntrSpacingOrdNmbr,
  lpn_no AS PRAJntVntrLandPrptyNmbr,
  doi_prt_fl AS PRAJntVntrDOINameIsPrinted,
  oiu_cruser AS CreatedByUser,
  oiu_timestamp AS CreationDateTime
FROM oiu_do_jv
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_PRAVentureStatusCodeVH AS _PRAVentureStatusCodeVH ON _PRAVentureStatusCodeVH.PRAVentureStatus = PRAJointVentureStatus  -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON _Country.Country = Country  -- association [1..1]
LEFT OUTER JOIN I_PrimaryGeogrlLocation AS _PrimaryGeogrlLocation ON _PrimaryGeogrlLocation.Country = Country AND _PrimaryGeogrlLocation.PrimaryGeogrlLocation = PrimaryGeogrlLocation  -- association [1..1]
LEFT OUTER JOIN I_SecondaryGeogrlLocation AS _Location ON Country = _Location.Country AND PrimaryGeogrlLocation = _Location.PrimaryGeogrlLocation AND SecondaryGeogrlLocation = _Location.SecondaryGeogrlLocation  -- association [1..1]
LEFT OUTER JOIN I_PRAJointVentureUsageTypeVH AS _PRAJointVentureUsageTypeVH ON _PRAJointVentureUsageTypeVH.PRAJointVentureUsageType = PRAJointVentureUsageType  -- association [1..1]
LEFT OUTER JOIN I_PRAOnshoreOffshoreCodeVH AS _PRAOnshoreOffshoreCodeVH ON _PRAOnshoreOffshoreCodeVH.PRAJntVntrOnshoreOffshoreCode = PRAJntVntrOnshoreOffshoreCode  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _AcquiredFrom ON _AcquiredFrom.Customer = PRAJointVentureAcquiredFrom  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _SoldTo ON _SoldTo.Customer = PRAJointVentureSoldTo  -- association [1..1]
LEFT OUTER JOIN I_GeologicField AS _Field ON PRAFieldID = _Field.GeologicField  -- association [1..1]
LEFT OUTER JOIN I_PRAVentureInterestCodeVH AS _PRAVentureInterestCodeVH ON PRAJointVentureInterestCode = _PRAVentureInterestCodeVH.PRAJointVentureInterestCode  -- association [1..1]
LEFT OUTER JOIN I_PRAMaintUnitVenture AS _UnitVenture ON /* condition not available in parsed metadata */  -- association [0..*]
;