I_CustRetCpyCtrlSrceDocType

DDL: I_CUSTRETCPYCTRLSRCEDOCTYPE Type: view_entity COMPOSITE Package: ODATA_SD_RETURN_V2

Source Document Type for Returns Order

I_CustRetCpyCtrlSrceDocType is a Composite CDS View that provides data about "Source Document Type for Returns Order" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentCopyControl, I_SalesDocumentType) and exposes 7 fields with key fields TargetSalesDocumentType, SourceSalesDocumentType, SourceBillingDocumentType, ReferenceScheduleLineCategory, ReferenceItemCategory. Part of development package ODATA_SD_RETURN_V2.

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentCopyControl SalesDocumentCopyControl from
I_SalesDocumentType SalesDocumentType inner

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Source Document Type for Returns Order view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY TargetSalesDocumentType I_SalesDocumentCopyControl TargetSalesDocumentType
KEY SourceSalesDocumentType I_SalesDocumentCopyControl SourceSalesDocumentType
KEY SourceBillingDocumentType I_SalesDocumentCopyControl SourceBillingDocumentType
KEY ReferenceScheduleLineCategory I_SalesDocumentCopyControl ReferenceScheduleLineCategory
KEY ReferenceItemCategory I_SalesDocumentCopyControl ReferenceItemCategory
_SourceSalesDocumentType I_SalesDocumentCopyControl _SourceSalesDocumentType
_SourceBillingDocumentType I_SalesDocumentCopyControl _SourceBillingDocumentType
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ObjectModel: {
  usageType:{
    serviceQuality: #A,
    sizeCategory: #S,
    dataClass: #CUSTOMIZING
  }
}
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Source Document Type for Returns Order'

define view entity I_CustRetCpyCtrlSrceDocType
  as select from I_SalesDocumentCopyControl as SalesDocumentCopyControl
  inner join     I_SalesDocumentType        as SalesDocumentType         on SalesDocumentCopyControl.TargetSalesDocumentType = SalesDocumentType.SalesDocumentType
{

  key SalesDocumentCopyControl.TargetSalesDocumentType,
  key SalesDocumentCopyControl.SourceSalesDocumentType,
  key SalesDocumentCopyControl.SourceBillingDocumentType,
  key SalesDocumentCopyControl.ReferenceScheduleLineCategory,
  key SalesDocumentCopyControl.ReferenceItemCategory,

      //Associations

      SalesDocumentCopyControl._SourceSalesDocumentType,
      SalesDocumentCopyControl._SourceBillingDocumentType
}
where SalesDocumentType.RetsMgmtIsActive   = 'X'
  and SalesDocumentType.SDDocumentCategory = 'H'