P_RFDYPurgSchedLineWthProcdQts

DDL: P_RFDYPURGSCHEDLINEWTHPROCDQTS SQL: PRFDYPURSPQTS Type: view CONSUMPTION

P_RFDYPurgSchedLineWthProcdQts is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_PurgDocScheduleLine) and exposes 5 fields with key fields PurchasingDocument, PurchasingDocumentItem, ScheduleLine.

Data Sources (1)

SourceAliasJoin Type
I_PurgDocScheduleLine I_PurgDocScheduleLine from

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PRFDYPURSPQTS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument
KEY PurchasingDocumentItem PurchasingDocumentItem
KEY ScheduleLine ScheduleLine
ScheduleLineOrderQuantity ScheduleLineOrderQuantity
ScheduleLineCommittedQuantity ScheduleLineCommittedQuantity
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PRFDYPURSPQTS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_RFDYPurgSchedLineWthProcdQts
  as select from I_PurgDocScheduleLine
{

  key PurchasingDocument,
  key PurchasingDocumentItem,
  key ScheduleLine,

      case
        when GoodsReceiptQuantity > StockTransferDeliveredQuantity
             and GoodsReceiptQuantity > ScheduleLineIssuedQuantity       then GoodsReceiptQuantity
        when StockTransferDeliveredQuantity > ScheduleLineIssuedQuantity then StockTransferDeliveredQuantity
                                                                         else ScheduleLineIssuedQuantity
      end as ProcessedQuantity,

      ScheduleLineOrderQuantity,
      ScheduleLineCommittedQuantity
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURGDOCSCHEDULELINE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/