I_PRAMaintDOIOwner

DDL: I_PRAMAINTDOIOWNER Type: view BASIC

Maintain DOI Ownership

I_PRAMaintDOIOwner is a Basic CDS View that provides data about "Maintain DOI Ownership" in SAP S/4HANA. It reads from 1 data source (oiu_do_do) and exposes 66 fields with key fields CompanyCode, PRAJointVenture, DivisionOfInterest, PRACustomerSupplierCode, PRAOwner. It has 22 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oiu_do_do oiu_do_do from

Associations (22)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_PRAJointVenture _PRAJointVenture _PRAJointVenture.PRAJointVenture = $projection.PRAJointVenture and _PRAJointVenture.CompanyCode = $projection.CompanyCode
[1..1] I_PRACustomerSupplierCodeVH _PRACustomerSupplierCodeVH $projection.PRACustomerSupplierCode = _PRACustomerSupplierCodeVH.PRACustomerSupplierCode
[0..1] I_PRAOwner _PRAOwner $projection.PRAOwner = _PRAOwner.PRAOwner
[1..1] I_OwnerInterestType _OwnerInterestType $projection.OwnerInterestType = _OwnerInterestType.OwnerInterestType
[1..1] I_SuspenseReason _SuspenseReason $projection.SuspenseReason = _SuspenseReason.SuspenseReason
[1..1] I_TaxBasis _TaxBasis $projection.TaxBasis = _TaxBasis.TaxBasis
[1..1] I_PRAPayOutCodeVH _PRAPayOutCodeVH $projection.PRAPayoutCode = _PRAPayOutCodeVH.PRAPayoutCode
[1..1] I_OwnerPaymentStatus _OwnerPaymentStatus $projection.OwnerPaymentStatus = _OwnerPaymentStatus.OwnerPaymentStatus
[1..1] I_PRAEntitlementCodeVH _PRAEntitlementCodeVH $projection.PRAEntitlementCode = _PRAEntitlementCodeVH.PRAEntitlementCode
[1..1] I_PRALegalForm _PRALegalForm $projection.PRALegalForm = _PRALegalForm.PRALegalForm
[1..1] I_OwnerInterestCategory _OwnerInterestCategory $projection.OwnerInterestCategory = _OwnerInterestCategory.OwnerInterestCategory
[1..1] I_Currency _Currency $projection.CompanyCodeCurrency = _Currency.Currency
[1..1] I_OwnrAdvncArrearsPaytCodeVH _OwnrAdvncArrearsPaytCodeVH $projection.DOIOwnerAdvncArrearsPaytCode = _OwnrAdvncArrearsPaytCodeVH.DOIOwnerAdvncArrearsPaytCode
[1..1] I_PRAPayOnLeaseUseFuelCodeVH _PayOnLeaseUseFuelCodeVH $projection.DOIOwnerLeaseUsePaytCode = _PayOnLeaseUseFuelCodeVH.DOIOwnerLeaseUsePaytCode
[1..1] I_PRAMaintCmbndProdCode _PRAMaintCmbndProdCode _PRAMaintDOI.PRACombinedProductCode = _PRAMaintCmbndProdCode.PRACombinedProductCode
[0..*] I_OwnerAttributeGroup _OwnerAttributeGroup $projection.OwnerAttributeGroup = _OwnerAttributeGroup.OwnerAttributeGroup
[0..1] I_PRADivisionOrderLease _PRADivisionOrderLease $projection.DOIOwnerLeaseID = _PRADivisionOrderLease.DOIOwnerLeaseID
[1..1] I_DivisionOfInterest _DivisionOfInterest $projection.CompanyCode = _DivisionOfInterest.CompanyCode and $projection.PRAJointVenture = _DivisionOfInterest.JointVenture and $projection.DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest
[0..*] I_PRAMaintMarketingExempt _PRAMaintMarketingExempt
[0..*] I_PRAMaintStateTaxExempt _PRAMaintStateTaxExempt
[0..*] I_PRAMaintSlidingScaleHdr _PRAMaintSlidingScaleHdr

Annotations (13)

