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

public class PurchaseOrderScheduleLine extends VdmEntity<PurchaseOrderScheduleLine>
Schedule Lines

Original entity name from the Odata EDM: A_PurchaseOrderScheduleLineType

  • Field Details

    • ALL_FIELDS

      public static final PurchaseOrderScheduleLineSelectable ALL_FIELDS
      Selector for all available fields of PurchaseOrderScheduleLine.
    • PURCHASING_DOCUMENT

      public static final PurchaseOrderScheduleLineField<String> PURCHASING_DOCUMENT
      Use with available fluent helpers to apply the PurchasingDocument field to query operations.
    • PURCHASING_DOCUMENT_ITEM

      public static final PurchaseOrderScheduleLineField<String> PURCHASING_DOCUMENT_ITEM
      Use with available fluent helpers to apply the PurchasingDocumentItem field to query operations.
    • SCHEDULE_LINE

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

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

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

      public static final PurchaseOrderScheduleLineField<String> PURCHASE_ORDER_QUANTITY_UNIT
      Use with available fluent helpers to apply the PurchaseOrderQuantityUnit field to query operations.
    • SCHEDULE_LINE_ORDER_QUANTITY

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

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

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

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

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

      public static final PurchaseOrderScheduleLineField<BigDecimal> SCHEDULE_LINE_COMMITTED_QUANTITY
      Use with available fluent helpers to apply the ScheduleLineCommittedQuantity field to query operations.
    • PERFORMANCE_PERIOD_START_DATE

      public static final PurchaseOrderScheduleLineField<LocalDateTime> PERFORMANCE_PERIOD_START_DATE
      Use with available fluent helpers to apply the PerformancePeriodStartDate field to query operations.
    • PERFORMANCE_PERIOD_END_DATE

      public static final PurchaseOrderScheduleLineField<LocalDateTime> PERFORMANCE_PERIOD_END_DATE
      Use with available fluent helpers to apply the PerformancePeriodEndDate field to query operations.
    • TO_SUBCONTRACTING_COMPONENT

      public static final PurchaseOrderScheduleLineLink<POSubcontractingComponent> TO_SUBCONTRACTING_COMPONENT
      Use with available fluent helpers to apply the to_SubcontractingComponent navigation property to query operations.
  • Constructor Details

    • PurchaseOrderScheduleLine

      public PurchaseOrderScheduleLine()
    • PurchaseOrderScheduleLine

      public PurchaseOrderScheduleLine(@Nullable String purchasingDocument, @Nullable String purchasingDocumentItem, @Nullable String scheduleLine, @Nullable String delivDateCategory, @Nullable LocalDateTime scheduleLineDeliveryDate, @Nullable String purchaseOrderQuantityUnit, @Nullable BigDecimal scheduleLineOrderQuantity, @Nullable LocalTime scheduleLineDeliveryTime, @Nullable LocalDateTime schedLineStscDeliveryDate, @Nullable String purchaseRequisition, @Nullable String purchaseRequisitionItem, @Nullable BigDecimal scheduleLineCommittedQuantity, @Nullable LocalDateTime performancePeriodStartDate, @Nullable LocalDateTime performancePeriodEndDate, List<POSubcontractingComponent> toSubcontractingComponent)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PurchasingDocument

      Parameters:
      purchasingDocument - Purchasing Document Number
    • setPurchasingDocumentItem

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

      Original property name from the Odata EDM: PurchasingDocumentItem

      Parameters:
      purchasingDocumentItem - 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
    • setPurchaseOrderQuantityUnit

      public void setPurchaseOrderQuantityUnit(@Nullable String purchaseOrderQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PurchaseOrderQuantityUnit

      Parameters:
      purchaseOrderQuantityUnit - 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
    • 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
    • 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
    • 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
    • setScheduleLineCommittedQuantity

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

      Original property name from the Odata EDM: ScheduleLineCommittedQuantity

      Parameters:
      scheduleLineCommittedQuantity - Committed Quantity
    • setPerformancePeriodStartDate

      public void setPerformancePeriodStartDate(@Nullable LocalDateTime performancePeriodStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PerformancePeriodStartDate

      Parameters:
      performancePeriodStartDate - Start Date for Period of Performance
    • setPerformancePeriodEndDate

      public void setPerformancePeriodEndDate(@Nullable LocalDateTime performancePeriodEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PerformancePeriodEndDate

      Parameters:
      performancePeriodEndDate - End Date for Period of Performance
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurchaseOrderScheduleLineField<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> PurchaseOrderScheduleLineField<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<PurchaseOrderScheduleLine>
    • setServicePathForFetch

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

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

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

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

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

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

      Returns:
      List containing one or more associated POSubcontractingComponent 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.
    • getSubcontractingComponentOrFetch

      @Nonnull public List<POSubcontractingComponent> getSubcontractingComponentOrFetch()
      Retrieval of associated POSubcontractingComponent entities (one to many). This corresponds to the OData navigation property to_SubcontractingComponent.

      If the navigation property to_SubcontractingComponent of a queried PurchaseOrderScheduleLine 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 POSubcontractingComponent 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.
    • getSubcontractingComponentIfPresent

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

      If the navigation property for an entity PurchaseOrderScheduleLine 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_SubcontractingComponent is already loaded, the result will contain the POSubcontractingComponent entities. If not, an Option with result state empty is returned.
    • setSubcontractingComponent

      public void setSubcontractingComponent(@Nonnull List<POSubcontractingComponent> value)
      Overwrites the list of associated POSubcontractingComponent entities for the loaded navigation property to_SubcontractingComponent.

      If the navigation property to_SubcontractingComponent of a queried PurchaseOrderScheduleLine 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 POSubcontractingComponent entities.
    • addSubcontractingComponent

      public void addSubcontractingComponent(POSubcontractingComponent... entity)
      Adds elements to the list of associated POSubcontractingComponent entities. This corresponds to the OData navigation property to_SubcontractingComponent.

      If the navigation property to_SubcontractingComponent of a queried PurchaseOrderScheduleLine 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 POSubcontractingComponent entities.
    • builder

    • getPurchasingDocument

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

      Original property name from the Odata EDM: PurchasingDocument

      Returns:
      Purchasing Document Number
    • getPurchasingDocumentItem

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

      Original property name from the Odata EDM: PurchasingDocumentItem

      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
    • getPurchaseOrderQuantityUnit

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

      Original property name from the Odata EDM: PurchaseOrderQuantityUnit

      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
    • getScheduleLineDeliveryTime

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

      Original property name from the Odata EDM: ScheduleLineDeliveryTime

      Returns:
      Delivery Date Time-Spot
    • getSchedLineStscDeliveryDate

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

      Original property name from the Odata EDM: SchedLineStscDeliveryDate

      Returns:
      Statistics-Relevant Delivery Date
    • 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
    • getScheduleLineCommittedQuantity

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

      Original property name from the Odata EDM: ScheduleLineCommittedQuantity

      Returns:
      Committed Quantity
    • getPerformancePeriodStartDate

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

      Original property name from the Odata EDM: PerformancePeriodStartDate

      Returns:
      Start Date for Period of Performance
    • getPerformancePeriodEndDate

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

      Original property name from the Odata EDM: PerformancePeriodEndDate

      Returns:
      End Date for Period of Performance
    • toString

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

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

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

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