@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName : 'CRETREFDOCCATVH'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel.dataCategory: #VALUE_HELP
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@EndUserText.label : 'Return Referrence Document Category'
@ObjectModel.resultSet.sizeCategory: #XS
define view C_RetsRefDocCategoryValueHelp
as select distinct from I_SalesDocument as SalesDocument
// inner join I_SalesDocumentCopyControl as SalesDocumentCopyControl on SalesDocument.SalesDocumentType = SalesDocumentCopyControl.SourceSalesDocumentType
inner join I_CustRetCpyCtrlSrceDocType as CustRetCpyCtrlSrceDocTyp on CustRetCpyCtrlSrceDocTyp.SourceSalesDocumentType = SalesDocument.SalesDocumentType
association [0..*] to I_SDDocumentCategoryText as _Text on $projection.SDDocumentCategory = _Text.SDDocumentCategory
{
@ObjectModel.text.association : '_Text'
key SalesDocument.SDDocumentCategory,
_Text
}
where
// SalesDocumentCopyControl.TargetSalesDocumentType = 'CBAR'
CustRetCpyCtrlSrceDocTyp.SourceSalesDocumentType <> ''
union all
select distinct from I_BillingDocument as BillingDocument
// inner join I_SalesDocumentCopyControl as SalesDocumentCopyControl on BillingDocument.BillingDocumentType = SalesDocumentCopyControl.SourceBillingDocumentType
inner join I_CustRetCpyCtrlSrceDocType as CustRetCpyCtrlSrceDocTyp on CustRetCpyCtrlSrceDocTyp.SourceBillingDocumentType = BillingDocument.BillingDocumentType
association [0..*] to I_SDDocumentCategoryText as _Text on $projection.SDDocumentCategory = _Text.SDDocumentCategory
{
@ObjectModel.text.association : '_Text'
key BillingDocument.SDDocumentCategory,
_Text
}
where
// SalesDocumentCopyControl.TargetSalesDocumentType = 'CBAR'
BillingDocument.OverallSDProcessStatus = 'C'
and CustRetCpyCtrlSrceDocTyp.SourceBillingDocumentType <> ''
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_BILLINGDOCUMENT",
"I_CUSTRETCPYCTRLSRCEDOCTYPE",
"I_SALESDOCUMENT"
],
"ASSOCIATED":
[
"I_SDDOCUMENTCATEGORYTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_RetsRefDocCategoryValueHelp view