P_AnaEketSdmMiration1

DDL: P_ANAEKETSDMMIRATION1 SQL: PSDMMMEKET1 Type: view COMPOSITE

Pur Docs not migrated to MMPUR_ANA_EKET

P_AnaEketSdmMiration1 is a Composite CDS View that provides data about "Pur Docs not migrated to MMPUR_ANA_EKET" in SAP S/4HANA. It reads from 2 data sources (I_PurgDocScheduleLine, I_PurchasingDocumentItem) and exposes 2 fields with key field PurchasingDocument.

Data Sources (2)

SourceAliasJoin Type
I_PurgDocScheduleLine eket inner
I_PurchasingDocumentItem ekpo inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSDMMMEKET1 view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Pur Docs not migrated to MMPUR_ANA_EKET view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument ekko PurchasingDocument
PurchasingDocumentCategory ekko PurchasingDocumentCategory
@AbapCatalog.sqlViewName: 'PSDMMMEKET1'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #A,
     sizeCategory:   #XL
   }
}
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Pur Docs not migrated to MMPUR_ANA_EKET'
define view P_AnaEketSdmMiration1
  as select distinct from   I_PurchasingDocument          as ekko
    inner join              I_PurchasingDocumentItem      as ekpo     on ekko.PurchasingDocument = ekpo.PurchasingDocument
    inner join              I_PurgDocScheduleLine         as eket     on  eket.PurchasingDocument     = ekko.PurchasingDocument
                                                                      and eket.PurchasingDocumentItem = ekpo.PurchasingDocumentItem
    left outer to many join I_PurgDocScheduleLineEnhanced as ana_eket on ekko.PurchasingDocument = ana_eket.PurchasingDocument
{
  key ekko.PurchasingDocument                     as PurchasingDocument,
      ekko.PurchasingDocumentCategory             as PurchasingDocumentCategory,
      //ana_eket.PurgDocSDMVers         as p_sdm_version

      case when ana_eket.PurgDocSDMVers is not initial
          then ana_eket.PurgDocSDMVers
          else cast( '00' as abap.char( 2 ) ) end as sdm_status
}
where
  (
       ekko.PurchasingDocumentCategory     =  'F'
    or ekko.PurchasingDocumentCategory     =  'L'
  )
  and(
       ekpo.IsStatisticalItem              =  ''
    or ekpo.Material                       <> ''
  )
  and  ekko.PurchasingDocumentDeletionCode =  ''
  and  ekko.PurchasingCompletenessStatus   =  ''
  and  ekko.PurchasingDocumentIsAged       =  ''
  and  ekko.IsEndOfPurposeBlocked          =  ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCUMENT",
"I_PURCHASINGDOCUMENTITEM",
"I_PURGDOCSCHEDULELINE",
"I_PURGDOCSCHEDULELINEENHANCED"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/