J2G_SHSM_KRED2

DDL: J2G_SHSM_KRED2 SQL: J_2G_SHSMKRED2 Type: view

J2G_SHSM_KRED2 is a CDS View in SAP S/4HANA. It reads from 2 data sources (lfa1, lfb1) and exposes 21 fields with key fields bukrs, lifnr, mcod1, mcod3, pstlz.

Data Sources (2)

SourceAliasJoin Type
lfa1 lfa1 from
lfb1 lfb1 inner

Annotations (10)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName J_2G_SHSMKRED2 view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY bukrs
KEY lifnr
KEY mcod1
KEY mcod3
KEY pstlz
KEY sortl
KEY stcd2
SupplierAccountGroup lfa1 ktokk Vendor Group
A_AuthorizationGroup lfa1 begru AuthorizGroup
B_AuthorizationGroup lfb1 begru AuthorizGroup
DataControllerSet lfa1 xdcset Data Ctrlr. Set
DataController1 lfa1 data_ctrlr1 Data Controller
DataController2 lfa1 data_ctrlr2 Data Controller
DataController3 lfa1 data_ctrlr3 Data Controller
DataController4 lfa1 data_ctrlr4 Data Controller
DataController5 lfa1 data_ctrlr5 Data Controller
DataController6 lfa1 data_ctrlr6 Data Controller
DataController7 lfa1 data_ctrlr7 Data Controller
DataController8 lfa1 data_ctrlr8 Data Controller
DataController9 lfa1 data_ctrlr9 Data Controller
DataController10 lfa1 data_ctrlr10 Data Controller

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 J2G_SHSM_KRED2.
-- 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: J_2G_SHSMKRED2

CREATE VIEW J2G_SHSM_KRED2 AS
SELECT
  cast( lfb1.bukrs as bukrs preserving type ) AS bukrs,
  cast( lfa1.lifnr as lifnr preserving type ) AS lifnr,
  cast( lfa1.mcod1 as mcdk1 preserving type ) AS mcod1,
  cast( lfa1.mcod3 as mcdk3 preserving type ) AS mcod3,
  cast( lfa1.pstlz as pstlz preserving type ) AS pstlz,
  cast( lfa1.sortl as sortl preserving type ) AS sortl,
  cast( lfa1.stcd2 as j_2gafm preserving type ) AS stcd2,
  lfa1.ktokk AS SupplierAccountGroup,
  lfa1.begru AS A_AuthorizationGroup,
  lfb1.begru AS B_AuthorizationGroup,
  lfa1.xdcset AS DataControllerSet,
  lfa1.data_ctrlr1 AS DataController1,
  lfa1.data_ctrlr2 AS DataController2,
  lfa1.data_ctrlr3 AS DataController3,
  lfa1.data_ctrlr4 AS DataController4,
  lfa1.data_ctrlr5 AS DataController5,
  lfa1.data_ctrlr6 AS DataController6,
  lfa1.data_ctrlr7 AS DataController7,
  lfa1.data_ctrlr8 AS DataController8,
  lfa1.data_ctrlr9 AS DataController9,
  lfa1.data_ctrlr10 AS DataController10
FROM lfa1
INNER JOIN lfb1 ON /* join condition not captured in parsed metadata */
;