I_PRAProdBalcngAgreement

DDL: I_PRAPRODBALCNGAGREEMENT Type: view_entity BASIC

PRA Product Balancing Agreement

I_PRAProdBalcngAgreement is a Basic CDS View (Fact) that provides data about "PRA Product Balancing Agreement" in SAP S/4HANA. It reads from 1 data source (oiubl01_pba) and exposes 22 fields with key field ProductBalancingAgreement. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oiubl01_pba oiubl01_pba from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_PRAProdBalcngAgreementGroup _BalancingAgreementGroup $projection.ProductBalancingAgreementGroup = _BalancingAgreementGroup.ProductBalancingAgreementGroup
[0..1] I_PRABalancingProductGroup _BalancingProductGroup $projection.BalancingProductGroup = _BalancingProductGroup.BalancingProductGroup
[0..1] I_PRADelivNtwkMsmtGrp _MeasurementGroup $projection.PRAMeasurementGroupID = _MeasurementGroup.PRAMeasurementGroupID

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label PRA Product Balancing Agreement view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
Analytics.dataCategory #FACT view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view
ObjectModel.modelingPattern #ANALYTICAL_FACT view
ObjectModel.sapObjectNodeType.name PRAProductBalancingAgreement view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY ProductBalancingAgreement pba_no PBA No
EffectiveFromDate eff_from_dt Effective From Date
EffectiveToDate eff_to_dt Effective To Date
ProductBalancingAgreementGroup PBA Group
BalancingProductGroup BlProduct Group
ProdBalcngAgreementDescription pba_de PBA Name
PRAMeasurementGroupID Meas. Group
BalancingBasis bl_basis Bal Basis
ProfilePreparerName prpr_nm Preparer Nm
PreparerPhoneNumber prpr_phone Preparer Phone
LegalLocationDescription legal_loc Legal Location
ReportIsDetailed detl_rpt_fl Detail Rpt Flag
ExtProdBalcngAgreementNumber ext_pba_no External PBA
RecordIsMarkedForDeletion loevm End Contract
CreatedByUser oiu_cruser Created By
CreationDateTime oiu_timestamp Timestamp
ReportingIsExternal ext_rpt_fl Ext. reporting
LastChangedByUser change_user User Name
LastChangeDateTime change_timestamp Time Stamp
_BalancingAgreementGroup _BalancingAgreementGroup
_BalancingProductGroup _BalancingProductGroup
_MeasurementGroup _MeasurementGroup

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_PRAProdBalcngAgreement.
-- 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_PRAProdBalcngAgreement AS
SELECT
  pba_no AS ProductBalancingAgreement,
  eff_from_dt AS EffectiveFromDate,
  eff_to_dt AS EffectiveToDate,
  cast( pba_grp as oiubl01_pba_group preserving type ) AS ProductBalancingAgreementGroup,
  cast( product_grp as oiubl01_product_grp preserving type ) AS BalancingProductGroup,
  pba_de AS ProdBalcngAgreementDescription,
  cast( meas_grp_id as oiu_meas_grp_id preserving type ) AS PRAMeasurementGroupID,
  bl_basis AS BalancingBasis,
  prpr_nm AS ProfilePreparerName,
  prpr_phone AS PreparerPhoneNumber,
  legal_loc AS LegalLocationDescription,
  detl_rpt_fl AS ReportIsDetailed,
  ext_pba_no AS ExtProdBalcngAgreementNumber,
  loevm AS RecordIsMarkedForDeletion,
  oiu_cruser AS CreatedByUser,
  oiu_timestamp AS CreationDateTime,
  ext_rpt_fl AS ReportingIsExternal,
  change_user AS LastChangedByUser,
  change_timestamp AS LastChangeDateTime
FROM oiubl01_pba
LEFT OUTER JOIN I_PRAProdBalcngAgreementGroup AS _BalancingAgreementGroup ON ProductBalancingAgreementGroup = _BalancingAgreementGroup.ProductBalancingAgreementGroup  -- association [0..1]
LEFT OUTER JOIN I_PRABalancingProductGroup AS _BalancingProductGroup ON BalancingProductGroup = _BalancingProductGroup.BalancingProductGroup  -- association [0..1]
LEFT OUTER JOIN I_PRADelivNtwkMsmtGrp AS _MeasurementGroup ON PRAMeasurementGroupID = _MeasurementGroup.PRAMeasurementGroupID  -- association [0..1]
;