C_RetsRefDocCategoryValueHelp

DDL: C_RETSREFDOCCATEGORYVALUEHELP SQL: CRETREFDOCCATVH Type: view CONSUMPTION

Return Referrence Document Category

C_RetsRefDocCategoryValueHelp is a Consumption CDS View that provides data about "Return Referrence Document Category" in SAP S/4HANA. It reads from 2 data sources (I_CustRetCpyCtrlSrceDocType, I_CustRetCpyCtrlSrceDocType) and exposes 3 fields with key field SDDocumentCategory. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_CustRetCpyCtrlSrceDocType CustRetCpyCtrlSrceDocTyp inner
I_CustRetCpyCtrlSrceDocType CustRetCpyCtrlSrceDocTyp inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_SDDocumentCategoryText _Text $projection.SDDocumentCategory = _Text.SDDocumentCategory

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CRETREFDOCCATVH view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Return Referrence Document Category view
ObjectModel.resultSet.sizeCategory #XS view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY SDDocumentCategory SalesDocument SDDocumentCategory
SDDocumentCategory
_Text _Text
@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":""
}
}*/