GEN_RESULT_SET_W_O_MEM_COUNT
Query Result Sets by Elements
GEN_RESULT_SET_W_O_MEM_COUNT is a CDS View that provides data about "Query Result Sets by Elements" in SAP S/4HANA. It reads from 15 data sources and exposes 32 fields with key field DB_KEY.
Data Sources (15)
| Source | Alias | Join Type |
|---|---|---|
| adrp | adrp | left_outer |
| adrp | adrp | left_outer |
| adrp | adrp_2 | left_outer |
| adrp | adrp_2 | left_outer |
| dd07t | dd07t | left_outer |
| dd07t | dd07t_2 | left_outer |
| gres_d_rs_root | gres_d_rs_root | from |
| gseg_d_segment | gseg_d_segment | left_outer |
| gseg_d_sm_root | gseg_d_sm_root | left_outer |
| gseg_nr_appl | gseg_nr_appl | left_outer |
| gseg_obj_type_t | gseg_obj_type_t | left_outer |
| usr21 | usr21 | left_outer |
| I_User | usr21 | left_outer |
| usr21 | usr21_2 | left_outer |
| I_User | usr21_2 | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Query Result Sets by Elements | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DB_KEY | gres_d_rs_root | db_key | UUID |
| APPL_ID | gres_d_rs_root | appl_id | Policy Key | |
| RS_ID | gres_d_rs_root | rs_id | ||
| OT_ID | gres_d_rs_root | ot_id | ||
| CATEGORY | gres_d_rs_root | category | Violation Category | |
| NAME | gres_d_rs_root | name | Zone name | |
| VERSION | gres_d_rs_root | version | XML Vers. | |
| CREA_DATE_TIME | gres_d_rs_root | crea_date_time | Time Stamp | |
| CREA_UNAME | gres_d_rs_root | crea_uname | User Name | |
| LCHG_DATE_TIME | gres_d_rs_root | lchg_date_time | Time Stamp | |
| LCHG_UNAME | gres_d_rs_root | lchg_uname | User Name | |
| ORIGIN_ROOT_GUID | gres_d_rs_root | origin_root_guid | ||
| ORIGIN_ELEMENT_GUID | gres_d_rs_root | origin_element_guid | ||
| OT_ID_T_INT | gseg_obj_type_t | ot_text | ||
| ORIGIN_TYPE | gres_d_rs_root | origin_type | ||
| SEGMENT_ID | gseg_d_segment | id | WorklistID | |
| CREA_ADRP_INT | adrp | name_text | Full Name | |
| LCHG_ADRP_INT | adrp | name_text | Full Name | |
| NR_APPL_ID | gseg_nr_appl | nr_appl_id | ||
| SEG_MODEL_NAME | gseg_d_sm_root | name | Zone name | |
| MEMBER_COUNT | gres_d_rs_root | member_count | ||
| FOREIGN_MEMBER_TYPE | gres_d_rs_root | foreign_member_type | ||
| CATEGORY_T | dd07t | ddtext | Short text | |
| description | ||||
| ORIGIN_TYPE_T | dd07t | ddtext | Short text | |
| description | ||||
| ot_textendendasOT_ID_TEXT | ||||
| name_textendendasCREA_UNAME_TEXT | ||||
| name_textendendasLCHG_UNAME_TEXT | ||||
| ENTITY_NAME_MEMBER | ||||
| ENTITY_NAME_OBJECT | ||||
| sstring24asETAG |
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 GEN_RESULT_SET_W_O_MEM_COUNT.
-- 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 GEN_RESULT_SET_W_O_MEM_COUNT AS
SELECT
gres_d_rs_root.db_key AS DB_KEY,
gres_d_rs_root.appl_id AS APPL_ID,
gres_d_rs_root.rs_id AS RS_ID,
gres_d_rs_root.ot_id AS OT_ID,
gres_d_rs_root.category AS CATEGORY,
gres_d_rs_root.name AS NAME,
gres_d_rs_root.version AS VERSION,
gres_d_rs_root.crea_date_time AS CREA_DATE_TIME,
gres_d_rs_root.crea_uname AS CREA_UNAME,
gres_d_rs_root.lchg_date_time AS LCHG_DATE_TIME,
gres_d_rs_root.lchg_uname AS LCHG_UNAME,
gres_d_rs_root.origin_root_guid AS ORIGIN_ROOT_GUID,
gres_d_rs_root.origin_element_guid AS ORIGIN_ELEMENT_GUID,
gseg_obj_type_t.ot_text AS OT_ID_T_INT,
gres_d_rs_root.origin_type AS ORIGIN_TYPE,
gseg_d_segment.id AS SEGMENT_ID,
adrp.name_text AS CREA_ADRP_INT,
adrp_2.name_text AS LCHG_ADRP_INT,
gseg_nr_appl.nr_appl_id AS NR_APPL_ID,
gseg_d_sm_root.name AS SEG_MODEL_NAME,
gres_d_rs_root.member_count AS MEMBER_COUNT,
gres_d_rs_root.foreign_member_type AS FOREIGN_MEMBER_TYPE,
dd07t.ddtext AS CATEGORY_T,
dd07t_2.ddtext AS ORIGIN_TYPE_T,
case when gseg_obj_type_t.ot_text is null then gres_d_rs_root.ot_id else case when gseg_obj_type_t.ot_text = '' then gres_d_rs_root.ot_id else gseg_obj_type_t.ot_text end end as OT_ID_TEXT AS ot_textendendasOT_ID_TEXT,
case when adrp.name_text is null then gres_d_rs_root.crea_uname else case when adrp.name_text = '' then gres_d_rs_root.crea_uname else adrp.name_text end end as CREA_UNAME_TEXT AS name_textendendasCREA_UNAME_TEXT,
case when adrp_2.name_text is null then gres_d_rs_root.lchg_uname else case when adrp_2.name_text = '' then gres_d_rs_root.lchg_uname else adrp_2.name_text end end as LCHG_UNAME_TEXT AS name_textendendasLCHG_UNAME_TEXT,
concat( 'M', concat(gseg_nr_appl.nr_appl_id, gres_d_rs_root.ot_id)) AS ENTITY_NAME_MEMBER,
concat( 'O', concat(gseg_nr_appl.nr_appl_id, gres_d_rs_root.ot_id)) AS ENTITY_NAME_OBJECT
FROM gres_d_rs_root
LEFT OUTER JOIN gseg_obj_type_t ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dd07t ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dd07t AS dd07t_2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN gseg_d_segment ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN gseg_nr_appl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN gseg_d_sm_root ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN usr21 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN usr21 AS usr21_2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrp AS adrp_2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_User AS usr21 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_User AS usr21_2 ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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