P_DaGdsCmplRqRsltMotRankIdMax

DDL: P_DAGDSCMPLRQRSLTMOTRANKIDMAX Type: view_entity CONSUMPTION Package: EHDGM_BO_CRR

Max(rank,ID) of Mode of Transp of DG CRR

P_DaGdsCmplRqRsltMotRankIdMax is a Consumption CDS View that provides data about "Max(rank,ID) of Mode of Transp of DG CRR" in SAP S/4HANA. It reads from 2 data sources (P_DaGdsCmplRqRsltMotRank, P_DaGdsCmplRqRsltMotRankMax) and exposes 3 fields with key field CmplRqRsltUUID. Part of development package EHDGM_BO_CRR.

Data Sources (2)

SourceAliasJoin Type
P_DaGdsCmplRqRsltMotRank P_DaGdsCmplRqRsltMotRank inner
P_DaGdsCmplRqRsltMotRankMax P_DaGdsCmplRqRsltMotRankMax from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CmplRqRsltUUID P_DaGdsCmplRqRsltMotRank CmplRqRsltUUID SDS Assessment
DngrsGoodsModeOfTransportRank P_DaGdsCmplRqRsltMotRank DngrsGoodsModeOfTransportRank
DngrsGoodsModeOfTransport

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 P_DaGdsCmplRqRsltMotRankIdMax.
-- 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 P_DaGdsCmplRqRsltMotRankIdMax AS
SELECT
  P_DaGdsCmplRqRsltMotRank.CmplRqRsltUUID AS CmplRqRsltUUID,
  P_DaGdsCmplRqRsltMotRank.DngrsGoodsModeOfTransportRank AS DngrsGoodsModeOfTransportRank,
  max(P_DaGdsCmplRqRsltMotRank.DngrsGoodsModeOfTransport) AS DngrsGoodsModeOfTransport
FROM P_DaGdsCmplRqRsltMotRankMax
INNER JOIN P_DaGdsCmplRqRsltMotRank ON /* join condition not captured in parsed metadata */
;