NameValueLevelField
EndUserText.label Maintain DOI Ownership view
AbapCatalog.sqlViewName IPRADODO view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey DivisionOfInterest view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (66)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Value
KEY PRAJointVenture vname Volatility Name
KEY DivisionOfInterest doi_no Venture/DOI
KEY PRACustomerSupplierCode cust_vend_cd Ocust vend cd
KEY PRAOwner own_no Owner Number
KEY OwnerInterestType own_int_type_cd Opart int type
KEY OwnerInterestSequence own_isq_no Own. ISQ
KEY DOIOwnerEffectiveFromDate eff_from_dt Effective From Date
DOIOwnerEffectiveToDate eff_to_dt Effective To Date
PRADivisionOfInterestNmbr do_no Div.int.no
OwnerIsJntIntrstBilgEnabled jib_offs_fl JIB Offset
NetRevenueInterestRatio nri_pc NRI
SuspenseReason susp_cd Suspense Reason
TaxBasis tax_free_cd Tax Free
PRABearerGroup bg_no Bearer Group
PRAPayoutCode pyout_cd Payout Code
OwnerPaymentStatus pay_cd Pay Code
PRAEntitlementCode entl_cd Entitlement CD
DOIOwnerIsSlidingScEnbld ssc_fl Sliding Scale
DOIOwnerIsPctOfProceedsEnbld mms_pop_comp_fl MMS Proceeds =
DOIOwnerIsDualAcctgEnbld dual_acct_fl Dual Acct Fl
PRALegalForm enty_cd Entity Type
DOIOwnerHasAcctgEntrOvrrde acct_ent_fl Acct. Override
OwnerInterestCategory int_cat_cd Interest Cat.
DOIOwnerMinRoyaltyDate min_roy_dt Min. Royalty Dt.
CompanyCodeCurrency do_curr Currency
DOIOwnerMinRoyaltyAmount min_roy_am Min. Royalty Am.
DOIOwnerAdvncArrearsPaytCode adv_arrs_cd Adv. Arrears
DOIOwnerCarriedBearerGrpCode carr_bg_cd Carried Bearer
DOIOwnerLeaseUsePaytCode lse_use_pmt_cd Lease Use Fuel
JntIntrstBilgPartner jib_partn JIB Partner
DOIOwnerProdnPaytOwner pp_kunnr Prod. Pay. Own.
DOIOwnrHasTakeInKindContrExprd mms_recon_fl MMS Reconcile
CreatedByUser oiu_cruser Created By
CreationDateTime oiu_timestamp Timestamp
DOIOwnerHasSettlmtDiversity set_div Set Div
DOIOwnerLeaseID lease_id Lease ID
DOIOwnerNetMineralAcresVal net_mineral_acres Net Mineral Acres
GrossRevenueInterestRatio gri_pc GRI
OwnerAttributeGroup oag_id Attribute Group
DynSettlmtDiversityInstrn dsd_instr DSD Instruction
DOIOwnerRecdTitleBearerGrp rt_bg_no Record Title BG
PRACombinedProductCode _PRAMaintDOI PRACombinedProductCode
_PRAMaintDOI _PRAMaintDOI
_PRAMaintMarketingExempt _PRAMaintMarketingExempt
_PRAMaintStateTaxExempt _PRAMaintStateTaxExempt
_PRAMaintSlidingScaleHdr _PRAMaintSlidingScaleHdr
_CompanyCode _CompanyCode
_PRAJointVenture _PRAJointVenture
_PRACustomerSupplierCodeVH _PRACustomerSupplierCodeVH
_PRAOwner _PRAOwner
_OwnerInterestType _OwnerInterestType
_SuspenseReason _SuspenseReason
_TaxBasis _TaxBasis
_PRAPayOutCodeVH _PRAPayOutCodeVH
_OwnerPaymentStatus _OwnerPaymentStatus
_PRAEntitlementCodeVH _PRAEntitlementCodeVH
_PRALegalForm _PRALegalForm
_OwnerInterestCategory _OwnerInterestCategory
_Currency _Currency
_OwnrAdvncArrearsPaytCodeVH _OwnrAdvncArrearsPaytCodeVH
_PayOnLeaseUseFuelCodeVH _PayOnLeaseUseFuelCodeVH
_PRAMaintCmbndProdCode _PRAMaintCmbndProdCode
_OwnerAttributeGroup _OwnerAttributeGroup
_PRADivisionOrderLease _PRADivisionOrderLease
_DivisionOfInterest _DivisionOfInterest

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_PRAMaintDOIOwner.
-- 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_PRAMaintDOIOwner AS
SELECT
  bukrs AS CompanyCode,
  vname AS PRAJointVenture,
  doi_no AS DivisionOfInterest,
  cust_vend_cd AS PRACustomerSupplierCode,
  own_no AS PRAOwner,
  own_int_type_cd AS OwnerInterestType,
  own_isq_no AS OwnerInterestSequence,
  eff_from_dt AS DOIOwnerEffectiveFromDate,
  eff_to_dt AS DOIOwnerEffectiveToDate,
  do_no AS PRADivisionOfInterestNmbr,
  jib_offs_fl AS OwnerIsJntIntrstBilgEnabled,
  nri_pc AS NetRevenueInterestRatio,
  susp_cd AS SuspenseReason,
  tax_free_cd AS TaxBasis,
  bg_no AS PRABearerGroup,
  pyout_cd AS PRAPayoutCode,
  pay_cd AS OwnerPaymentStatus,
  entl_cd AS PRAEntitlementCode,
  ssc_fl AS DOIOwnerIsSlidingScEnbld,
  mms_pop_comp_fl AS DOIOwnerIsPctOfProceedsEnbld,
  dual_acct_fl AS DOIOwnerIsDualAcctgEnbld,
  enty_cd AS PRALegalForm,
  acct_ent_fl AS DOIOwnerHasAcctgEntrOvrrde,
  int_cat_cd AS OwnerInterestCategory,
  min_roy_dt AS DOIOwnerMinRoyaltyDate,
  do_curr AS CompanyCodeCurrency,
  min_roy_am AS DOIOwnerMinRoyaltyAmount,
  adv_arrs_cd AS DOIOwnerAdvncArrearsPaytCode,
  carr_bg_cd AS DOIOwnerCarriedBearerGrpCode,
  lse_use_pmt_cd AS DOIOwnerLeaseUsePaytCode,
  jib_partn AS JntIntrstBilgPartner,
  pp_kunnr AS DOIOwnerProdnPaytOwner,
  mms_recon_fl AS DOIOwnrHasTakeInKindContrExprd,
  oiu_cruser AS CreatedByUser,
  oiu_timestamp AS CreationDateTime,
  set_div AS DOIOwnerHasSettlmtDiversity,
  lease_id AS DOIOwnerLeaseID,
  net_mineral_acres AS DOIOwnerNetMineralAcresVal,
  gri_pc AS GrossRevenueInterestRatio,
  oag_id AS OwnerAttributeGroup,
  dsd_instr AS DynSettlmtDiversityInstrn,
  rt_bg_no AS DOIOwnerRecdTitleBearerGrp,
  _PRAMaintDOI.PRACombinedProductCode AS PRACombinedProductCode
