I_SALESDOCUMENTSCHEDULELINE

CDS View

Sales Document Schedule Line

I_SALESDOCUMENTSCHEDULELINE is a CDS View in S/4HANA. Sales Document Schedule Line. It contains 40 fields. 58 CDS views read from this table.

CDS Views using this table (58)

ViewTypeJoinVDMDescription
Atpc_Cds_Vbep view from CDS View on VBEP Table for ATP BOP
C_ESJIMaxDelivCreationDate view from CONSUMPTION Maximum Delivery Creation Date for Sales Order
C_MassChangeSlsOrdItmSchdLn view from CONSUMPTION Mass Change of Sales Order Schedule Line
C_MassChgOrdWthoutChrgSchdLn view from CONSUMPTION Mass Chg of Sls Ord Without Charge SchdLn
C_MassChgSlsSchedgAgrmtSchdLn view from CONSUMPTION Mass Change of Sls Schedg Agrmnt SchdLn
C_RFM_MaSaDoSlsOrdSchedLine view from CONSUMPTION Sales Order Schedule Line Details
C_SalesDocumentSchedLineDEX view from CONSUMPTION Data Extraction for Sales Document Schedule Lines
C_SalesDocumentSchedLineDEX_1 view from CONSUMPTION Data Extraction for Sales Document Schedule Lines
C_SlsDocFlfmtSlsDocSchdLn view from CONSUMPTION Sales Doc Fulfillment: Sales Doc Schedule Line
C_SlsDocSchedLineDeliveryBlkd view from CONSUMPTION Sales Doc Schedule Line Delivery Blocked
CIC_SalesDocumentScheduleline view_entity from Proj. on Sls Doc. Schedule Line (Industry Cloud Solutions)
I_AlignSlsOrdAcctAssgdSl view from BASIC Sales Order Schedule line data
I_ARunItmRsnCode view left_outer COMPOSITE Basic View for Reason Code of ARun
I_ARunOvwConfStrgy view left_outer COMPOSITE View for Confirmation Strategy of ARun
I_CustomerReturnScheduleLine view from BASIC Returns Order Schedule Line
I_DigitalVehScheduleLine view_entity from COMPOSITE Schedule line delivery date for SO item
I_ExcessRqmtQtyPerSlsItm view from BASIC Aggregated Quantity Per Sales Item
I_MRPSalesDemand view inner COMPOSITE MRP Sales Demand
I_RFM_MaSaDoSlsOrdItmAggrg view from BASIC Aggregated Quantity Per Sales Item
I_RFM_SlsOrdGnrcAggrg view from COMPOSITE Generic Item aggregation
I_SalesOrderScheduleLine view from BASIC Sales Order Schedule Line
I_SalesSchedgAgrmtSchedLine view from BASIC Schedule Line of Sales Scheduling Agreement
I_SlsDocItemConfDeliveryDate view from COMPOSITE Sales Document Item Conf. delivery date
I_SlsDocItemReqdDeliveryDate view from COMPOSITE Sales Document Item Req. delivery date
I_SlsDocItmDelivCreationDate view from COMPOSITE Sales Document Item Deliv. Creation Date
I_SlsDocSchedLineAnalytics view from COMPOSITE Sales Document Schedule Line Analytics
I_SlsOrdFlfmtScheduleLine view from COMPOSITE SOFM Sales Order Scheduleline
I_SlsOrdWthoutChrgSchedLine view from BASIC Schedule Line for Sales Order Without Charge
I_SupDmndAllDocSDItmBsc view from BASIC Basic View for Sales Document
P_ABOP_HRF_Sales view from BASIC
P_ABOPFC_SALES_EXT view from BASIC
P_ABOPFieldCatalog view from BASIC
P_ABOPRlvtSalesRequirement view_entity from COMPOSITE Advncd BOP Run for All Rlvt Sales Docs
P_ABOPSalesDocScheduleLine view from COMPOSITE
P_CustRetItemScheduleLine view_entity from CONSUMPTION Customer Return Item ScheduleLine
P_ForecastDemandSales view inner COMPOSITE
P_MassChgSlsDocSchdLnReadReq view from CONSUMPTION Mass Chg of Sales Doc SchdLn Read Req
P_ProdAllocSalesSchedLine view inner CONSUMPTION Product Allocation Sales Order Schedule Lines
P_ProdAllocSalesStatus view from CONSUMPTION
P_ReqdProdAllocSalesSchedLine view_entity inner COMPOSITE Requested Product Allocation Sales Order Schedule Lines
P_RFDYConfFigsBySalesOrderItem view_entity from CONSUMPTION RFDY Confirmation Figures By Sales Order Item
P_SalesOrderDeliveryBlkd1 view from COMPOSITE
P_SalesOrderItemDeliveryBlkd view from COMPOSITE
P_SalesOrderItemDeliveryBlkd1 view from COMPOSITE
P_SalesOrdersDeliveryDate view from COMPOSITE Delivery Date for Sales Order
P_SchdAgrItmSchdLnCnt view_entity from COMPOSITE Count the Sched.Lns per Sched.Agr.Item
P_SlsDocFlfmtSlsDocItem1 view from CONSUMPTION
P_SlsDocItemDeliveryBlkd1 view from COMPOSITE
P_SlsDocItemPrdtdDelivDelay1 view from CONSUMPTION
P_SlsDocItmSchdLnAnlyts2 view from COMPOSITE
P_SlsDocSchedLineAnlyts view from COMPOSITE
P_SlsOrdConfAnalytics view from COMPOSITE
P_SOTFieldCatalog_Sales view from COMPOSITE
P_SupAssgmtSDItmQty view from COMPOSITE
P_SupDmndAllDocSDDate view from BASIC
P_SupDmndOvwSDDate view from COMPOSITE
R_HUPSchedLineTP view_entity from TRANSACTIONAL Schedule Lines (HUP)
rfm_scc_so_schedule_line_agg view from RFM SO Scheducule Line Aggregation

