P_RetsMgmtProcessItemExec2
P_RetsMgmtProcessItemExec2 is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (msr_d_executed) and exposes 15 fields with key fields RetsMgmtProcess, RetsMgmtProcessItem. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| msr_d_executed | CompnCntrl | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UnitOfMeasure | _ReplacementMaterialQtyUnit | $projection.ReplacementMaterialQtyUnit = _ReplacementMaterialQtyUnit.UnitOfMeasure |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PRMRTSITMEXEC2 | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RetsMgmtProcess | msr_d_executed | msr_id | |
| KEY | RetsMgmtProcessItem | msr_d_executed | item | |
| split_id | msr_d_executed | split_id | ||
| ReturnsRefundType | msr_d_executed | refund_type | ||
| ReturnsRefundProcgMode | ||||
| ReturnsRefundExtent | ||||
| CuRtStep | msr_d_executed | executed_step_id | ||
| CuRtDocType | msr_d_executed | doc_type | ||
| ReplacementMaterial | msr_d_executed | replace_matnr | ||
| ReplacementMaterialQuantity | msr_d_executed | replace_qty | ||
| ReplacementMaterialQtyUnit | msr_d_executed | replace_unit | ||
| _ReturnsRefundType | _ReturnsRefundType | |||
| _ReturnsRefundProcgMode | _ReturnsRefundProcgMode | |||
| _ReturnsRefundExtent | _ReturnsRefundExtent | |||
| _ReplacementMaterialQtyUnit | _ReplacementMaterialQtyUnit |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@VDM.private: true
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck:#NOT_REQUIRED
@AbapCatalog.sqlViewName: 'PRMRTSITMEXEC2'
define view P_RetsMgmtProcessItemExec2
as select from msr_d_executed
as CompnCntrl
association[0..1] to I_ReturnsRefundType
as _ReturnsRefundType
on $projection.ReturnsRefundType = _ReturnsRefundType.ReturnsRefundType
association[0..1] to I_ReturnsRefundProcgModeActive
as _ReturnsRefundProcgMode
on $projection.ReturnsRefundProcgMode = _ReturnsRefundProcgMode.ReturnsRefundProcgMode
and $projection.ReturnsRefundType = _ReturnsRefundProcgMode.ReturnsRefundType
association[0..1] to I_ReturnsRefundExtent
as _ReturnsRefundExtent
on $projection.ReturnsRefundExtent = _ReturnsRefundExtent.ReturnsRefundExtent
association [0..1] to I_UnitOfMeasure
as _ReplacementMaterialQtyUnit
on $projection.ReplacementMaterialQtyUnit = _ReplacementMaterialQtyUnit.UnitOfMeasure
{
//Key
key CompnCntrl.msr_id as RetsMgmtProcess,
key CompnCntrl.item as RetsMgmtProcessItem,
//Compensation Control
CompnCntrl.split_id,
CompnCntrl.refund_type as ReturnsRefundType,
cast (CompnCntrl.refund_control as returns_refund_procg_mode) as ReturnsRefundProcgMode,
cast (CompnCntrl.refund_code as returns_refund_extent) as ReturnsRefundExtent,
CompnCntrl.executed_step_id as CuRtStep,
CompnCntrl.doc_type as CuRtDocType,
//Replacement Material
CompnCntrl.replace_matnr as ReplacementMaterial,
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'ReplacementMaterialQtyUnit'
CompnCntrl.replace_qty as ReplacementMaterialQuantity,
@Semantics.unitOfMeasure: true
@ObjectModel.foreignKey.association: '_ReplacementMaterialQtyUnit'
CompnCntrl.replace_unit as ReplacementMaterialQtyUnit,
//Associations
_ReturnsRefundType,
_ReturnsRefundProcgMode,
_ReturnsRefundExtent,
_ReplacementMaterialQtyUnit
}
where CompnCntrl.executed_step_id = '0001' --Return Order
and CompnCntrl.doc_type = '00'
and CompnCntrl.doc_status = ' ' --active
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