I_FldLogsPurOrdOpenQty

DDL: I_FLDLOGSPURORDOPENQTY SQL: IFLPO_OPNQTY Type: view COMPOSITE

Purchase order open quantity

I_FldLogsPurOrdOpenQty is a Composite CDS View that provides data about "Purchase order open quantity" in SAP S/4HANA. It reads from 1 data source (I_PurgDocScheduleLine) and exposes 5 fields with key fields PurchasingDocument, PurchasingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_PurgDocScheduleLine I_PurgDocScheduleLine from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IFLPO_OPNQTY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchase order open quantity view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument
KEY PurchasingDocumentItem PurchasingDocumentItem
DeliveryDate
OpenQtyInPurchaseOrderUnit
Batch
@AbapCatalog.sqlViewName: 'IFLPO_OPNQTY'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Purchase order open quantity'
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType: {serviceQuality: #C,
                         dataClass: #TRANSACTIONAL,
                         sizeCategory: #L}
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_FldLogsPurOrdOpenQty
  as select from I_PurgDocScheduleLine

{
  key PurchasingDocument,
  key PurchasingDocumentItem,
      max(ScheduleLineDeliveryDate)   as DeliveryDate,
      sum( ScheduleLineOpenQuantity ) as OpenQtyInPurchaseOrderUnit,
      max( Batch ) as Batch


}
//where ScheduleLineOpenQuantity is not initial

group by
  PurchasingDocument,
  PurchasingDocumentItem;
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURGDOCSCHEDULELINE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/