I_SLCPreferredAnswer

DDL: I_SLCPREFERREDANSWER SQL: ISLCPREFANSWER Type: view BASIC Package: VDM_SLC_CMN

Preferred Answer

I_SLCPreferredAnswer (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Sourcing & Procurement

I_SLCPreferredAnswer is a Basic CDS View that provides data about "Preferred Answer" in SAP S/4HANA. It reads from 1 data source (dd07l) and exposes 2 fields with key field SLCPreferredAnswer. It has 1 association to related views. Part of development package VDM_SLC_CMN.

SAP Help Documentation

CategoryViews for Domain Fixed Values
StatusReleased
Purpose
This view provides supported values for SLCPREFERREDANSWER. The values and their meanings are: Preferred Answer Code Fixed Value Description 0 "Yes" is preferred (Score=100) 1 "No" is preferred (Score=100)

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessSourcing & Procurement
Application ComponentSLC-SUP
CapabilitiesData Source for Defining CDS Entities,Data Source in SQL Select,Association Target for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSourcing and Procurement for SAP S/4HANA Cloud Public Edition
Description <p>This view provides supported values for SLCPREFERREDANSWER.</p> <p>The values and their meanings are:</p> Preferred Answer Code Fixed Value Description 0 "Yes" is preferred (Score=100) 1 "No" is preferred (Score=100)

Documentation

Data Sources (1)

SourceAliasJoin Type
dd07l dd07l from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_SLCPreferredAnswerText _SLCPreferredAnswerText $projection.SLCPreferredAnswer = _SLCPreferredAnswerText.SLCPreferredAnswer

Annotations (12)

NameValueLevelField
EndUserText.label Preferred Answer view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey SLCPreferredAnswer view
AbapCatalog.sqlViewName ISLCPREFANSWER view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY SLCPreferredAnswer Preferred Answer to a Yes/No Question
_SLCPreferredAnswerText _SLCPreferredAnswerText

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_SLCPreferredAnswer.
-- 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: ISLCPREFANSWER

CREATE VIEW I_SLCPreferredAnswer AS
SELECT
  cast( substring( domvalue_l, 1, 1 ) as /srmsmc/qlb_pref_answer) AS SLCPreferredAnswer
FROM dd07l
LEFT OUTER JOIN I_SLCPreferredAnswerText AS _SLCPreferredAnswerText ON SLCPreferredAnswer = _SLCPreferredAnswerText.SLCPreferredAnswer  -- association [0..*]
;