Fields (40)

KeyField CDS FieldsUsed in Views
KEY mandt mandt 1
KEY RequestedDeliveryDate RequestedDeliveryDate 3
KEY RequestedDeliveryTime RequestedDeliveryTime 1
KEY SalesDocument ATPRelevantDocument,CustomerReturn,delnr,ProdAllocAssignedOrder,RequirementDocumentNumber,SalesDocument,SalesOrder,SalesOrderWithoutCharge 20
KEY SalesDocumentItem ATPRelevantDocumentItem,delps,ProdAllocAssignedOrderItem,RequirementDocumentItem,SalesDocumentItem,SalesOrderItem,SalesOrderWithoutChargeItem,SalesSchedulingAgreementItem 19
KEY ScheduleLine ATPRelevantDocScheduleLine,delet,ScheduleLine 9
_DelivBlockReasonForSchedLine _DelivBlockReasonForSchedLine,_DeliveryBlockReason 3
_OrderQuantityUnit _OrderQuantityUnit 2
_SalesDocument _SalesDocument 6
_SalesDocumentItem _SalesDocumentItem 2
_TradeCmplncLegalCtrlChkSts _TradeCmplncLegalCtrlChkSts 1
_TransactionCurrency _TransactionCurrency 4
ConfdOrderQtyByMatlAvailCheck ConfdOrderQtyByMatlAvailCheck 4
ConfdSchedLineReqdDelivDate ConfdSchedLineReqdDelivDate,RequestedDate,RequestedDeliveryDate 4
ConfirmedDeliveryDate ConfirmedDeliveryDate 2
ConfirmedRqmtQtyInBaseUnit ConfirmedRqmtQtyInBaseUnit 1
CorrectedQtyInOrderQtyUnit CorrectedQtyInOrderQtyUnit 2
DelivBlockReasonForSchedLine DelivBlockReasonForSchedLine,DeliveryBlockReason 6
DeliveredQtyInOrderQtyUnit DeliveredQtyInOrderQtyUnit 2
DeliveredQuantityInBaseUnit DeliveredQuantityInBaseUnit 1
DeliveryDate DeliveryDate,RequestedDeliveryDate 6
GoodsIssueDate GoodsIssueDate,wadat 3
GoodsIssueTime wauhr 1
GoodsMovementType bwart 1
IsConfirmedDelivSchedLine IsConfirmedDelivSchedLine 4
IsRequestedDelivSchedLine IsRequestedDelivSchedLine 4
LoadingDate lddat,LoadingDate 3
LoadingTime lduhr 1
MRPRequiredQuantityInBaseUnit MRPRequiredQuantityInBaseUnit 2
OrderID OrderID 4
OrderQuantityUnit OrderQuantityUnit 6
ProductAvailabilityDate ProductAvailabilityDate 6
ProductAvailabilityTime mat_avail_time 1
RequestedRqmtQtyInBaseUnit RequestedRqmtQtyInBaseUnit 1
ScheduleLineCategory ScheduleLineCategory,sline_category 6
ScheduleLineOrderQuantity ScheduleLineOrderQuantity 4
TradeCmplncLegalCtrlChkSts TradeCmplncLegalCtrlChkSts 1
TransactionCurrency TransactionCurrency 4
TransportationPlanningDate tddat,TransportationPlanningDate 3
TransportationPlanningTime tduhr 1
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Sales Document Schedule Line'
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AbapCatalog.sqlViewName: 'ISDSLSDOCSCHEDLN'
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck:#CHECK
@ObjectModel: {
   representativeKey: 'ScheduleLine',
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XL
   },
   supportedCapabilities: [ #ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE ],
   modelingPattern: [ #ANALYTICAL_DIMENSION ]
}
@Metadata.ignorePropagatedAnnotations: true
@Analytics:{dataCategory:#DIMENSION}
@Metadata.allowExtensions: true

define view I_SalesDocumentScheduleLine
  as select from vbep
  association [1..1] to I_SalesDocument           as _SalesDocument                 on  $projection.SalesDocument = _SalesDocument.SalesDocument
  association [1..1] to I_SalesDocumentItem       as _SalesDocumentItem             on  $projection.SalesDocumentItem = _SalesDocumentItem.SalesDocumentItem
                                                                                    and $projection.SalesDocument     = _SalesDocumentItem.SalesDocument
  association [0..1] to I_ScheduleLineCategory    as _ScheduleLineCategory          on  $projection.ScheduleLineCategory = _ScheduleLineCategory.ScheduleLineCategory
  association [0..1] to I_ProdAvailyCheckRqmtType as _ProdAvailabilityCheckRqmtType on  $projection.ProdAvailabilityCheckRqmtType = _ProdAvailabilityCheckRqmtType.ProdAvailabilityCheckRqmtType
                                                                                    and $projection.ProdAvailyCheckPlanningType   = _ProdAvailabilityCheckRqmtType.ProdAvailyCheckPlanningType
  association [0..1] to I_ScheduleLineConfStatus  as _ScheduleLineConfStatus        on  $projection.ScheduleLineConfirmationStatus = _ScheduleLineConfStatus.ScheduleLineConfirmationStatus
  association [0..1] to I_MfgOrder                as _OrderID                       on  $projection.OrderID = _OrderID.ManufacturingOrder
  association [0..1] to I_UnitOfMeasure           as _OrderQuantityUnit             on  $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
  //Todo:association[0..1] to I_PurchaseOrderTypeName

  association [0..1] to I_UnitOfMeasure           as _BaseUnit                      on  $projection.BaseUnit = _BaseUnit.UnitOfMeasure
  association [0..1] to I_DeliveryBlockReason     as _DelivBlockReasonForSchedLine  on  $projection.DelivBlockReasonForSchedLine = _DelivBlockReasonForSchedLine.DeliveryBlockReason
  association [0..1] to I_GoodsMovementType       as _GoodsMovementType             on  $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
  association [0..1] to I_Currency                as _TransactionCurrency           on  $projection.TransactionCurrency = _TransactionCurrency.Currency
  association [0..1] to I_TradeCmplncLegalCtrlChkSts as _TradeCmplncLegalCtrlChkSts  on  $projection.TradeCmplncLegalCtrlChkSts = _TradeCmplncLegalCtrlChkSts.TradeCmplncLegalCtrlChkSts
{
      //Key

      @ObjectModel.foreignKey.association: '_SalesDocument'
  key vbep.vbeln       as SalesDocument,
      @ObjectModel.foreignKey.association: '_SalesDocumentItem'
  key posnr            as SalesDocumentItem,
  key etenr            as ScheduleLine,

      //category

      @ObjectModel.foreignKey.association: '_ScheduleLineCategory'
      ettyp            as ScheduleLineCategory,

      //sales

      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_OrderQuantityUnit'
      vrkme            as OrderQuantityUnit,
      umvkn            as OrderToBaseQuantityDnmntr,
      umvkz            as OrderToBaseQuantityNmrtr,
      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_BaseUnit'
      meins            as BaseUnit,
      edatu            as DeliveryDate,
      prgrs            as DelivDateCategory,

      //requested

      case when
          vbep.wmeng != 0
      then
          'X'
      else
          ''
      end              as IsRequestedDelivSchedLine,
      case when
          vbep.wmeng != 0
      then
          vbep.edatu
      --else
      --    ''    -- to enforce a NULL-value, that is needed by ODATA
      end              as RequestedDeliveryDate,
      case when
          vbep.wmeng != 0
      then
          vbep.ezeit
      --else
      --    ''    -- to enforce a NULL-value, that is needed by ODATA
      end              as RequestedDeliveryTime,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
      vbep.wmeng       as ScheduleLineOrderQuantity,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
      vbep.cmeng       as CorrectedQtyInOrderQtyUnit,

      //confrimed

      case when
          vbep.bmeng != 0
      then
          'X'
      else
          ''
      end              as IsConfirmedDelivSchedLine,
      case when
          vbep.bmeng != 0
      then
          vbep.edatu
      --else
      --    ''  -- to enforce a NULL-value, that is needed by ODATA
      end              as ConfirmedDeliveryDate,
      case when
          vbep.bmeng != 0
      then
          vbep.ezeit
      --else
      --    ''  -- to enforce a NULL-value, that is needed by ODATA
       end             as ConfirmedDeliveryTime,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
      vbep.bmeng       as ConfdOrderQtyByMatlAvailCheck,
      vbep.req_dlvdate as ConfdSchedLineReqdDelivDate,
      //availibity

      mbdat            as ProductAvailabilityDate,

      //Availibility

      mbuhr            as ProductAvailabilityTime,
      bddat            as ProductAvailCheckRqmtDate,
      bdart            as ProdAvailabilityCheckRqmtType,
      plart            as ProdAvailyCheckPlanningType,
      @ObjectModel.foreignKey.association: '_ScheduleLineConfStatus'
      wepos            as ScheduleLineConfirmationStatus,
      bedar            as RequirementsClass,

      //InternalProcurement

      plnum            as PlannedOrder,
      @ObjectModel.foreignKey.association: '_OrderID'
      vbep.aufnr       as OrderID,

      //SchedulingAgreement

      abart            as SchedulingAgreementReleaseType,
      abruf            as ScheduleLineByForecastDelivery,
      fsh_os_id        as OrderSchedulingGroup,
      aeskd            as CustEngineeringChgStatus,

      //Purchasing

      cast(banfn as vdm_purchaserequisition preserving type )     as PurchaseRequisition,
      cast(bnfpo as mm_a_purchaserequisitionitem preserving type) as PurchaseRequisitionItem,
      bsart            as PurchasingOrderType,
      bstyp            as PurchasingDocumentCategory,

      //shipping

      crea_dlvdate     as DeliveryCreationDate,
      tddat            as TransportationPlanningDate,
      tduhr            as TransportationPlanningTime,
      wadat            as GoodsIssueDate,
      lddat            as LoadingDate,
      wauhr            as GoodsIssueTime,
      lduhr            as LoadingTime,
      lfrel            as ItemIsDeliveryRelevant,
      @ObjectModel.foreignKey.association: '_DelivBlockReasonForSchedLine'
      lifsp            as DelivBlockReasonForSchedLine,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
      ordqty_su        as OpenReqdDelivQtyInOrdQtyUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      ordqty_bu        as OpenReqdDelivQtyInBaseUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
      ocdqty_su        as OpenConfdDelivQtyInOrdQtyUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      ocdqty_bu        as OpenConfdDelivQtyInBaseUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
      dlvqty_su        as DeliveredQtyInOrderQtyUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      dlvqty_bu        as DeliveredQuantityInBaseUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      rrqqty_bu        as RequestedRqmtQtyInBaseUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      crqqty_bu        as ConfirmedRqmtQtyInBaseUnit,
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      vbep.lmeng       as MRPRequiredQuantityInBaseUnit,
      
      @ObjectModel.foreignKey.association: '_GoodsMovementType'
      bwart            as GoodsMovementType,
      aulwe            as RouteSchedule,

      @DefaultAggregation: #SUM
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      odn_amount       as OpenDeliveryNetAmount,
      @Semantics.currencyCode: true
      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      vbep.waerk       as TransactionCurrency,
      @ObjectModel.foreignKey.association: '_TradeCmplncLegalCtrlChkSts'
      vbep.lccst       as TradeCmplncLegalCtrlChkSts,

      @ObjectModel.association.type: [#TO_COMPOSITION_ROOT]
      _SalesDocument,
      @ObjectModel.association.type: [#TO_COMPOSITION_PARENT]
      _SalesDocumentItem,
      _ScheduleLineCategory,
      _ProdAvailabilityCheckRqmtType,
      _ScheduleLineConfStatus,
      _TransactionCurrency,
      _OrderID,
      _OrderQuantityUnit,
      _BaseUnit,
      _DelivBlockReasonForSchedLine,
      _GoodsMovementType,
      _TradeCmplncLegalCtrlChkSts
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"VBEP"
],
"ASSOCIATED":
[
"I_CURRENCY",
"I_DELIVERYBLOCKREASON",
"I_GOODSMOVEMENTTYPE",
"I_MFGORDER",
"I_PRODAVAILYCHECKRQMTTYPE",
"I_SALESDOCUMENT",
"I_SALESDOCUMENTITEM",
"I_SCHEDULELINECATEGORY",
"I_SCHEDULELINECONFSTATUS",
"I_TRADECMPLNCLEGALCTRLCHKSTS",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/