java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SchAgrmtSchLine>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.schedulingagreement.SchAgrmtSchLine

public class SchAgrmtSchLine extends VdmEntity<SchAgrmtSchLine>
Schedule Line

Original entity name from the Odata EDM: A_SchAgrmtSchLineType

  • Field Details

    • ALL_FIELDS

      public static final SchAgrmtSchLineSelectable ALL_FIELDS
      Selector for all available fields of SchAgrmtSchLine.
    • SCHEDULING_AGREEMENT

      public static final SchAgrmtSchLineField<String> SCHEDULING_AGREEMENT
      Use with available fluent helpers to apply the SchedulingAgreement field to query operations.
    • SCHEDULING_AGREEMENT_ITEM

      public static final SchAgrmtSchLineField<String> SCHEDULING_AGREEMENT_ITEM
      Use with available fluent helpers to apply the SchedulingAgreementItem field to query operations.
    • SCHEDULE_LINE

      public static final SchAgrmtSchLineField<String> SCHEDULE_LINE
      Use with available fluent helpers to apply the ScheduleLine field to query operations.
    • DELIV_DATE_CATEGORY

      public static final SchAgrmtSchLineField<String> DELIV_DATE_CATEGORY
      Use with available fluent helpers to apply the DelivDateCategory field to query operations.
    • SCHEDULE_LINE_DELIVERY_DATE

      public static final SchAgrmtSchLineField<LocalDateTime> SCHEDULE_LINE_DELIVERY_DATE
      Use with available fluent helpers to apply the ScheduleLineDeliveryDate field to query operations.
    • SCHED_LINE_STSC_DELIVERY_DATE

      public static final SchAgrmtSchLineField<LocalDateTime> SCHED_LINE_STSC_DELIVERY_DATE
      Use with available fluent helpers to apply the SchedLineStscDeliveryDate field to query operations.
    • SCHEDULE_LINE_DELIVERY_TIME

      public static final SchAgrmtSchLineField<LocalTime> SCHEDULE_LINE_DELIVERY_TIME
      Use with available fluent helpers to apply the ScheduleLineDeliveryTime field to query operations.
    • ORDER_QUANTITY_UNIT

      public static final SchAgrmtSchLineField<String> ORDER_QUANTITY_UNIT
      Use with available fluent helpers to apply the OrderQuantityUnit field to query operations.
    • SCHEDULE_LINE_ORDER_QUANTITY

      public static final SchAgrmtSchLineField<BigDecimal> SCHEDULE_LINE_ORDER_QUANTITY
      Use with available fluent helpers to apply the ScheduleLineOrderQuantity field to query operations.
    • PURCHASE_REQUISITION

      public static final SchAgrmtSchLineField<String> PURCHASE_REQUISITION
      Use with available fluent helpers to apply the PurchaseRequisition field to query operations.
    • PURCHASE_REQUISITION_ITEM

      public static final SchAgrmtSchLineField<String> PURCHASE_REQUISITION_ITEM
      Use with available fluent helpers to apply the PurchaseRequisitionItem field to query operations.
    • ROUGH_GOODS_RECEIPT_QTY

      public static final SchAgrmtSchLineField<BigDecimal> ROUGH_GOODS_RECEIPT_QTY
      Use with available fluent helpers to apply the RoughGoodsReceiptQty field to query operations.
    • SCHEDULE_LINE_IS_FIXED

      public static final SchAgrmtSchLineField<Boolean> SCHEDULE_LINE_IS_FIXED
      Use with available fluent helpers to apply the ScheduleLineIsFixed field to query operations.
    • NO_OF_REMINDERS_OF_SCHEDULE_LINE

      public static final SchAgrmtSchLineField<BigDecimal> NO_OF_REMINDERS_OF_SCHEDULE_LINE
      Use with available fluent helpers to apply the NoOfRemindersOfScheduleLine field to query operations.
    • PREV_DELIV_QTY_OF_SCHEDULE_LINE

      public static final SchAgrmtSchLineField<BigDecimal> PREV_DELIV_QTY_OF_SCHEDULE_LINE
      Use with available fluent helpers to apply the PrevDelivQtyOfScheduleLine field to query operations.
    • SOURCE_OF_CREATION

      public static final SchAgrmtSchLineField<String> SOURCE_OF_CREATION
      Use with available fluent helpers to apply the SourceOfCreation field to query operations.
    • TO_SCHEDG_AGRMT_SUBCONTRG_COMP_TP

      public static final SchAgrmtSchLineLink<SchedgAgrmtSubcontrgComp> TO_SCHEDG_AGRMT_SUBCONTRG_COMP_TP
      Use with available fluent helpers to apply the to_SchedgAgrmtSubcontrgCompTP navigation property to query operations.
  • Constructor Details

    • SchAgrmtSchLine

      public SchAgrmtSchLine()
    • SchAgrmtSchLine

      public SchAgrmtSchLine(@Nullable String schedulingAgreement, @Nullable String schedulingAgreementItem, @Nullable String scheduleLine, @Nullable String delivDateCategory, @Nullable LocalDateTime scheduleLineDeliveryDate, @Nullable LocalDateTime schedLineStscDeliveryDate, @Nullable LocalTime scheduleLineDeliveryTime, @Nullable String orderQuantityUnit, @Nullable BigDecimal scheduleLineOrderQuantity, @Nullable String purchaseRequisition, @Nullable String purchaseRequisitionItem, @Nullable BigDecimal roughGoodsReceiptQty, @Nullable Boolean scheduleLineIsFixed, @Nullable BigDecimal noOfRemindersOfScheduleLine, @Nullable BigDecimal prevDelivQtyOfScheduleLine, @Nullable String sourceOfCreation, List<SchedgAgrmtSubcontrgComp> toSchedgAgrmtSubcontrgCompTP)
  • Method Details

    • getType

      @Nonnull public Class<SchAgrmtSchLine> getType()
      Specified by:
      getType in class VdmObject<SchAgrmtSchLine>
    • setSchedulingAgreement

      public void setSchedulingAgreement(@Nullable String schedulingAgreement)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SchedulingAgreement

      Parameters:
      schedulingAgreement - Purchasing Document Number
    • setSchedulingAgreementItem

      public void setSchedulingAgreementItem(@Nullable String schedulingAgreementItem)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: SchedulingAgreementItem

      Parameters:
      schedulingAgreementItem - Item Number of Purchasing Document
    • setScheduleLine

      public void setScheduleLine(@Nullable String scheduleLine)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ScheduleLine

      Parameters:
      scheduleLine - Delivery Schedule Line Counter
    • setDelivDateCategory

      public void setDelivDateCategory(@Nullable String delivDateCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: DelivDateCategory

      Parameters:
      delivDateCategory - Category of delivery date
    • setScheduleLineDeliveryDate

      public void setScheduleLineDeliveryDate(@Nullable LocalDateTime scheduleLineDeliveryDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ScheduleLineDeliveryDate

      Parameters:
      scheduleLineDeliveryDate - Item Delivery Date
    • setSchedLineStscDeliveryDate

      public void setSchedLineStscDeliveryDate(@Nullable LocalDateTime schedLineStscDeliveryDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: SchedLineStscDeliveryDate

      Parameters:
      schedLineStscDeliveryDate - Statistics-Relevant Delivery Date
    • setScheduleLineDeliveryTime

      public void setScheduleLineDeliveryTime(@Nullable LocalTime scheduleLineDeliveryTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ScheduleLineDeliveryTime

      Parameters:
      scheduleLineDeliveryTime - Delivery Date Time-Spot
    • setOrderQuantityUnit

      public void setOrderQuantityUnit(@Nullable String orderQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: OrderQuantityUnit

      Parameters:
      orderQuantityUnit - Purchase Order Unit of Measure
    • setScheduleLineOrderQuantity

      public void setScheduleLineOrderQuantity(@Nullable BigDecimal scheduleLineOrderQuantity)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: ScheduleLineOrderQuantity

      Parameters:
      scheduleLineOrderQuantity - Scheduled Quantity
    • setPurchaseRequisition

      public void setPurchaseRequisition(@Nullable String purchaseRequisition)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseRequisition

      Parameters:
      purchaseRequisition - Purchase Requisition Number
    • setPurchaseRequisitionItem

      public void setPurchaseRequisitionItem(@Nullable String purchaseRequisitionItem)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseRequisitionItem

      Parameters:
      purchaseRequisitionItem - Item number of purchase requisition
    • setRoughGoodsReceiptQty

      public void setRoughGoodsReceiptQty(@Nullable BigDecimal roughGoodsReceiptQty)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: RoughGoodsReceiptQty

      Parameters:
      roughGoodsReceiptQty - Quantity of Goods Received
    • setScheduleLineIsFixed

      public void setScheduleLineIsFixed(@Nullable Boolean scheduleLineIsFixed)
      Constraints: none

      Original property name from the Odata EDM: ScheduleLineIsFixed

      Parameters:
      scheduleLineIsFixed - Schedule Line is "Fixed"
    • setNoOfRemindersOfScheduleLine

      public void setNoOfRemindersOfScheduleLine(@Nullable BigDecimal noOfRemindersOfScheduleLine)
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: NoOfRemindersOfScheduleLine

      Parameters:
      noOfRemindersOfScheduleLine - No. of Reminders/Expediters for Schedule Line
    • setPrevDelivQtyOfScheduleLine

      public void setPrevDelivQtyOfScheduleLine(@Nullable BigDecimal prevDelivQtyOfScheduleLine)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: PrevDelivQtyOfScheduleLine

      Parameters:
      prevDelivQtyOfScheduleLine - Previous Quantity (Delivery Schedule Lines)
    • setSourceOfCreation

      public void setSourceOfCreation(@Nullable String sourceOfCreation)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SourceOfCreation

      Parameters:
      sourceOfCreation - Creation indicator (purchase requisition/schedule lines)
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<SchAgrmtSchLine>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<SchAgrmtSchLine>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<SchAgrmtSchLine>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<SchAgrmtSchLine>
    • field

      @Nonnull public static <T> SchAgrmtSchLineField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> SchAgrmtSchLineField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<SchAgrmtSchLine>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<SchAgrmtSchLine>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<SchAgrmtSchLine>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<SchAgrmtSchLine>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<SchAgrmtSchLine>
    • fetchSchedgAgrmtSubcontrgCompTP

      @Nonnull public List<SchedgAgrmtSubcontrgComp> fetchSchedgAgrmtSubcontrgCompTP()
      Fetches the SchedgAgrmtSubcontrgComp entities (one to many) associated with this entity. This corresponds to the OData navigation property to_SchedgAgrmtSubcontrgCompTP.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated SchedgAgrmtSubcontrgComp entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSchedgAgrmtSubcontrgCompTPOrFetch

      @Nonnull public List<SchedgAgrmtSubcontrgComp> getSchedgAgrmtSubcontrgCompTPOrFetch()
      Retrieval of associated SchedgAgrmtSubcontrgComp entities (one to many). This corresponds to the OData navigation property to_SchedgAgrmtSubcontrgCompTP.

      If the navigation property to_SchedgAgrmtSubcontrgCompTP of a queried SchAgrmtSchLine is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated SchedgAgrmtSubcontrgComp entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSchedgAgrmtSubcontrgCompTPIfPresent

      @Nonnull public io.vavr.control.Option<List<SchedgAgrmtSubcontrgComp>> getSchedgAgrmtSubcontrgCompTPIfPresent()
      Retrieval of associated SchedgAgrmtSubcontrgComp entities (one to many). This corresponds to the OData navigation property to_SchedgAgrmtSubcontrgCompTP.

      If the navigation property for an entity SchAgrmtSchLine has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_SchedgAgrmtSubcontrgCompTP is already loaded, the result will contain the SchedgAgrmtSubcontrgComp entities. If not, an Option with result state empty is returned.
    • setSchedgAgrmtSubcontrgCompTP

      public void setSchedgAgrmtSubcontrgCompTP(@Nonnull List<SchedgAgrmtSubcontrgComp> value)
      Overwrites the list of associated SchedgAgrmtSubcontrgComp entities for the loaded navigation property to_SchedgAgrmtSubcontrgCompTP.

      If the navigation property to_SchedgAgrmtSubcontrgCompTP of a queried SchAgrmtSchLine is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of SchedgAgrmtSubcontrgComp entities.
    • addSchedgAgrmtSubcontrgCompTP

      public void addSchedgAgrmtSubcontrgCompTP(SchedgAgrmtSubcontrgComp... entity)
      Adds elements to the list of associated SchedgAgrmtSubcontrgComp entities. This corresponds to the OData navigation property to_SchedgAgrmtSubcontrgCompTP.

      If the navigation property to_SchedgAgrmtSubcontrgCompTP of a queried SchAgrmtSchLine is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of SchedgAgrmtSubcontrgComp entities.
    • builder

      @Nonnull public static SchAgrmtSchLine.SchAgrmtSchLineBuilder builder()
    • getSchedulingAgreement

      @Nullable public String getSchedulingAgreement()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SchedulingAgreement

      Returns:
      Purchasing Document Number
    • getSchedulingAgreementItem

      @Nullable public String getSchedulingAgreementItem()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: SchedulingAgreementItem

      Returns:
      Item Number of Purchasing Document
    • getScheduleLine

      @Nullable public String getScheduleLine()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ScheduleLine

      Returns:
      Delivery Schedule Line Counter
    • getDelivDateCategory

      @Nullable public String getDelivDateCategory()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: DelivDateCategory

      Returns:
      Category of delivery date
    • getScheduleLineDeliveryDate

      @Nullable public LocalDateTime getScheduleLineDeliveryDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ScheduleLineDeliveryDate

      Returns:
      Item Delivery Date
    • getSchedLineStscDeliveryDate

      @Nullable public LocalDateTime getSchedLineStscDeliveryDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: SchedLineStscDeliveryDate

      Returns:
      Statistics-Relevant Delivery Date
    • getScheduleLineDeliveryTime

      @Nullable public LocalTime getScheduleLineDeliveryTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ScheduleLineDeliveryTime

      Returns:
      Delivery Date Time-Spot
    • getOrderQuantityUnit

      @Nullable public String getOrderQuantityUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: OrderQuantityUnit

      Returns:
      Purchase Order Unit of Measure
    • getScheduleLineOrderQuantity

      @Nullable public BigDecimal getScheduleLineOrderQuantity()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: ScheduleLineOrderQuantity

      Returns:
      Scheduled Quantity
    • getPurchaseRequisition

      @Nullable public String getPurchaseRequisition()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseRequisition

      Returns:
      Purchase Requisition Number
    • getPurchaseRequisitionItem

      @Nullable public String getPurchaseRequisitionItem()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseRequisitionItem

      Returns:
      Item number of purchase requisition
    • getRoughGoodsReceiptQty

      @Nullable public BigDecimal getRoughGoodsReceiptQty()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: RoughGoodsReceiptQty

      Returns:
      Quantity of Goods Received
    • getScheduleLineIsFixed

      @Nullable public Boolean getScheduleLineIsFixed()
      Constraints: none

      Original property name from the Odata EDM: ScheduleLineIsFixed

      Returns:
      Schedule Line is "Fixed"
    • getNoOfRemindersOfScheduleLine

      @Nullable public BigDecimal getNoOfRemindersOfScheduleLine()
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: NoOfRemindersOfScheduleLine

      Returns:
      No. of Reminders/Expediters for Schedule Line
    • getPrevDelivQtyOfScheduleLine

      @Nullable public BigDecimal getPrevDelivQtyOfScheduleLine()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: PrevDelivQtyOfScheduleLine

      Returns:
      Previous Quantity (Delivery Schedule Lines)
    • getSourceOfCreation

      @Nullable public String getSourceOfCreation()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SourceOfCreation

      Returns:
      Creation indicator (purchase requisition/schedule lines)
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<SchAgrmtSchLine>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<SchAgrmtSchLine>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<SchAgrmtSchLine>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<SchAgrmtSchLine>