I_PMRPBucket

DDL: I_PMRPBUCKET Type: view_entity BASIC Package: PMRP_ENGINE

A bucket in pMRP

I_PMRPBucket is a Basic CDS View that provides data about "A bucket in pMRP" in SAP S/4HANA. It reads from 1 data source (pmrp_bucket_def) and exposes 10 fields with key fields PMRPReferencePlan, BucketInternalID. It has 3 associations to related views. Part of development package PMRP_ENGINE.

Data Sources (1)

SourceAliasJoin Type
pmrp_bucket_def pmrp_bucket_def from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_PMRPBucketCategory _PMRPBucketCategory $projection.PMRPBucketCategory = _PMRPBucketCategory.PMRPBucketCategory
[0..1] I_CalendarMonth _CalendarMonth $projection.PMRPBucketPeriod = _CalendarMonth.CalendarMonth
[0..1] I_CalendarYear _CalendarYear $projection.PMRPBucketYear = _CalendarYear.CalendarYear

Annotations (6)

NameValueLevelField
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
EndUserText.label A bucket in pMRP view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY PMRPReferencePlan reference_id Reference No.
KEY BucketInternalID bucket_id Bucket ID
PMRPBucketStartDate first_day_date Start Date of Bucket
PMRPBucketEndDate last_day_date End Date of Bucket
PMRPBucketYear bucket_year Year of a Bucket
PMRPBucketPeriod bucket_period Period of a Bucket
PMRPBucketCategory bucket_category Bucket Category
_PMRPBucketCategory _PMRPBucketCategory
_CalendarMonth _CalendarMonth
_CalendarYear _CalendarYear

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_PMRPBucket.
-- 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_PMRPBucket AS
SELECT
  reference_id AS PMRPReferencePlan,
  bucket_id AS BucketInternalID,
  first_day_date AS PMRPBucketStartDate,
  last_day_date AS PMRPBucketEndDate,
  bucket_year AS PMRPBucketYear,
  bucket_period AS PMRPBucketPeriod,
  bucket_category AS PMRPBucketCategory
FROM pmrp_bucket_def
LEFT OUTER JOIN I_PMRPBucketCategory AS _PMRPBucketCategory ON PMRPBucketCategory = _PMRPBucketCategory.PMRPBucketCategory  -- association [1..1]
LEFT OUTER JOIN I_CalendarMonth AS _CalendarMonth ON PMRPBucketPeriod = _CalendarMonth.CalendarMonth  -- association [0..1]
LEFT OUTER JOIN I_CalendarYear AS _CalendarYear ON PMRPBucketYear = _CalendarYear.CalendarYear  -- association [0..1]
;