GSEG_SCEN_KY

Transparent Table Customizing Table

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)

ViewTypeJoinVDMDescription
gseg_cds_seg_scen_ky view_entity from Segmentation Scenario Keys

Fields (9)

KeyField Data ElementDescription DomainTypeLength
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)
);