N_SAFT_CODE_SNIPPET_REG

DDL: N_SAFT_CODE_SNIPPET_REG Type: view_entity Package: S_AFT_CODE_SNIPPET

AFT Code Snippet: Registered snippets

N_SAFT_CODE_SNIPPET_REG is a CDS View that provides data about "AFT Code Snippet: Registered snippets" in SAP S/4HANA. It reads from 3 data sources (saft_cs_bus_ctx, saft_code_snippt, N_SAFT_CODE_SNIPPET_REG_DESC) and exposes 3 fields with key field CodeSnippetID. It has 1 association to related views. Part of development package S_AFT_CODE_SNIPPET.

Data Sources (3)

SourceAliasJoin Type
saft_cs_bus_ctx BusinessContext inner
saft_code_snippt CodeSnippet from
N_SAFT_CODE_SNIPPET_REG_DESC Description inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] N_SAFT_AFCS_VISIBILITY _AFCSVisibility _AFCSVisibility.code_snippet_id = CodeSnippet.code_snippet_id

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label AFT Code Snippet: Registered snippets view
Metadata.ignorePropagatedAnnotations true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CodeSnippetID saft_code_snippt code_snippet_id Code Snippet ID
Description N_SAFT_CODE_SNIPPET_REG_DESC CodeSnippetDescription
BusinessContext saft_cs_bus_ctx business_context Business Context

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 N_SAFT_CODE_SNIPPET_REG.
-- 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.

CREATE VIEW N_SAFT_CODE_SNIPPET_REG AS
SELECT
  CodeSnippet.code_snippet_id AS CodeSnippetID,
  Description.CodeSnippetDescription AS Description,
  BusinessContext.business_context AS BusinessContext
FROM saft_code_snippt AS CodeSnippet
INNER JOIN N_SAFT_CODE_SNIPPET_REG_DESC AS Description ON /* join condition not captured in parsed metadata */
INNER JOIN saft_cs_bus_ctx AS BusinessContext ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN N_SAFT_AFCS_VISIBILITY AS _AFCSVisibility ON _AFCSVisibility.code_snippet_id = CodeSnippet.code_snippet_id  -- association [0..1]
;