P_CollRuleValueToCollStrgy
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA