I_CharcAttribSelectedCodeSet

DDL: I_CHARCATTRIBSELECTEDCODESET SQL: ICHATTSELDCDSET Type: view BASIC

Selected Set for Characteristic Attribute

I_CharcAttribSelectedCodeSet (Basic)

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

Manufacturing

I_CharcAttribSelectedCodeSet is a Basic CDS View that provides data about "Selected Set for Characteristic Attribute" in SAP S/4HANA. It reads from 2 data sources (qpam, qpamtxt) and exposes 10 fields with key fields SelectedCodeSetPlant, SelectedCodeSet. It has 2 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentQM-IM
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
DescriptionThe purpose of this CDS view is the definition of selected sets for catalog 1 (characteristic attributes).

Documentation

Data Sources (2)

SourceAliasJoin Type
qpam qpam from
qpamtxt qpamtxt left_outer

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_CharcAttribSelectedSetCode _CharcAttribSelectedSetCode $projection.SelectedCodeSetPlant = _CharcAttribSelectedSetCode.SelectedCodeSetPlant and $projection.SelectedCodeSet = _CharcAttribSelectedSetCode.SelectedCodeSet
[0..1] I_Plant _SelectedCodeSetPlant $projection.SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ICHATTSELDCDSET view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Selected Set for Characteristic Attribute view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey SelectedCodeSet view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
Search.searchable true view
Metadata.ignorePropagatedAnnotations true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY SelectedCodeSetPlant qpam werks Receiving Plant
KEY SelectedCodeSet qpam auswahlmge Selected Set
ktx01endasSelectedCodeSetText
InspectionSelectedSetStatus status Status of Master Record
CharcAttribSeldSetCreatedBy ersteller Name of User Who Created the Data Record
CharcAttribSeldSetCrtedOn e_datum System Date on Which Data Record Was Created
CharcAttribSeldSetLastChgdBy aenderer Name of User Who Last Changed Data Record
CharcAttribSeldSetLastChgdOn a_datum System Date on Which Data Record Was Changed
_CharcAttribSelectedSetCode _CharcAttribSelectedSetCode
_SelectedCodeSetPlant _SelectedCodeSetPlant

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_CharcAttribSelectedCodeSet.
-- 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: ICHATTSELDCDSET

CREATE VIEW I_CharcAttribSelectedCodeSet AS
SELECT
  qpam.werks AS SelectedCodeSetPlant,
  qpam.auswahlmge AS SelectedCodeSet,
  case when qpamtxt.language is not null then qpamtxt.ktx01 else qpam.ktx01 end as SelectedCodeSetText AS ktx01endasSelectedCodeSetText,
  status AS InspectionSelectedSetStatus,
  ersteller AS CharcAttribSeldSetCreatedBy,
  e_datum AS CharcAttribSeldSetCrtedOn,
  aenderer AS CharcAttribSeldSetLastChgdBy,
  a_datum AS CharcAttribSeldSetLastChgdOn
FROM qpam
LEFT OUTER JOIN qpamtxt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CharcAttribSelectedSetCode AS _CharcAttribSelectedSetCode ON SelectedCodeSetPlant = _CharcAttribSelectedSetCode.SelectedCodeSetPlant AND SelectedCodeSet = _CharcAttribSelectedSetCode.SelectedCodeSet  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _SelectedCodeSetPlant ON SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant  -- association [0..1]
;