P_StoreStkAdjmtSchemaForStore

DDL: P_STORESTKADJMTSCHEMAFORSTORE SQL: PSTRSTKADJSCHEMA Type: view BASIC

P_StoreStkAdjmtSchemaForStore is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_RetailStoreUserAssignment) and exposes 2 fields with key field Store. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_RetailStoreUserAssignment RetailStoreUserAssignment from

Associations (2)

CardinalityTargetAliasCondition
[0..1] twicscmf _StoreSchema RetailStoreUserAssignment.Store = _StoreSchema.werks and _StoreSchema.cstobj = '0250'
[0..1] twicscm _DefaultSchema _DefaultSchema.cstobj = '0250' and _DefaultSchema.flag_strd = 'X'

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSTRSTKADJSCHEMA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY Store I_RetailStoreUserAssignment Store Plant
RetailStoreSchemaID

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 P_StoreStkAdjmtSchemaForStore.
-- 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: PSTRSTKADJSCHEMA

CREATE VIEW P_StoreStkAdjmtSchemaForStore AS
SELECT
  RetailStoreUserAssignment.Store AS Store,
  coalesce(_StoreSchema.cstscm, _DefaultSchema.cstscm ) AS RetailStoreSchemaID
FROM I_RetailStoreUserAssignment AS RetailStoreUserAssignment
LEFT OUTER JOIN twicscmf AS _StoreSchema ON RetailStoreUserAssignment.Store = _StoreSchema.werks AND _StoreSchema.cstobj = '0250'  -- association [0..1]
LEFT OUTER JOIN twicscm AS _DefaultSchema ON _DefaultSchema.cstobj = '0250' AND _DefaultSchema.flag_strd = 'X'  -- association [0..1]
;