I_CUSTRETCPYCTRLSRCEDOCTYPE
Source Document Type for Returns Order
I_CUSTRETCPYCTRLSRCEDOCTYPE is a CDS View in S/4HANA. Source Document Type for Returns Order. 3 CDS views read from this table.
CDS Views using this table (3)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_CustRetRefSDDocumentVH | view_entity | inner | CONSUMPTION | Customer Return Reference SD Document |
| C_RetsRefDocCategoryValueHelp | view | inner | 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'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTCOPYCONTROL",
"I_SALESDOCUMENTTYPE"
],
"ASSOCIATED":
[
"I_BILLINGDOCUMENTTYPE",
"I_SALESDOCUMENTTYPE"
],
"BASE":
[
"I_SALESDOCUMENTCOPYCONTROL"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/