I_PMRPBucketAssignment

DDL: I_PMRPBUCKETASSIGNMENT SQL: IPMRPBUCKETASGN Type: view BASIC

Assignment of a day to a time bucket

I_PMRPBucketAssignment is a Basic CDS View that provides data about "Assignment of a day to a time bucket" in SAP S/4HANA. It reads from 1 data source (pmrp_bucket) and exposes 7 fields with key fields PMRPReferencePlan, CalendarDate, PMRPBucketCategory. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
pmrp_bucket pmrp_bucket from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PMRPBucket _Bucket _Bucket.PMRPReferencePlan = $projection.PMRPReferencePlan and _Bucket.BucketInternalID = $projection.BucketInternalID and _Bucket.PMRPBucketCategory = $projection.PMRPBucketCategory

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPMRPBUCKETASGN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
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 Assignment of a day to a time bucket view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY PMRPReferencePlan reference_id Reference No.
KEY CalendarDate day_date Date
KEY PMRPBucketCategory bucket_category Bucket Category
BucketInternalID bucket_id Bucket ID
PMRPBucketStartDate first_day_date Start Date of Bucket
PMRPBucketEndDate last_day_date End Date of Bucket
_Bucket _Bucket

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_PMRPBucketAssignment.
-- 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.
-- SQL view name: IPMRPBUCKETASGN

CREATE VIEW I_PMRPBucketAssignment AS
SELECT
  reference_id AS PMRPReferencePlan,
  day_date AS CalendarDate,
  bucket_category AS PMRPBucketCategory,
  bucket_id AS BucketInternalID,
  first_day_date AS PMRPBucketStartDate,
  last_day_date AS PMRPBucketEndDate
FROM pmrp_bucket
LEFT OUTER JOIN I_PMRPBucket AS _Bucket ON _Bucket.PMRPReferencePlan = PMRPReferencePlan AND _Bucket.BucketInternalID = BucketInternalID AND _Bucket.PMRPBucketCategory = PMRPBucketCategory  -- association [1..1]
;