FROM oiu_do_do
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_PRACustomerSupplierCodeVH AS _PRACustomerSupplierCodeVH ON PRACustomerSupplierCode = _PRACustomerSupplierCodeVH.PRACustomerSupplierCode  -- association [1..1]
LEFT OUTER JOIN I_PRAOwner AS _PRAOwner ON PRAOwner = _PRAOwner.PRAOwner  -- association [0..1]
LEFT OUTER JOIN I_OwnerInterestType AS _OwnerInterestType ON OwnerInterestType = _OwnerInterestType.OwnerInterestType  -- association [1..1]
LEFT OUTER JOIN I_SuspenseReason AS _SuspenseReason ON SuspenseReason = _SuspenseReason.SuspenseReason  -- association [1..1]
LEFT OUTER JOIN I_TaxBasis AS _TaxBasis ON TaxBasis = _TaxBasis.TaxBasis  -- association [1..1]
LEFT OUTER JOIN I_PRAPayOutCodeVH AS _PRAPayOutCodeVH ON PRAPayoutCode = _PRAPayOutCodeVH.PRAPayoutCode  -- association [1..1]
LEFT OUTER JOIN I_OwnerPaymentStatus AS _OwnerPaymentStatus ON OwnerPaymentStatus = _OwnerPaymentStatus.OwnerPaymentStatus  -- association [1..1]
LEFT OUTER JOIN I_PRAEntitlementCodeVH AS _PRAEntitlementCodeVH ON PRAEntitlementCode = _PRAEntitlementCodeVH.PRAEntitlementCode  -- association [1..1]
LEFT OUTER JOIN I_PRALegalForm AS _PRALegalForm ON PRALegalForm = _PRALegalForm.PRALegalForm  -- association [1..1]
LEFT OUTER JOIN I_OwnerInterestCategory AS _OwnerInterestCategory ON OwnerInterestCategory = _OwnerInterestCategory.OwnerInterestCategory  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON CompanyCodeCurrency = _Currency.Currency  -- association [1..1]
LEFT OUTER JOIN I_OwnrAdvncArrearsPaytCodeVH AS _OwnrAdvncArrearsPaytCodeVH ON DOIOwnerAdvncArrearsPaytCode = _OwnrAdvncArrearsPaytCodeVH.DOIOwnerAdvncArrearsPaytCode  -- association [1..1]
LEFT OUTER JOIN I_PRAPayOnLeaseUseFuelCodeVH AS _PayOnLeaseUseFuelCodeVH ON DOIOwnerLeaseUsePaytCode = _PayOnLeaseUseFuelCodeVH.DOIOwnerLeaseUsePaytCode  -- association [1..1]
LEFT OUTER JOIN I_PRAMaintCmbndProdCode AS _PRAMaintCmbndProdCode ON _PRAMaintDOI.PRACombinedProductCode = _PRAMaintCmbndProdCode.PRACombinedProductCode  -- association [1..1]
LEFT OUTER JOIN I_OwnerAttributeGroup AS _OwnerAttributeGroup ON OwnerAttributeGroup = _OwnerAttributeGroup.OwnerAttributeGroup  -- association [0..*]
LEFT OUTER JOIN I_PRADivisionOrderLease AS _PRADivisionOrderLease ON DOIOwnerLeaseID = _PRADivisionOrderLease.DOIOwnerLeaseID  -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON CompanyCode = _DivisionOfInterest.CompanyCode AND PRAJointVenture = _DivisionOfInterest.JointVenture AND DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest  -- association [1..1]
LEFT OUTER JOIN I_PRAMaintMarketingExempt AS _PRAMaintMarketingExempt ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_PRAMaintStateTaxExempt AS _PRAMaintStateTaxExempt ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_PRAMaintSlidingScaleHdr AS _PRAMaintSlidingScaleHdr ON /* condition not available in parsed metadata */  -- association [0..*]
;