I_PRAProdBalcngAgreement
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)
| Source | Alias | Join Type |
|---|---|---|
| oiubl01_pba | oiubl01_pba | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA