P_MaterialLedger_Name_Curtp

DDL: P_MATERIALLEDGER_NAME_CURTP SQL: PMLNAMECURTP Type: view BASIC

P_MaterialLedger_Name_Curtp is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (finsc_curtype, fmlt_curtp_ml, finsc_ledger) and exposes 7 fields with key fields bukrs, curtp, rldnr.

Data Sources (3)

SourceAliasJoin Type
finsc_curtype curtp_def inner
fmlt_curtp_ml curtp_ml from
finsc_ledger ledger inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PMLNAMECURTP view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #CHECK view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY bukrs fmlt_curtp_ml rbukrs Company Code
KEY curtp
KEY rldnr fmlt_curtp_ml rldnr Ledger (Compat.)
ext_curtype fmlt_curtp_ml curtp Valuation Area
name_curtp
rcolumn fmlt_curtp_ml rcolumn Char01
waers fmlt_curtp_ml waers Transaction Currency

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_MaterialLedger_Name_Curtp.
-- 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: PMLNAMECURTP

CREATE VIEW P_MaterialLedger_Name_Curtp AS
SELECT
  curtp_ml.rbukrs AS bukrs,
  case when switch.is_active = 'X' then curtp_def.curtype else curtp_ml.curtp end AS curtp,
  curtp_ml.rldnr AS rldnr,
  curtp_ml.curtp AS ext_curtype,
  case when curtp_txt.name is null then ' ' else curtp_txt.name end AS name_curtp,
  curtp_ml.rcolumn AS rcolumn,
  curtp_ml.waers AS waers
FROM fmlt_curtp_ml AS curtp_ml
INNER JOIN finsc_ledger AS ledger ON /* join condition not captured in parsed metadata */
INNER JOIN finsc_curtype AS curtp_def ON /* join condition not captured in parsed metadata */
;