Class ReservationDocumentHeader_2
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: A_ReservationDocumentHeader_2_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ReservationDocumentHeader_2 instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionUse with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<ReservationDocumentHeader_2>Selector for all available fields of ReservationDocumentHeader_2.static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.DateTime<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.Boolean<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.DateTime<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.Date<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>Use with available request builders to apply the _ReservationDocumentItem navigation property to query operations.static final SimpleProperty.String<ReservationDocumentHeader_2>static final SimpleProperty.String<ReservationDocumentHeader_2>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionReservationDocumentHeader_2(String reservation, String goodsMovementType, String costCenter, String assetNumber, String assetSubNumber, String issuingOrReceivingPlant, String issuingOrReceivingStorageLoc, String salesOrder, String salesOrderItem, String salesOrderScheduleLine, LocalDate reservationDate, Boolean isCheckedAgainstFactoryCal, String wBSElement, String controllingArea, String orderID, String userID, OffsetDateTime creationDateTime, String lastChangedByUser, OffsetDateTime lastChangeDateTime, String resvnVerificationCompanyCode, Collection<SAP__Message> _Messages, List<ReservationDocumentItem_2> to_ReservationDocumentItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated ReservationDocumentItem_2 entities.builder()protected booleanbooleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 10Constraints: Nullable, Precision: 7protected Stringprotected StringConstraints: Not nullable, Maximum length: 3Constraints: Not nullableConstraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 4protected ODataEntityKeygetKey()Constraints: Nullable, Precision: 7Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 12(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Nullableio.vavr.control.Option<List<ReservationDocumentItem_2>>Retrieval of associated ReservationDocumentItem_2 entities (one to many).Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 6Constraints: Not nullable, Maximum length: 4getType()Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 24inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetAssetNumber(String assetNumber) Constraints: Not nullable, Maximum length: 12voidsetAssetSubNumber(String assetSubNumber) Constraints: Not nullable, Maximum length: 4voidsetControllingArea(String controllingArea) Constraints: Not nullable, Maximum length: 4voidsetCostCenter(String costCenter) Constraints: Not nullable, Maximum length: 10voidsetCreationDateTime(OffsetDateTime creationDateTime) Constraints: Nullable, Precision: 7voidsetGoodsMovementType(String goodsMovementType) Constraints: Not nullable, Maximum length: 3voidsetIsCheckedAgainstFactoryCal(Boolean isCheckedAgainstFactoryCal) Constraints: Not nullablevoidsetIssuingOrReceivingPlant(String issuingOrReceivingPlant) Constraints: Not nullable, Maximum length: 4voidsetIssuingOrReceivingStorageLoc(String issuingOrReceivingStorageLoc) Constraints: Not nullable, Maximum length: 4voidsetLastChangeDateTime(OffsetDateTime lastChangeDateTime) Constraints: Nullable, Precision: 7voidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetOrderID(String orderID) Constraints: Not nullable, Maximum length: 12voidsetReservation(String reservation) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetReservationDate(LocalDate reservationDate) Constraints: NullablevoidOverwrites the list of associated ReservationDocumentItem_2 entities for the loaded navigation property _ReservationDocumentItem.voidsetResvnVerificationCompanyCode(String resvnVerificationCompanyCode) Constraints: Not nullable, Maximum length: 4voidsetSalesOrder(String salesOrder) Constraints: Not nullable, Maximum length: 10voidsetSalesOrderItem(String salesOrderItem) Constraints: Not nullable, Maximum length: 6voidsetSalesOrderScheduleLine(String salesOrderScheduleLine) Constraints: Not nullable, Maximum length: 4voidConstraints: Not nullable, Maximum length: 12voidsetWBSElement(String wBSElement) Constraints: Not nullable, Maximum length: 24toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of ReservationDocumentHeader_2. -
RESERVATION
-
GOODS_MOVEMENT_TYPE
-
COST_CENTER
-
ASSET_NUMBER
-
ASSET_SUB_NUMBER
-
ISSUING_OR_RECEIVING_PLANT
-
ISSUING_OR_RECEIVING_STORAGE_LOC
public static final SimpleProperty.String<ReservationDocumentHeader_2> ISSUING_OR_RECEIVING_STORAGE_LOC -
SALES_ORDER
-
SALES_ORDER_ITEM
-
SALES_ORDER_SCHEDULE_LINE
-
RESERVATION_DATE
-
IS_CHECKED_AGAINST_FACTORY_CAL
public static final SimpleProperty.Boolean<ReservationDocumentHeader_2> IS_CHECKED_AGAINST_FACTORY_CAL -
WBS_ELEMENT
-
CONTROLLING_AREA
-
ORDER_ID
-
USER_ID
-
CREATION_DATE_TIME
-
LAST_CHANGED_BY_USER
-
LAST_CHANGE_DATE_TIME
-
RESVN_VERIFICATION_COMPANY_CODE
public static final SimpleProperty.String<ReservationDocumentHeader_2> RESVN_VERIFICATION_COMPANY_CODE -
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__RESERVATION_DOCUMENT_ITEM
public static final NavigationProperty.Collection<ReservationDocumentHeader_2,ReservationDocumentItem_2> TO__RESERVATION_DOCUMENT_ITEMUse with available request builders to apply the _ReservationDocumentItem navigation property to query operations.
-
-
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
- Specified by:
getTypein classVdmObject<ReservationDocumentHeader_2>
-
setReservation
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Reservation
- Parameters:
reservation- Number of reservation/dependent requirements
-
setGoodsMovementType
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: GoodsMovementType
- Parameters:
goodsMovementType- Movement Type (Inventory Management)
-
setCostCenter
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter
- Parameters:
costCenter- Cost Center
-
setAssetNumber
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: AssetNumber
- Parameters:
assetNumber- Main Asset Number
-
setAssetSubNumber
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: AssetSubNumber
- Parameters:
assetSubNumber- Asset Subnumber
-
setIssuingOrReceivingPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingPlant
- Parameters:
issuingOrReceivingPlant- Receiving plant/issuing plant
-
setIssuingOrReceivingStorageLoc
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingStorageLoc
- Parameters:
issuingOrReceivingStorageLoc- Receiving/issuing storage location
-
setSalesOrder
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SalesOrder
- Parameters:
salesOrder- Sales Order Number
-
setSalesOrderItem
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: SalesOrderItem
- Parameters:
salesOrderItem- Item Number in Sales Order
-
setSalesOrderScheduleLine
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SalesOrderScheduleLine
- Parameters:
salesOrderScheduleLine- Delivery schedule for sales order
-
setReservationDate
Constraints: NullableOriginal property name from the Odata EDM: ReservationDate
- Parameters:
reservationDate- Base date for reservation
-
setIsCheckedAgainstFactoryCal
Constraints: Not nullableOriginal property name from the Odata EDM: IsCheckedAgainstFactoryCal
- Parameters:
isCheckedAgainstFactoryCal- Check date against factory calendar
-
setWBSElement
Constraints: Not nullable, Maximum length: 24Original property name from the Odata EDM: WBSElement
- Parameters:
wBSElement- Work Breakdown Structure Element (WBS Element) Edited
-
setControllingArea
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ControllingArea
- Parameters:
controllingArea- Controlling Area
-
setOrderID
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: OrderID
- Parameters:
orderID- Order Number
-
setUserID
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: UserID
- Parameters:
userID- User Name
-
setCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- Creation Date
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Last Changed By User
-
setLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- Last Changed On
-
setResvnVerificationCompanyCode
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ResvnVerificationCompanyCode
- Parameters:
resvnVerificationCompanyCode- Clearing company code
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ReservationDocumentHeader_2>
-
getKey
- Overrides:
getKeyin classVdmObject<ReservationDocumentHeader_2>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ReservationDocumentHeader_2>
-
fromMap
- Overrides:
fromMapin classVdmObject<ReservationDocumentHeader_2>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<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
Optionresult state will beempty.- Returns:
- If the information for navigation property _ReservationDocumentItem is already loaded, the result
will contain the ReservationDocumentItem_2 entities. If not, an
Optionwith result stateemptyis returned.
-
setReservationDocumentItem
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
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
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Reservation
- Returns:
- Number of reservation/dependent requirements
-
getGoodsMovementType
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: GoodsMovementType
- Returns:
- Movement Type (Inventory Management)
-
getCostCenter
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CostCenter
- Returns:
- Cost Center
-
getAssetNumber
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: AssetNumber
- Returns:
- Main Asset Number
-
getAssetSubNumber
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: AssetSubNumber
- Returns:
- Asset Subnumber
-
getIssuingOrReceivingPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingPlant
- Returns:
- Receiving plant/issuing plant
-
getIssuingOrReceivingStorageLoc
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: IssuingOrReceivingStorageLoc
- Returns:
- Receiving/issuing storage location
-
getSalesOrder
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: SalesOrder
- Returns:
- Sales Order Number
-
getSalesOrderItem
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: SalesOrderItem
- Returns:
- Item Number in Sales Order
-
getSalesOrderScheduleLine
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: SalesOrderScheduleLine
- Returns:
- Delivery schedule for sales order
-
getReservationDate
Constraints: NullableOriginal property name from the Odata EDM: ReservationDate
- Returns:
- Base date for reservation
-
getIsCheckedAgainstFactoryCal
Constraints: Not nullableOriginal property name from the Odata EDM: IsCheckedAgainstFactoryCal
- Returns:
- Check date against factory calendar
-
getWBSElement
Constraints: Not nullable, Maximum length: 24Original property name from the Odata EDM: WBSElement
- Returns:
- Work Breakdown Structure Element (WBS Element) Edited
-
getControllingArea
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ControllingArea
- Returns:
- Controlling Area
-
getOrderID
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: OrderID
- Returns:
- Order Number
-
getUserID
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: UserID
- Returns:
- User Name
-
getCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Returns:
- Creation Date
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Last Changed By User
-
getLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Returns:
- Last Changed On
-
getResvnVerificationCompanyCode
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ResvnVerificationCompanyCode
- Returns:
- Clearing company code
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<ReservationDocumentHeader_2>
-
equals
- Overrides:
equalsin classVdmEntity<ReservationDocumentHeader_2>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ReservationDocumentHeader_2>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ReservationDocumentHeader_2>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ReservationDocumentHeader_2>
-