I_PRAMaintMarketingExempt

DDL: I_PRAMAINTMARKETINGEXEMPT Type: view BASIC

Maintain Marketing Exemption XI

I_PRAMaintMarketingExempt is a Basic CDS View that provides data about "Maintain Marketing Exemption XI" in SAP S/4HANA. It reads from 2 data sources (oiu_do_do, oiu_do_mkex) and exposes 26 fields with key fields CompanyCode, PRAJointVenture, DivisionOfInterest, PRACustomerSupplierCode, PRAOwner. It has 8 associations to related views.

Data Sources (2)

SourceAliasJoin Type
oiu_do_do oiu_do_do inner
oiu_do_mkex oiu_do_mkex from

Associations (8)

CardinalityTargetAliasCondition
[0..1] I_MarketingType _MarketingType $projection.MarketingType = _MarketingType.MarketingType and $projection.MajorProduct = _MarketingType.MajorProduct
[0..1] I_MajorProduct _MajorProduct $projection.MajorProduct = _MajorProduct.MajorProduct
[0..1] I_PRAMatlMjrProdMappg _PRAMatlMjrProdMappg $projection.PRAMaterial = _PRAMatlMjrProdMappg.Material
[1..1] I_OwnerInterestType _OwnerInterestType $projection.OwnerInterestType = _OwnerInterestType.OwnerInterestType
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_PRAJointVenture _JointVenture $projection.CompanyCode = _JointVenture.CompanyCode and $projection.PRAJointVenture = _JointVenture.PRAJointVenture
[0..1] I_PRAOwner _PRAOwner $projection.PRAOwner = _PRAOwner.PRAOwner
[0..1] I_PRACustomerSupplierCodeVH _PRACustomerSupplierCodeVH $projection.PRACustomerSupplierCode = _PRACustomerSupplierCodeVH.PRACustomerSupplierCode

Annotations (12)

NameValueLevelField
EndUserText.label Maintain Marketing Exemption XI view
AbapCatalog.sqlViewName IPRAMKEX 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
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode oiu_do_do bukrs Value
KEY PRAJointVenture oiu_do_do vname Volatility Name
KEY DivisionOfInterest oiu_do_do doi_no Venture/DOI
KEY PRACustomerSupplierCode oiu_do_do cust_vend_cd Ocust vend cd
KEY PRAOwner oiu_do_do own_no Owner Number
KEY OwnerInterestType oiu_do_do own_int_type_cd Opart int type
KEY OwnerInterestSequence oiu_do_do own_isq_no Own. ISQ
KEY DOIOwnerEffectiveFromDate oiu_do_do eff_from_dt Effective From Date
KEY PRADivisionOfInterestNmbr oiu_do_mkex do_no Div.int.no
KEY MajorProduct oiu_do_mkex majpd_cd Major Product
KEY MarketingType oiu_do_mkex mk_type_cd Mrktg Type Code
KEY PRAMaterial oiu_do_mkex matnr Vehicle Model
DOIOwnerIsExtReimbmtExmpt oiu_do_mkex ext_rmb_fl Ext.rmb
DOIOwnerIsIntDeductionExmpt oiu_do_mkex int_ded_fl Int.deductn
DOIOwnerIsExtDeductionExmpt oiu_do_mkex ext_ded_fl Ext.deduct.
CreatedByUser oiu_do_mkex oiu_cruser Created By
CreationDateTime oiu_do_mkex oiu_timestamp Timestamp
_PRAMaintDOIOwner _PRAMaintDOIOwner
_MarketingType _MarketingType
_MajorProduct _MajorProduct
_PRAMatlMjrProdMappg _PRAMatlMjrProdMappg
_OwnerInterestType _OwnerInterestType
_CompanyCode _CompanyCode
_JointVenture _JointVenture
_PRAOwner _PRAOwner
_PRACustomerSupplierCodeVH _PRACustomerSupplierCodeVH

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_PRAMaintMarketingExempt.
-- 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_PRAMaintMarketingExempt AS
SELECT
  oiu_do_do.bukrs AS CompanyCode,
  oiu_do_do.vname AS PRAJointVenture,
  oiu_do_do.doi_no AS DivisionOfInterest,
  oiu_do_do.cust_vend_cd AS PRACustomerSupplierCode,
  oiu_do_do.own_no AS PRAOwner,
  oiu_do_do.own_int_type_cd AS OwnerInterestType,
  oiu_do_do.own_isq_no AS OwnerInterestSequence,
  oiu_do_do.eff_from_dt AS DOIOwnerEffectiveFromDate,
  oiu_do_mkex.do_no AS PRADivisionOfInterestNmbr,
  oiu_do_mkex.majpd_cd AS MajorProduct,
  oiu_do_mkex.mk_type_cd AS MarketingType,
  oiu_do_mkex.matnr AS PRAMaterial,
  oiu_do_mkex.ext_rmb_fl AS DOIOwnerIsExtReimbmtExmpt,
  oiu_do_mkex.int_ded_fl AS DOIOwnerIsIntDeductionExmpt,
  oiu_do_mkex.ext_ded_fl AS DOIOwnerIsExtDeductionExmpt,
  oiu_do_mkex.oiu_cruser AS CreatedByUser,
  oiu_do_mkex.oiu_timestamp AS CreationDateTime
FROM oiu_do_mkex
INNER JOIN oiu_do_do ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MarketingType AS _MarketingType ON MarketingType = _MarketingType.MarketingType AND MajorProduct = _MarketingType.MajorProduct  -- association [0..1]
LEFT OUTER JOIN I_MajorProduct AS _MajorProduct ON MajorProduct = _MajorProduct.MajorProduct  -- association [0..1]
LEFT OUTER JOIN I_PRAMatlMjrProdMappg AS _PRAMatlMjrProdMappg ON PRAMaterial = _PRAMatlMjrProdMappg.Material  -- association [0..1]
LEFT OUTER JOIN I_OwnerInterestType AS _OwnerInterestType ON OwnerInterestType = _OwnerInterestType.OwnerInterestType  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_PRAJointVenture AS _JointVenture ON CompanyCode = _JointVenture.CompanyCode AND PRAJointVenture = _JointVenture.PRAJointVenture  -- association [1..1]
LEFT OUTER JOIN I_PRAOwner AS _PRAOwner ON PRAOwner = _PRAOwner.PRAOwner  -- association [0..1]
LEFT OUTER JOIN I_PRACustomerSupplierCodeVH AS _PRACustomerSupplierCodeVH ON PRACustomerSupplierCode = _PRACustomerSupplierCodeVH.PRACustomerSupplierCode  -- association [0..1]
;