UPOV_UOM_STD_UNIT

DDL: UPO_INT_V_UOM_STD_UNIT SQL: UPOS_UOM_STD_UT Type: view

Standardized Measurement Units

UPOV_UOM_STD_UNIT is a CDS View that provides data about "Standardized Measurement Units" in SAP S/4HANA. It reads from 7 data sources and exposes 5 fields with key fields BusinessKey, Dimension.

Data Sources (7)

SourceAliasJoin Type
t006 dimension inner
gho_imptt_ext impt inner
gho_imrg_ext imrge inner
gho_imrg_std_h Measurement_hdr from
gho_imrg_std_i Measurement_item inner
gho_uom_rule_h RuleUoMHdr inner
gho_uom_rule_i RuleUoMItem inner

Parameters (1)

NameTypeDefault
p_bus_key gho_meas_guid

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName UPOS_UOM_STD_UT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Standardized Measurement Units view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY BusinessKey gho_imrg_std_h bus_key Meas. GUIDD
KEY Dimension t006 dimid Dimension
std_uomendasUnit
ConversionGroup gho_uom_rule_h conv_grp Conv. Grp.
StdVolume

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 UPOV_UOM_STD_UNIT.
-- 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: UPOS_UOM_STD_UT
-- Parameters: p_bus_key : gho_meas_guid

CREATE VIEW UPOV_UOM_STD_UNIT AS
SELECT
  Measurement_hdr.bus_key AS BusinessKey,
  dimension.dimid AS Dimension,
  case when RuleUoMItem.dimension = dimension.dimid then RuleUoMItem.uom else Measurement_item.std_uom end as Unit AS std_uomendasUnit,
  RuleUoMHdr.conv_grp AS ConversionGroup,
  cast(Measurement_item.std_val as abap.quan( 13, 3 )) AS StdVolume
FROM gho_imrg_std_h AS Measurement_hdr
INNER JOIN gho_imrg_std_i AS Measurement_item ON /* join condition not captured in parsed metadata */
INNER JOIN t006 AS dimension ON /* join condition not captured in parsed metadata */
INNER JOIN gho_imrg_ext AS imrge ON /* join condition not captured in parsed metadata */
INNER JOIN gho_imptt_ext AS impt ON /* join condition not captured in parsed metadata */
INNER JOIN gho_uom_rule_h AS RuleUoMHdr ON /* join condition not captured in parsed metadata */
INNER JOIN gho_uom_rule_i AS RuleUoMItem ON /* join condition not captured in parsed metadata */
;