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.
@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 viewis 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 ornot .
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 UNIONALL approach */defineview R_POItemEnhcdNextDeliveryCalc
asselectfrom I_PurOrdScheduleLineEnhanced
{
key PurchaseOrder,
key PurchaseOrderItem,
ScheduleLine,
ScheduleLineDeliveryDate,
ScheduleLineOpenQuantity
}
where
ScheduleLineOpenQuantity > 0
and PurgDocSchdLnHasNextDelivery = 'X'
and ScheduleLineDeliveryDate isnotnulland ProcurementHubSourceSystem = 'LOCAL'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURORDSCHEDULELINEENHANCED"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/