ScmPrd_MatMap_Union
Union of MARA and MATERIALID
ScmPrd_MatMap_Union is a CDS View that provides data about "Union of MARA and MATERIALID" in SAP S/4HANA. It reads from 5 data sources (mara, mara, materialid, scmprd_lama_bf_count, scmprd_lama_bf_count) and exposes 7 fields.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| mara | mara | from |
| mara | mara | inner |
| materialid | materialid | union_all |
| scmprd_lama_bf_count | scmprd_lama_bf_count | inner |
| scmprd_lama_bf_count | scmprd_lama_bf_count | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SCMPRDMATMAPUNI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.dataMaintenance | #RESTRICTED | 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 | Union of MARA and MATERIALID | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| mandt | mara | mandt | ||
| ext_matnr | mara | matnr | ||
| matid | mara | scm_matid_guid22 | ||
| mandt | ||||
| ext_matnr | materialid | matnr_int | ||
| matid | mara | scm_matid_guid22 | ||
| matnr | materialid | matnr_long |
@AbapCatalog.sqlViewName: 'SCMPRDMATMAPUNI'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.dataMaintenance: #RESTRICTED
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory : #L
@ObjectModel.usageType.dataClass: #MASTER
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #AUTOMATED
@EndUserText.label: 'Union of MARA and MATERIALID'
define view ScmPrd_MatMap_Union as select from mara
inner join scmprd_lama_bf_count on scmprd_lama_bf_count.num = 0
{
mara.mandt,
mara.matnr as ext_matnr,
mara.scm_matid_guid22 as matid,
mara.matnr
}
union all
select from materialid
inner join scmprd_lama_bf_count on scmprd_lama_bf_count.num = 1
inner join mara on mara.matnr = materialid.matnr_long
and mara.mandt = materialid.mandt
{
mara.mandt,
materialid.matnr_int as ext_matnr,
mara.scm_matid_guid22 as matid,
materialid.matnr_long as matnr
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"SCMPRD_LAMA_BF_COUNT",
"MARA",
"MATERIALID"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- 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 Annotations — A Complete Guide
- 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