P_CollRuleValueToCollStrgy

DDL: P_COLLRULEVALUETOCOLLSTRGY SQL: P_VALUETOCOLLSTR Type: view BASIC

P_CollRuleValueToCollStrgy is a Basic CDS View in SAP S/4HANA. It reads from 5 data sources (udm_b_rule_selop, udm_rule_b_rule, udm_str_rule, udm_str_selop, udm_strategy) and exposes 12 fields with key fields CollectionStrategy, CollRuleSqncNmbrInStrgy, CollSelOptnCntrInStrgy.

Data Sources (5)

SourceAliasJoin Type
udm_b_rule_selop _B_RULE_SELOP inner
udm_rule_b_rule _RULE_B_RULE inner
udm_str_rule _str_rule from
udm_str_selop _STR_SELOP left_outer
udm_strategy _strategy inner

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName P_VALUETOCOLLSTR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CollectionStrategy udm_str_rule coll_strategy Strategy
KEY CollRuleSqncNmbrInStrgy udm_str_rule sequence_id Strategy Number
KEY CollSelOptnCntrInStrgy udm_str_selop counter Version
CollBasicRuleStruc udm_b_rule_selop basis_rule_str Bas. Rule Stru.
CollBasicRuleFieldName udm_b_rule_selop fieldname UI Group FieldName
SetRangeSign udm_str_selop sign Type of SIGN component in row type of a Ranges type
SetRangeOption udm_str_selop sel_option Select Option
SetRangeFromValue udm_str_selop low Value from
SetRangeToValue udm_str_selop high Value up to
CollStrgyCurrency udm_strategy currency Valuation Crcy
MinTargetAmount
MaxTargetAmount

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_CollRuleValueToCollStrgy.
-- 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: P_VALUETOCOLLSTR

CREATE VIEW P_CollRuleValueToCollStrgy AS
SELECT
  _str_rule.coll_strategy AS CollectionStrategy,
  _str_rule.sequence_id AS CollRuleSqncNmbrInStrgy,
  _STR_SELOP.counter AS CollSelOptnCntrInStrgy,
  _B_RULE_SELOP.basis_rule_str AS CollBasicRuleStruc,
  _B_RULE_SELOP.fieldname AS CollBasicRuleFieldName,
  _STR_SELOP.sign AS SetRangeSign,
  _STR_SELOP.sel_option AS SetRangeOption,
  _STR_SELOP.low AS SetRangeFromValue,
  _STR_SELOP.high AS SetRangeToValue,
  _strategy.currency AS CollStrgyCurrency,
  cast( _str_rule.sequence_id as udm_br_item_amount) AS MinTargetAmount,
  cast( _str_rule.sequence_id as udm_br_item_amount) AS MaxTargetAmount
FROM udm_str_rule AS _str_rule
INNER JOIN udm_strategy AS _strategy ON /* join condition not captured in parsed metadata */
INNER JOIN udm_rule_b_rule AS _RULE_B_RULE ON /* join condition not captured in parsed metadata */
INNER JOIN udm_b_rule_selop AS _B_RULE_SELOP ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN udm_str_selop AS _STR_SELOP ON /* join condition not captured in parsed metadata */
;