I_CUSTRETCPYCTRLSRCEDOCTYPE

CDS View

Source Document Type for Returns Order

I_CUSTRETCPYCTRLSRCEDOCTYPE is a CDS View in S/4HANA. Source Document Type for Returns Order. 4 CDS views read from this table.

CDS Views using this table (4)

ViewTypeJoinVDMDescription
C_CustRetRefSDDocumentVH view_entity inner CONSUMPTION Customer Return Reference SD Document
C_RetsRefDocCategoryValueHelp view from CONSUMPTION Return Referrence Document Category
C_RetsRefDocCategoryValueHelp view union CONSUMPTION Return Referrence Document Category
C_ReturnsReferenceDocVH view_entity inner CONSUMPTION Return Reference Document
@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'