java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ReservationDocumentHeader_2>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.reservationdocument.ReservationDocumentHeader_2
All Implemented Interfaces:
VdmEntitySet

public class ReservationDocumentHeader_2 extends VdmEntity<ReservationDocumentHeader_2> implements VdmEntitySet
Reservation Document Header

Original entity name from the Odata EDM: A_ReservationDocumentHeader_2_Type

  • Field Details

  • Constructor Details

    • ReservationDocumentHeader_2

      public ReservationDocumentHeader_2()
    • ReservationDocumentHeader_2

      public ReservationDocumentHeader_2(@Nullable String reservation, @Nullable String goodsMovementType, @Nullable String costCenter, @Nullable String assetNumber, @Nullable String assetSubNumber, @Nullable String issuingOrReceivingPlant, @Nullable String issuingOrReceivingStorageLoc, @Nullable String salesOrder, @Nullable String salesOrderItem, @Nullable String salesOrderScheduleLine, @Nullable LocalDate reservationDate, @Nullable Boolean isCheckedAgainstFactoryCal, @Nullable String wBSElement, @Nullable String controllingArea, @Nullable String orderID, @Nullable String userID, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable String resvnVerificationCompanyCode, @Nullable Collection<SAP__Message> _Messages, List<ReservationDocumentItem_2> to_ReservationDocumentItem)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Reservation

      Parameters:
      reservation - Number of reservation/dependent requirements
    • setGoodsMovementType

      public void setGoodsMovementType(@Nullable String goodsMovementType)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: GoodsMovementType

      Parameters:
      goodsMovementType - Movement Type (Inventory Management)
    • setCostCenter

      public void setCostCenter(@Nullable String costCenter)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CostCenter

      Parameters:
      costCenter - Cost Center
    • setAssetNumber

      public void setAssetNumber(@Nullable String assetNumber)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: AssetNumber

      Parameters:
      assetNumber - Main Asset Number
    • setAssetSubNumber

      public void setAssetSubNumber(@Nullable String assetSubNumber)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AssetSubNumber

      Parameters:
      assetSubNumber - Asset Subnumber
    • setIssuingOrReceivingPlant

      public void setIssuingOrReceivingPlant(@Nullable String issuingOrReceivingPlant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: IssuingOrReceivingPlant

      Parameters:
      issuingOrReceivingPlant - Receiving plant/issuing plant
    • setIssuingOrReceivingStorageLoc

      public void setIssuingOrReceivingStorageLoc(@Nullable String issuingOrReceivingStorageLoc)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: IssuingOrReceivingStorageLoc

      Parameters:
      issuingOrReceivingStorageLoc - Receiving/issuing storage location
    • setSalesOrder

      public void setSalesOrder(@Nullable String salesOrder)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SalesOrder

      Parameters:
      salesOrder - Sales Order Number
    • setSalesOrderItem

      public void setSalesOrderItem(@Nullable String salesOrderItem)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesOrderItem

      Parameters:
      salesOrderItem - Item Number in Sales Order
    • setSalesOrderScheduleLine

      public void setSalesOrderScheduleLine(@Nullable String salesOrderScheduleLine)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOrderScheduleLine

      Parameters:
      salesOrderScheduleLine - Delivery schedule for sales order
    • setReservationDate

      public void setReservationDate(@Nullable LocalDate reservationDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ReservationDate

      Parameters:
      reservationDate - Base date for reservation
    • setIsCheckedAgainstFactoryCal

      public void setIsCheckedAgainstFactoryCal(@Nullable Boolean isCheckedAgainstFactoryCal)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsCheckedAgainstFactoryCal

      Parameters:
      isCheckedAgainstFactoryCal - Check date against factory calendar
    • setWBSElement

      public void setWBSElement(@Nullable String wBSElement)
      Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: WBSElement

      Parameters:
      wBSElement - Work Breakdown Structure Element (WBS Element) Edited
    • setControllingArea

      public void setControllingArea(@Nullable String controllingArea)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ControllingArea

      Parameters:
      controllingArea - Controlling Area
    • setOrderID

      public void setOrderID(@Nullable String orderID)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: OrderID

      Parameters:
      orderID - Order Number
    • setUserID

      public void setUserID(@Nullable String userID)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: UserID

      Parameters:
      userID - User Name
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Creation Date
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By User
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Changed On
    • setResvnVerificationCompanyCode

      public void setResvnVerificationCompanyCode(@Nullable String resvnVerificationCompanyCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ResvnVerificationCompanyCode

      Parameters:
      resvnVerificationCompanyCode - Clearing company code
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ReservationDocumentHeader_2>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity ReservationDocumentHeader_2 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 _ReservationDocumentItem is already loaded, the result will contain the ReservationDocumentItem_2 entities. If not, an Option with result state empty is returned.
    • setReservationDocumentItem

      public void setReservationDocumentItem(@Nonnull List<ReservationDocumentItem_2> value)
      Overwrites the list of associated ReservationDocumentItem_2 entities for the loaded navigation property _ReservationDocumentItem.

      If the navigation property _ReservationDocumentItem of a queried ReservationDocumentHeader_2 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 ReservationDocumentItem_2 entities.
    • addReservationDocumentItem

      public void addReservationDocumentItem(ReservationDocumentItem_2... entity)
      Adds elements to the list of associated ReservationDocumentItem_2 entities. This corresponds to the OData navigation property _ReservationDocumentItem.

      If the navigation property _ReservationDocumentItem of a queried ReservationDocumentHeader_2 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 ReservationDocumentItem_2 entities.
    • builder

    • getReservation

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

      Original property name from the Odata EDM: Reservation

      Returns:
      Number of reservation/dependent requirements
    • getGoodsMovementType

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

      Original property name from the Odata EDM: GoodsMovementType

      Returns:
      Movement Type (Inventory Management)
    • getCostCenter

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

      Original property name from the Odata EDM: CostCenter

      Returns:
      Cost Center
    • getAssetNumber

      @Nullable public String getAssetNumber()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: AssetNumber

      Returns:
      Main Asset Number
    • getAssetSubNumber

      @Nullable public String getAssetSubNumber()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AssetSubNumber

      Returns:
      Asset Subnumber
    • getIssuingOrReceivingPlant

      @Nullable public String getIssuingOrReceivingPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: IssuingOrReceivingPlant

      Returns:
      Receiving plant/issuing plant
    • getIssuingOrReceivingStorageLoc

      @Nullable public String getIssuingOrReceivingStorageLoc()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: IssuingOrReceivingStorageLoc

      Returns:
      Receiving/issuing storage location
    • getSalesOrder

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

      Original property name from the Odata EDM: SalesOrder

      Returns:
      Sales Order Number
    • getSalesOrderItem

      @Nullable public String getSalesOrderItem()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesOrderItem

      Returns:
      Item Number in Sales Order
    • getSalesOrderScheduleLine

      @Nullable public String getSalesOrderScheduleLine()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOrderScheduleLine

      Returns:
      Delivery schedule for sales order
    • getReservationDate

      @Nullable public LocalDate getReservationDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ReservationDate

      Returns:
      Base date for reservation
    • getIsCheckedAgainstFactoryCal

      @Nullable public Boolean getIsCheckedAgainstFactoryCal()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsCheckedAgainstFactoryCal

      Returns:
      Check date against factory calendar
    • getWBSElement

      @Nullable public String getWBSElement()
      Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: WBSElement

      Returns:
      Work Breakdown Structure Element (WBS Element) Edited
    • getControllingArea

      @Nullable public String getControllingArea()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ControllingArea

      Returns:
      Controlling Area
    • getOrderID

      @Nullable public String getOrderID()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: OrderID

      Returns:
      Order Number
    • getUserID

      @Nullable public String getUserID()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: UserID

      Returns:
      User Name
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Creation Date
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Changed On
    • getResvnVerificationCompanyCode

      @Nullable public String getResvnVerificationCompanyCode()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ResvnVerificationCompanyCode

      Returns:
      Clearing company code
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ReservationDocumentHeader_2>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ReservationDocumentHeader_2>