R_POItemEnhcdNextDeliveryCalc

DDL: R_POITEMENHCDNEXTDELIVERYCALC SQL: RPONXTDLVRYENH Type: view COMPOSITE

PO Item Next Delivery Calc Enhanced

R_POItemEnhcdNextDeliveryCalc is a Composite CDS View that provides data about "PO Item Next Delivery Calc Enhanced" in SAP S/4HANA. It reads from 1 data source (I_PurOrdScheduleLineEnhanced) and exposes 5 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (1)

SourceAliasJoin Type
I_PurOrdScheduleLineEnhanced I_PurOrdScheduleLineEnhanced from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName RPONXTDLVRYENH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label PO Item Next Delivery Calc Enhanced view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder
KEY PurchaseOrderItem PurchaseOrderItem
ScheduleLine ScheduleLine
ScheduleLineDeliveryDate ScheduleLineDeliveryDate
ScheduleLineOpenQuantity ScheduleLineOpenQuantity
@AbapCatalog.sqlViewName: 'RPONXTDLVRYENH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@ClientHandling.algorithm: #SESSION_VARIABLE

@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@AccessControl.personalData.blocking: #NOT_REQUIRED

@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL

@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

@EndUserText.label: 'PO Item Next Delivery Calc Enhanced'

/* Reusable view is created for Schedule Line Calculation fields.
   This view fetches the data from the Analytical table MMPUR_ANA_EKET which has been craeted to increase the performance of the Schedule line
   data retrieval.

   Data is stored in the analytical table as a result of the Migration Job which is trigered from EKET to MMPUR_ANA_EKEET at the start of
   each delivery/release cycle .  After succesful migration run; a configuration table MMPUR_ANA_CONF (Interface view: I_PurgAnalyticsConfiguration)
   is filled with system client and field IsIntrastatReportingRelevant as 'X' . During consumption of R views; this configuration table should be
   used to determine whether the data is sucessfully migrated to new Analytical table or not .

   ScheduleLineDeliveryDate: Next Delivery date for the open Schedule Lines
   ScheduleLineOpenQuantity: Next Delivery Quantity for the open Schedule Lines with latest delivery date
   Flag PurgDocSchdLnHasNextDelivery gives the latest Schedule Line where GR is open .

   Consumption logic: Schedule Line fields from the R views in the Analytical stack (R_POItemEnhcdNextDeliveryCalc) and old stack(R_POItemNextDeliveryCalc)
   should be consumed using a case statement as the CASE approach is faster w.r.t execution time rather than UNION ALL approach  */

define view R_POItemEnhcdNextDeliveryCalc
  as select from I_PurOrdScheduleLineEnhanced

{
  key PurchaseOrder,
  key PurchaseOrderItem,
      ScheduleLine, 
      ScheduleLineDeliveryDate,
      ScheduleLineOpenQuantity
}
where
      ScheduleLineOpenQuantity     > 0
  and PurgDocSchdLnHasNextDelivery = 'X'
  and ScheduleLineDeliveryDate     is not null
  and ProcurementHubSourceSystem = 'LOCAL'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURORDSCHEDULELINEENHANCED"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/