C_CustomerReturnSerialNumberVH
Returns Order Serial Number
C_CustomerReturnSerialNumberVH is a Consumption CDS View that provides data about "Returns Order Serial Number" in SAP S/4HANA. It reads from 1 data source (I_Equipment) and exposes 10 fields with key field Equipment. Part of development package ODATA_SD_RETURN_V2.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Equipment | sn | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| Search.searchable | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Returns Order Serial Number | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Equipment | I_Equipment | Equipment | |
| SerialNumber | I_Equipment | SerialNumber | ||
| Product | ||||
| Plant | MaterialSerialNumber | Plant | ||
| StorageLocation | MaterialSerialNumber | StorageLocation | ||
| Customer | I_Equipment | Customer | ||
| Supplier | I_Equipment | Supplier | ||
| AuthorizationGroup | I_Equipment | AuthorizationGroup | ||
| _Customer | I_Equipment | _Customer | ||
| _Supplier | I_Equipment | _Supplier |
@VDM: {
viewType: #CONSUMPTION
}
@ObjectModel: {
usageType: {
dataClass: #MIXED,
serviceQuality: #C,
sizeCategory: #L
},
dataCategory:#VALUE_HELP
}
@Search: {
searchable: true
}
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Returns Order Serial Number'
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
define view entity C_CustomerReturnSerialNumberVH
as select from I_Equipment as sn
left outer to one join C_MaterialSerialNumber as MaterialSerialNumber on sn.SerialNumber = MaterialSerialNumber.SerialNumber
and sn.Material = MaterialSerialNumber.Material
{
@UI.hidden: true
key sn.Equipment,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
sn.SerialNumber,
cast(sn.Material as productnumber preserving type) as Product,
MaterialSerialNumber.Plant,
MaterialSerialNumber.StorageLocation,
//Access control
@Consumption.hidden: true
sn.Customer,
@Consumption.hidden: true
sn.Supplier,
@Consumption.hidden: true
sn.AuthorizationGroup,
@Consumption.hidden: true
sn._Customer,
@Consumption.hidden: true
sn._Supplier
}
where
sn.SerialNumber <> ''
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