GSEG_SCEN_KY
Segmentation Scenario Keys
GSEG_SCEN_KY is an SAP database table in S/4HANA. Segmentation Scenario Keys. It contains 9 fields. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| gseg_cds_seg_scen_ky | view_entity | from | Segmentation Scenario Keys |
Fields (9)
| Key | Field | Data Element | Description | Domain | Type | Length |
|---|---|---|---|---|---|---|
| KEY | client | MANDT | Client | |||
| KEY | appl_id | GSEG_V_APPL_ID | Application ID | |||
| KEY | scenario_id | GSEG_V_SEG_SCEN_ID | Scenario ID | |||
| KEY | version | GSEG_V_SEG_SCEN_VERSION | Scenario Version | |||
| KEY | ot_key | GSEG_V_OT_KEY_NAME | Object Key Field | |||
| semantic_object | /UI2/SEMANTIC_OBJECT | Semantic Object | ||||
| data_type | GSEG_V_OT_KEY_DATA_TYPE | Key Field Data Type | ||||
| length | GSEG_V_OT_KEY_LEN | Key Field Length | ||||
| decimals | GSEG_V_OT_KEY_DEC | Key Decimals |
Derived SQL schema, reconstructed from the indexed DDIC field metadata (field names, types, lengths and key flags) — a functional representation, not the verbatim SAP source.
-- Segmentation Scenario Keys
-- Category TRANSPARENT · Delivery class C
-- Derived schema, generated from indexed DDIC field metadata (not the verbatim SAP source).
CREATE TABLE GSEG_SCEN_KY (
CLIENT, -- Client [MANDT]
APPL_ID, -- Application ID [GSEG_V_APPL_ID]
SCENARIO_ID, -- Scenario ID [GSEG_V_SEG_SCEN_ID]
VERSION, -- Scenario Version [GSEG_V_SEG_SCEN_VERSION]
OT_KEY, -- Object Key Field [GSEG_V_OT_KEY_NAME]
SEMANTIC_OBJECT, -- Semantic Object [/UI2/SEMANTIC_OBJECT]
DATA_TYPE, -- Key Field Data Type [GSEG_V_OT_KEY_DATA_TYPE]
LENGTH, -- Key Field Length [GSEG_V_OT_KEY_LEN]
DECIMALS, -- Key Decimals [GSEG_V_OT_KEY_DEC]
PRIMARY KEY (CLIENT, APPL_ID, SCENARIO_ID, VERSION, OT_KEY)
);
Learn More
- Understanding Data Lineage in SAP S/4HANA
- SAP Tables vs CDS Views — Key Differences
- Understanding the SAP S/4HANA Data Model
- 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
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA