I_MKT_CouponCodeUsageTypeText

DDL: I_MKT_COUPONCODEUSAGETYPETEXT SQL: IMKTCPNCDUSGETYT Type: view BASIC Package: CUAN_CDS_COUPON

Marketing: Type of Cpn Code Usage - Text

I_MKT_CouponCodeUsageTypeText is a Basic CDS View that provides data about "Marketing: Type of Cpn Code Usage - Text" in SAP S/4HANA. It reads from 1 data source (dd07t) and exposes 3 fields with key fields CouponCodeUsageType, Language. Part of development package CUAN_CDS_COUPON.

Data Sources (1)

SourceAliasJoin Type
dd07t dd07t from

Annotations (13)

NameValueLevelField
EndUserText.label Marketing: Type of Cpn Code Usage - Text view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IMKTCPNCDUSGETYT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_ALLOWED view
ObjectModel.dataCategory #TEXT view
ObjectModel.representativeKey CouponCodeUsageType view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CouponCodeUsageType
KEY Language Lang.
CouponCodeUsageTypeName Short text

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 I_MKT_CouponCodeUsageTypeText.
-- 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: IMKTCPNCDUSGETYT

CREATE VIEW I_MKT_CouponCodeUsageTypeText AS
SELECT
  cast ( substring( domvalue_l, 1, 2 ) as cuan_cpn_code_usage_id preserving type ) AS CouponCodeUsageType,
  cast( ddlanguage as spras preserving type ) AS Language,
  cast ( ddtext as cuan_cpn_code_usage_name preserving type ) AS CouponCodeUsageTypeName
FROM dd07t
;