ScmPrd_Matlotsz
View for /SAPAPO/MATLOTSZ
ScmPrd_Matlotsz is a CDS View that provides data about "View for /SAPAPO/MATLOTSZ" in SAP S/4HANA. It reads from 3 data sources (ScmPrd_Matlotsz_Union, t438m, t439a) and exposes 32 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| ScmPrd_Matlotsz_Union | marc | from |
| t438m | t438m | left_outer |
| t439a | t439a | left_outer |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SCMPRDMATLOTSZ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| EndUserText.label | View for /SAPAPO/MATLOTSZ | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| LSZID | ||||
| INCLUDE_PROF | ||||
| LSZKY | ||||
| LSZTX | ||||
| losvfPthenPelseendasSL_LSZ_RANGE | ||||
| BSTFE | ScmPrd_Matlotsz_Union | bstfe | Fixed lot size | |
| BSTMI | ScmPrd_Matlotsz_Union | bstmi | Min. Lot Size | |
| BSTMA | ScmPrd_Matlotsz_Union | bstma | To Lot Size | |
| BSTRF | ScmPrd_Matlotsz_Union | bstrf | Rounding value | |
| ausss1002endasAUSSS | ||||
| RDPRF | ScmPrd_Matlotsz_Union | rdprf | Rounding Prfl. | |
| LSUOM | ScmPrd_Matlotsz_Union | scm_lsuom | Lot Size Unit | |
| dislsisnotnullthenXelseendasLGKND | ||||
| LASTL | _t439a | lastl | Last Lot Exact | |
| UNTKZ | ||||
| int2240000endassapaposvttyasSVTTY | ||||
| REORD_DUR | ScmPrd_Matlotsz_Union | scm_reord_dur | Reorder DS | |
| TARGET_DUR | ScmPrd_Matlotsz_Union | scm_target_dur | Trgt Days' Sup. | |
| TARGET_METHOD | ScmPrd_Matlotsz_Union | target_stock_level_meth | Targ.Stk Lvl Md | |
| loskzKthenKelseendasPERVR | ||||
| dec30endassapaporrp_perazasPER_AMOUNT | ||||
| TSTRID | ScmPrd_Matlotsz_Union | scm_tstrid | Per.LS Plng Cal | |
| REQ_COVER_FLAG | ScmPrd_Matlotsz_Union | use_period_factor | Use Period Fac. | |
| REQ_COVER_TYPE | ScmPrd_Matlotsz_Union | period_factor_value | Period Factor | |
| PERIOD_FACTOR_TDS | ScmPrd_Matlotsz_Union | period_factor_tds | Period Factor TDS | |
| SNPLOTSTRAT | ||||
| SNPLOTBEG | ||||
| losvfPthenelseXendendasSL_LSZ_EXACT | ||||
| loskzFthenXelseendendasSL_LSZ_FIXED | ||||
| losvfPthenXelseendendasSL_LSZ_PERI | ||||
| losvfPthenelseendendasSL_LSZ_REORD | ||||
| CATGRP |
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 ScmPrd_Matlotsz.
-- 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: SCMPRDMATLOTSZ
CREATE VIEW ScmPrd_Matlotsz AS
SELECT
cast(marc.scm_matlocid_guid22 as /sapapo/lszid) AS LSZID,
'' AS INCLUDE_PROF,
cast( '' as /sapapo/lszky ) AS LSZKY,
cast( '' as /sapapo/lsztx ) AS LSZTX,
case when _t439a.losvf = 'P' then 'P' else '' end as SL_LSZ_RANGE AS losvfPthenPelseendasSL_LSZ_RANGE,
marc.bstfe AS BSTFE,
marc.bstmi AS BSTMI,
marc.bstma AS BSTMA,
marc.bstrf AS BSTRF,
case when marc.ausss is not null or marc.ausss != 0 then division(marc.ausss*100 , marc.ausss + 100 , 2) end as AUSSS AS ausss1002endasAUSSS,
marc.rdprf AS RDPRF,
marc.scm_lsuom AS LSUOM,
case when _t439a.lgknd = '2' and _t439a.disls is not null then 'X' else ' ' end as LGKND AS dislsisnotnullthenXelseendasLGKND,
_t439a.lastl AS LASTL,
case when _t439a.untkz is not null then _t439a.untkz else '' end AS UNTKZ,
cast(case when _t438m.shzet is not null and _t438m.shzet <> '' and marc.shzet = '' then cast(_t438m.shzet as abap.int2) * 240000 else cast(marc.shzet as abap.int2) * 240000 end as /sapapo/svtty) as SVTTY AS int2240000endassapaposvttyasSVTTY,
marc.scm_reord_dur AS REORD_DUR,
marc.scm_target_dur AS TARGET_DUR,
marc.target_stock_level_meth AS TARGET_METHOD,
case when _t439a.losvf = 'P' and _t439a.loskz = 'W' then 'W' when _t439a.losvf = 'P' and _t439a.loskz = 'T' then 'D' when _t439a.losvf = 'P' and _t439a.loskz = 'M' then 'M' when _t439a.losvf = 'P' and _t439a.loskz = 'K' then 'K' else '' end as PERVR AS loskzKthenKelseendasPERVR,
cast( case when _t439a.losvf = 'P' then _t439a.peraz else cast('0' as abap.dec(3,0)) end as /sapapo/rrp_peraz) as PER_AMOUNT AS dec30endassapaporrp_perazasPER_AMOUNT,
marc.scm_tstrid AS TSTRID,
marc.use_period_factor AS REQ_COVER_FLAG,
marc.period_factor_value AS REQ_COVER_TYPE,
marc.period_factor_tds AS PERIOD_FACTOR_TDS,
'' AS SNPLOTSTRAT,
'' AS SNPLOTBEG,
case when marc.scm_reord_dur <> 0 then '' else case when _t439a.loskz = 'F' or _t439a.losvf = 'P' then '' else 'X' end end as SL_LSZ_EXACT AS losvfPthenelseXendendasSL_LSZ_EXACT,
case when marc.scm_reord_dur <> 0 then '' else case when _t439a.loskz = 'F' then 'X' else '' end end as SL_LSZ_FIXED AS loskzFthenXelseendendasSL_LSZ_FIXED,
case when marc.scm_reord_dur <> 0 then '' else case when _t439a.losvf = 'P' then 'X' else '' end end as SL_LSZ_PERI AS losvfPthenXelseendendasSL_LSZ_PERI,
case when marc.scm_reord_dur <> 0 then 'X' else case when _t439a.losvf = 'P' then ' ' else '' end end as SL_LSZ_REORD AS losvfPthenelseendendasSL_LSZ_REORD,
cast( '' as /sapapo/catgrp ) AS CATGRP
FROM ScmPrd_Matlotsz_Union AS marc
LEFT OUTER JOIN t438m ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t439a ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA