I_PurgDocScheduleLine

DDL: I_PURGDOCSCHEDULELINE SQL: IMMPRGDOCSCHEDLN Type: view BASIC Package: VDM_MM_PUR_PD

Purchasing Document Schedule Line

I_PurgDocScheduleLine is a Basic CDS View that provides data about "Purchasing Document Schedule Line" in SAP S/4HANA. It reads from 1 data source (eket) and exposes 44 fields with key fields PurchasingDocument, PurchasingDocumentItem, ScheduleLine. It has 3 associations to related views. Part of development package VDM_MM_PUR_PD.

Data Sources (1)

SourceAliasJoin Type
eket eket from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Purchaserequisitionitem _PurchaseRequisitionItem $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem
[1..1] I_Purchaserequisition _PurchaseRequisition $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition
[1..1] I_Deliverydatecategory _DeliveryDateCategory $projection.DelivDateCategory = _DeliveryDateCategory.DelivDateCategory

Annotations (10)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Purchasing Document Schedule Line view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IMMPRGDOCSCHEDLN view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument eket ebeln
KEY PurchasingDocumentItem eket ebelp
KEY ScheduleLine etenr
DelivDateCategory lpein
ScheduleLineDeliveryDate eindt
SchedLineStscDeliveryDate slfdt
PerformancePeriodStartDate startdate
PerformancePeriodEndDate enddate
ScheduleLineDeliveryTime uzeit
ScheduleLineOrderQuantity eket menge
ScheduleLineOrderDate bedat
RoughGoodsReceiptQty wemng
SchedulingAgreementReleaseType abart
CommittedDeliveryDate dat01
SchedLinePrevDelivDate altdt
SchedulingLineDataAgingFilter _dataaging
PurchaseRequisition eket banfn
PurchaseRequisitionItem eket bnfpo
SourceOfCreation estkz
PrevDelivQtyOfScheduleLine ameng
NoOfRemindersOfScheduleLine eket mahnz
ScheduleLineIsFixed fixkz
ScheduleLineCommittedQuantity mng02
Reservation rsnum
ProductAvailabilityDate mbdat
MaterialStagingTime mbuhr
TransportationPlanningDate tddat
TransportationPlanningTime tduhr
LoadingDate lddat
LoadingTime lduhr
GoodsIssueDate wadat
GoodsIssueTime wauhr
STOLatestPossibleGRDate eldat
STOLatestPossibleGRTime eluhr
GoodsReceiptQuantity wemng
StockTransferDeliveredQuantity glmng
ScheduleLineIssuedQuantity wamng
Batch charg
RouteSchedule aulwe
ProductAvailabilityTime mbuhr
ScheduleLineUniqueID eket uniqueid
_PurchaseRequisition _PurchaseRequisition
_PurchaseRequisitionItem _PurchaseRequisitionItem
_DeliveryDateCategory _DeliveryDateCategory
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Purchasing Document Schedule Line'
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'IMMPRGDOCSCHEDLN'
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE

define view I_PurgDocScheduleLine
  as select from eket as eket

  association [0..1] to I_Purchaserequisitionitem as _PurchaseRequisitionItem on  $projection.PurchaseRequisition     = _PurchaseRequisitionItem.PurchaseRequisition
                                                                              and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem

  association [1..1] to I_Purchaserequisition     as _PurchaseRequisition     on  $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition


  association [1..1] to I_Deliverydatecategory    as _DeliveryDateCategory    on  $projection.DelivDateCategory = _DeliveryDateCategory.DelivDateCategory

{
      //@ObjectModel.foreignKey.association: '_PurchasingDocument'

  key eket.ebeln    as PurchasingDocument,

      //@ObjectModel.foreignKey.association: '_PurchaseDocumentItem'

  key eket.ebelp    as PurchasingDocumentItem,

  key etenr         as ScheduleLine,
      //_DeliveryDateCategory.Language,

      //@ObjectModel: { foreignKey.association: '_Deliverydatecategtext'}

      @ObjectModel: { foreignKey.association: '_DeliveryDateCategory'}
      lpein         as DelivDateCategory,

      eindt         as ScheduleLineDeliveryDate,

      slfdt         as SchedLineStscDeliveryDate,

      startdate     as PerformancePeriodStartDate,

      enddate       as PerformancePeriodEndDate,

      uzeit         as ScheduleLineDeliveryTime,

      eket.menge    as ScheduleLineOrderQuantity,

      bedat         as ScheduleLineOrderDate,

      wemng         as RoughGoodsReceiptQty,


      abart         as SchedulingAgreementReleaseType,
      dat01         as CommittedDeliveryDate,
      altdt         as SchedLinePrevDelivDate,
      _dataaging    as SchedulingLineDataAgingFilter,

      @ObjectModel.foreignKey.association: '_PurchaseRequisition'
      eket.banfn    as PurchaseRequisition,

      @ObjectModel.foreignKey.association: '_PurchaseRequisitionItem'
      eket.bnfpo    as PurchaseRequisitionItem,

      estkz         as SourceOfCreation,

      ameng         as PrevDelivQtyOfScheduleLine,

      eket.mahnz    as NoOfRemindersOfScheduleLine,

      fixkz         as ScheduleLineIsFixed,

      mng02         as ScheduleLineCommittedQuantity,

      rsnum         as Reservation,

      mbdat         as ProductAvailabilityDate,
      mbuhr         as MaterialStagingTime,
      tddat         as TransportationPlanningDate,
      tduhr         as TransportationPlanningTime,
      lddat         as LoadingDate,
      lduhr         as LoadingTime,
      wadat         as GoodsIssueDate,
      wauhr         as GoodsIssueTime,
      eldat         as STOLatestPossibleGRDate,
      eluhr         as STOLatestPossibleGRTime,
      wemng         as GoodsReceiptQuantity,
      glmng         as StockTransferDeliveredQuantity,
      wamng         as ScheduleLineIssuedQuantity,
      charg         as Batch,

      // Fields added for R_*TP development, GFN need to be approved

      aulwe         as RouteSchedule,
      mbuhr         as ProductAvailabilityTime,
//      eldat         as GoodsReceiptEndDate,

//      eluhr         as GoodsReceiptEndTime,

//      dat01         as CommittedDate,

//      handoverdate  as HandoverDte,

//      handovertime  as HandoverTme,

//      geo_route     as GeographicalRoute,


      // Fields doen't exist in DB Table, but exist in BAPIMEPOSCHEDULE

      // PurchasingDocumentDeletionCode - DELETE_IND

      // IsClosed - REQ_CLOSED


      //Persistent Key Adoption

      eket.uniqueid as ScheduleLineUniqueID,

      case
        when
         eket.menge > wemng
        then
         (eket.menge - wemng )
         else
         0
      end           as ScheduleLineOpenQuantity,

      _PurchaseRequisition,
      _PurchaseRequisitionItem,
      _DeliveryDateCategory

}