P_RetsMgmtProcessItemExec2

DDL: P_RETSMGMTPROCESSITEMEXEC2 SQL: PRMRTSITMEXEC2 Type: view BASIC Package: VDM_ARM_BASICS

Returns Mgmt Process Item Execution 2

P_RetsMgmtProcessItemExec2 is a Basic CDS View that provides data about "Returns Mgmt Process Item Execution 2" 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. Part of development package VDM_ARM_BASICS.

Data Sources (1)

SourceAliasJoin Type
msr_d_executed CompnCntrl from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _ReplacementMaterialQtyUnit $projection.ReplacementMaterialQtyUnit = _ReplacementMaterialQtyUnit.UnitOfMeasure

Annotations (8)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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