C_RFM_MngSlsDocHdrIncompltn

DDL: C_RFM_MNGSLSDOCHDRINCOMPLTN SQL: CRFMSDHINC Type: view CONSUMPTION

Header Details for Mass Incompletion

C_RFM_MngSlsDocHdrIncompltn is a Consumption CDS View that provides data about "Header Details for Mass Incompletion" in SAP S/4HANA. It reads from 4 data sources (I_RFM_IncompletionTableTxt, I_RFM_IncompletionTxt, I_SDDocumentIncompletionLog, I_SalesDocumentBasic) and exposes 14 fields with key fields SalesOrder, SDDocumentItem, ScheduleLine, SlsDistrictDeviatedPartFunc, SDDocumentTextID.

Data Sources (4)

SourceAliasJoin Type
I_RFM_IncompletionTableTxt _IncompletionTableTxt inner
I_RFM_IncompletionTxt _IncompletionTxt inner
I_SDDocumentIncompletionLog Incompletion from
I_SalesDocumentBasic SalesDocument inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CRFMSDHINC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.updateEnabled true view
EndUserText.label Header Details for Mass Incompletion view
VDM.viewType #CONSUMPTION view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SalesOrder SDDocument Sales Document
KEY SDDocumentItem SDDocumentItem
KEY ScheduleLine ScheduleLine
KEY SlsDistrictDeviatedPartFunc
KEY SDDocumentTextID SDDocumentTextID
KEY SDDocumentTable I_SDDocumentIncompletionLog SDDocumentTable
KEY SDDocumentTableField SDDocumentTableField
SlsDocIncompletionTableName I_RFM_IncompletionTableTxt SlsDocIncompletionTableName
SlsDocIncompletionFieldName I_RFM_IncompletionTxt SlsDocIncompletionFieldName
SalesOrderFieldValue Field Value
SalesDocumentType SalesDocumentType
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
OrganizationDivision OrganizationDivision
@AbapCatalog.sqlViewName: 'CRFMSDHINC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.updateEnabled: true
@EndUserText.label: 'Header Details for Mass Incompletion'
@VDM.viewType: #CONSUMPTION
define view C_RFM_MngSlsDocHdrIncompltn
  as select from I_SDDocumentIncompletionLog as Incompletion
    inner join   I_RFM_IncompletionTableTxt  as _IncompletionTableTxt on _IncompletionTableTxt.SDDocumentTable = Incompletion.SDDocumentTable
    inner join   I_RFM_IncompletionTxt       as _IncompletionTxt      on _IncompletionTxt.SlsDocIncompletionCode = Incompletion.SDDocumentTableField
    inner join I_SalesDocumentBasic as SalesDocument
   on Incompletion.SDDocument = SalesDocument.SalesDocument
{
      @EndUserText.label: 'Sales Document'
      @ObjectModel.readOnly: true
  key SDDocument                     as SalesOrder,
  key SDDocumentItem,
  key ScheduleLine,
  key cast(PartnerFunction as parvw) as SlsDistrictDeviatedPartFunc,
  key SDDocumentTextID,
      @ObjectModel.text.element: ['SlsDocIncompletionTableName']
      @UI.textArrangement: #TEXT_FIRST
      @ObjectModel.readOnly: true
  key Incompletion.SDDocumentTable,
      @ObjectModel.text.element: ['SlsDocIncompletionFieldName']
      @UI.textArrangement: #TEXT_FIRST
      @ObjectModel.readOnly: true
  key SDDocumentTableField,
      @Semantics.text:true
      _IncompletionTableTxt.SlsDocIncompletionTableName,
      @Semantics.text:true
      _IncompletionTxt.SlsDocIncompletionFieldName,
      @Consumption.valueHelpDefinition: [{entity.name:      'C_SlsOrdIncompltnFieldVH',
                                          entity.element:   'SalesOrderFieldValue',
                                          additionalBinding: [{ element:      'SDDocumentTable',
                                                                localElement: 'SDDocumentTable',
                                                                usage:        #FILTER },
                                                                { element:      'SDDocumentTableField',
                                                                localElement: 'SDDocumentTableField',
                                                                usage:        #FILTER } ]
                                                                }]
      @Consumption.filter : { selectionType : #SINGLE, multipleSelections : false }
      @EndUserText.label: 'Field Value'
      cast('' as char50)             as SalesOrderFieldValue,
      SalesDocumentType,
      SalesOrganization,
      DistributionChannel,
      OrganizationDivision
}
where
       SDDocumentItem               = '000000'
  and(
       Incompletion.SDDocumentTable = 'VBKD'
    or Incompletion.SDDocumentTable = 'VBAK'
    or Incompletion.SDDocumentTable = 'VEDA'
    or Incompletion.SDDocumentTable = 'VBAP'
    or Incompletion.SDDocumentTable = 'VBKA'
    or Incompletion.SDDocumentTable = 'VBEP'
    or Incompletion.SDDocumentTable = 'VBPA'
  )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_RFM_INCOMPLETIONTABLETXT",
"I_RFM_INCOMPLETIONTXT",
"I_SALESDOCUMENTBASIC",
"I_SDDOCUMENTINCOMPLETIONLOG"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/