SEPMRA_I_ProductReviewPost

DDL: SEPMRA_I_PRODUCTREVIEWPOST Type: view

Product Review Post

SEPMRA_I_ProductReviewPost is a CDS View that provides data about "Product Review Post" in SAP S/4HANA. It reads from 1 data source (SEPM_I_CollaborativeReviewPost) and exposes 14 fields with key field ProductReviewPostUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
SEPM_I_CollaborativeReviewPost ReviewPost from

Associations (3)

CardinalityTargetAliasCondition
[1..1] SEPMRA_I_ProductReview _Review $projection.ProductReviewUUID = _Review.ProductReviewUUID
[0..*] SEPMRA_I_ProductReviewPostMark _Mark $projection.ProductReviewPostUUID = _Mark.ProductReviewPostUUID
[0..1] SEPMRA_I_ContactPerson _ContactPerson $projection.ContactPerson = _ContactPerson.ContactPerson

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName SEPMRAIPDREVPOST view
AbapCatalog.compiler.compareFilter true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Product Review Post view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY ProductReviewPostUUID SEPM_I_CollaborativeReviewPost CollaborativeReviewPostUUID Tree Model: Node Key
ReviewDateTime
datsasReviewDate Date
ReviewRatingValue
ReviewPostTitle SEPM_I_CollaborativeReviewPost ReviewPostTitle Rating Title
ReviewPostText SEPM_I_CollaborativeReviewPost ReviewPostText
NumberOfAffirmativeAnswers
TotalNumberOfAnswers SEPM_I_CollaborativeReviewPost TotalNumberOfAnswers Number of Responses
ContactPerson
ContactPersonUserName ContactPerson SystemUser
associations_Rating
_Review _Review
_Mark _Mark
_ContactPerson _ContactPerson

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 SEPMRA_I_ProductReviewPost.
-- 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 SEPMRA_I_ProductReviewPost AS
SELECT
  ReviewPost.CollaborativeReviewPostUUID AS ProductReviewPostUUID,
  cast(ReviewPost.ReviewDateTime as sepmra_reviewdatetime preserving type) AS ReviewDateTime,
  cast( left(cast(ReviewDateTime as abap.char(17)), 8) as abap.dats) as ReviewDate AS datsasReviewDate,
  cast( ceil(ReviewPost.ReviewRatingValue) as sepmra_numberofstars ) AS ReviewRatingValue,
  ReviewPost.ReviewPostTitle AS ReviewPostTitle,
  ReviewPost.ReviewPostText AS ReviewPostText,
  cast(ReviewPost.NumberOfAffirmativeAnswers as sepmra_reviewhelpfulnum preserving type) AS NumberOfAffirmativeAnswers,
  ReviewPost.TotalNumberOfAnswers AS TotalNumberOfAnswers,
  cast( ContactPerson.ContactPerson as sepmra_contactperson preserving type ) AS ContactPerson,
  ContactPerson.SystemUser AS ContactPersonUserName
FROM SEPM_I_CollaborativeReviewPost AS ReviewPost
LEFT OUTER JOIN SEPMRA_I_ProductReview AS _Review ON ProductReviewUUID = _Review.ProductReviewUUID  -- association [1..1]
LEFT OUTER JOIN SEPMRA_I_ProductReviewPostMark AS _Mark ON ProductReviewPostUUID = _Mark.ProductReviewPostUUID  -- association [0..*]
LEFT OUTER JOIN SEPMRA_I_ContactPerson AS _ContactPerson ON ContactPerson = _ContactPerson.ContactPerson  -- association [0..1]
;