Class MaterialDocumentHeader
Original entity name from the Odata EDM: A_MaterialDocumentHeaderType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of MaterialDocumentHeader instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MaterialDocumentHeaderSelectableSelector for all available fields of MaterialDocumentHeader.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the CreatedByUser field to query operations.static final MaterialDocumentHeaderField<LocalDateTime>Use with available fluent helpers to apply the CreationDate field to query operations.static final MaterialDocumentHeaderField<LocalTime>Use with available fluent helpers to apply the CreationTime field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the CtrlPostgForExtWhseMgmtSyst field to query operations.static final MaterialDocumentHeaderField<LocalDateTime>Use with available fluent helpers to apply the DocumentDate field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the GoodsMovementCode field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the InventoryTransactionType field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the ManualPrintIsTriggered field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the MaterialDocument field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the MaterialDocumentHeaderText field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the MaterialDocumentYear field to query operations.static final MaterialDocumentHeaderField<LocalDateTime>Use with available fluent helpers to apply the PostingDate field to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the ReferenceDocument field to query operations.static final MaterialDocumentHeaderLink<MaterialDocumentItem>Use with available fluent helpers to apply the to_MaterialDocumentItem navigation property to query operations.static final MaterialDocumentHeaderField<String>Use with available fluent helpers to apply the VersionForPrintingSlip field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionMaterialDocumentHeader(String materialDocumentYear, String materialDocument, String inventoryTransactionType, LocalDateTime documentDate, LocalDateTime postingDate, LocalDateTime creationDate, LocalTime creationTime, String createdByUser, String materialDocumentHeaderText, String referenceDocument, String versionForPrintingSlip, String manualPrintIsTriggered, String ctrlPostgForExtWhseMgmtSyst, String goodsMovementCode, List<MaterialDocumentItem> toMaterialDocumentItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMaterialDocumentItem(MaterialDocumentItem... entity) Adds elements to the list of associated MaterialDocumentItem entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the MaterialDocumentItem entities (one to many) associated with this entity.static <T,DomainT>
MaterialDocumentHeaderField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> MaterialDocumentHeaderField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 12Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0Constraints: Not nullable, Maximum length: 1protected StringConstraints: Not nullable, Precision: 0protected StringConstraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 2getKey()Constraints: Not nullable, Maximum length: 1(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 25io.vavr.control.Option<List<MaterialDocumentItem>>Retrieval of associated MaterialDocumentItem entities (one to many).Retrieval of associated MaterialDocumentItem entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Precision: 0Constraints: Not nullable, Maximum length: 16getType()Constraints: Not nullable, Maximum length: 1inthashCode()voidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDate(LocalDateTime creationDate) Constraints: Not nullable, Precision: 0voidsetCreationTime(LocalTime creationTime) Constraints: Not nullable, Precision: 0voidsetCtrlPostgForExtWhseMgmtSyst(String ctrlPostgForExtWhseMgmtSyst) Constraints: Not nullable, Maximum length: 1voidsetDocumentDate(LocalDateTime documentDate) Constraints: Not nullable, Precision: 0voidsetGoodsMovementCode(String goodsMovementCode) Constraints: Not nullable, Maximum length: 2voidsetInventoryTransactionType(String inventoryTransactionType) Constraints: Not nullable, Maximum length: 2voidsetManualPrintIsTriggered(String manualPrintIsTriggered) Constraints: Not nullable, Maximum length: 1voidsetMaterialDocument(String materialDocument) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetMaterialDocumentHeaderText(String materialDocumentHeaderText) Constraints: Not nullable, Maximum length: 25voidOverwrites the list of associated MaterialDocumentItem entities for the loaded navigation property to_MaterialDocumentItem.voidsetMaterialDocumentYear(String materialDocumentYear) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetPostingDate(LocalDateTime postingDate) Constraints: Not nullable, Precision: 0voidsetReferenceDocument(String referenceDocument) Constraints: Not nullable, Maximum length: 16protected voidsetServicePathForFetch(String servicePathForFetch) voidsetVersionForPrintingSlip(String versionForPrintingSlip) Constraints: Not nullable, Maximum length: 1toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
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 MaterialDocumentHeader. -
MATERIAL_DOCUMENT_YEAR
Use with available fluent helpers to apply the MaterialDocumentYear field to query operations. -
MATERIAL_DOCUMENT
Use with available fluent helpers to apply the MaterialDocument field to query operations. -
INVENTORY_TRANSACTION_TYPE
Use with available fluent helpers to apply the InventoryTransactionType field to query operations. -
DOCUMENT_DATE
Use with available fluent helpers to apply the DocumentDate field to query operations. -
POSTING_DATE
Use with available fluent helpers to apply the PostingDate field to query operations. -
CREATION_DATE
Use with available fluent helpers to apply the CreationDate field to query operations. -
CREATION_TIME
Use with available fluent helpers to apply the CreationTime field to query operations. -
CREATED_BY_USER
Use with available fluent helpers to apply the CreatedByUser field to query operations. -
MATERIAL_DOCUMENT_HEADER_TEXT
Use with available fluent helpers to apply the MaterialDocumentHeaderText field to query operations. -
REFERENCE_DOCUMENT
Use with available fluent helpers to apply the ReferenceDocument field to query operations. -
VERSION_FOR_PRINTING_SLIP
Use with available fluent helpers to apply the VersionForPrintingSlip field to query operations. -
MANUAL_PRINT_IS_TRIGGERED
Use with available fluent helpers to apply the ManualPrintIsTriggered field to query operations. -
CTRL_POSTG_FOR_EXT_WHSE_MGMT_SYST
Use with available fluent helpers to apply the CtrlPostgForExtWhseMgmtSyst field to query operations. -
GOODS_MOVEMENT_CODE
Use with available fluent helpers to apply the GoodsMovementCode field to query operations. -
TO_MATERIAL_DOCUMENT_ITEM
Use with available fluent helpers to apply the to_MaterialDocumentItem navigation property to query operations.
-
-
Constructor Details
-
MaterialDocumentHeader
public MaterialDocumentHeader() -
MaterialDocumentHeader
public MaterialDocumentHeader(@Nullable String materialDocumentYear, @Nullable String materialDocument, @Nullable String inventoryTransactionType, @Nullable LocalDateTime documentDate, @Nullable LocalDateTime postingDate, @Nullable LocalDateTime creationDate, @Nullable LocalTime creationTime, @Nullable String createdByUser, @Nullable String materialDocumentHeaderText, @Nullable String referenceDocument, @Nullable String versionForPrintingSlip, @Nullable String manualPrintIsTriggered, @Nullable String ctrlPostgForExtWhseMgmtSyst, @Nullable String goodsMovementCode, List<MaterialDocumentItem> toMaterialDocumentItem)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<MaterialDocumentHeader>
-
setMaterialDocumentYear
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: MaterialDocumentYear
- Parameters:
materialDocumentYear- Material Document Year
-
setMaterialDocument
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MaterialDocument
- Parameters:
materialDocument- Number of Material Document
-
setInventoryTransactionType
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: InventoryTransactionType
- Parameters:
inventoryTransactionType- Transaction/Event Type
-
setDocumentDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: DocumentDate
- Parameters:
documentDate- Document Date in Document
-
setPostingDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: PostingDate
- Parameters:
postingDate- Posting Date in the Document
-
setCreationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreationDate
- Parameters:
creationDate- Day On Which Accounting Document Was Entered
-
setCreationTime
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreationTime
- Parameters:
creationTime- Time of Entry
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- User Name
-
setMaterialDocumentHeaderText
Constraints: Not nullable, Maximum length: 25Original property name from the Odata EDM: MaterialDocumentHeaderText
- Parameters:
materialDocumentHeaderText- Document Header Text
-
setReferenceDocument
Constraints: Not nullable, Maximum length: 16Original property name from the Odata EDM: ReferenceDocument
- Parameters:
referenceDocument- Reference Document Number
-
setVersionForPrintingSlip
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: VersionForPrintingSlip
- Parameters:
versionForPrintingSlip- Version for Printing GR/GI Slip
-
setManualPrintIsTriggered
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ManualPrintIsTriggered
- Parameters:
manualPrintIsTriggered- Print via Output Control
-
setCtrlPostgForExtWhseMgmtSyst
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: CtrlPostgForExtWhseMgmtSyst
- Parameters:
ctrlPostgForExtWhseMgmtSyst- Control posting for external WMS
-
setGoodsMovementCode
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: GoodsMovementCode
- Parameters:
goodsMovementCode- Goods Movement Code
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<MaterialDocumentHeader>
-
getKey
- Overrides:
getKeyin classVdmObject<MaterialDocumentHeader>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<MaterialDocumentHeader>
-
fromMap
- Overrides:
fromMapin classVdmObject<MaterialDocumentHeader>
-
field
@Nonnull public static <T> MaterialDocumentHeaderField<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> MaterialDocumentHeaderField<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 fieldfieldName- 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
- Overrides:
getDestinationForFetchin classVdmEntity<MaterialDocumentHeader>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<MaterialDocumentHeader>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<MaterialDocumentHeader>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<MaterialDocumentHeader>
-
fetchMaterialDocumentItem
Fetches the MaterialDocumentItem entities (one to many) associated with this entity. This corresponds to the OData navigation property to_MaterialDocumentItem.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated MaterialDocumentItem 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.
-
getMaterialDocumentItemOrFetch
Retrieval of associated MaterialDocumentItem entities (one to many). This corresponds to the OData navigation property to_MaterialDocumentItem.If the navigation property to_MaterialDocumentItem of a queried MaterialDocumentHeader 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 MaterialDocumentItem 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.
-
getMaterialDocumentItemIfPresent
@Nonnull public io.vavr.control.Option<List<MaterialDocumentItem>> getMaterialDocumentItemIfPresent()Retrieval of associated MaterialDocumentItem entities (one to many). This corresponds to the OData navigation property to_MaterialDocumentItem.If the navigation property for an entity MaterialDocumentHeader 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 to_MaterialDocumentItem is already loaded, the result
will contain the MaterialDocumentItem entities. If not, an
Optionwith result stateemptyis returned.
-
setMaterialDocumentItem
Overwrites the list of associated MaterialDocumentItem entities for the loaded navigation property to_MaterialDocumentItem.If the navigation property to_MaterialDocumentItem of a queried MaterialDocumentHeader 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 MaterialDocumentItem entities.
-
addMaterialDocumentItem
Adds elements to the list of associated MaterialDocumentItem entities. This corresponds to the OData navigation property to_MaterialDocumentItem.If the navigation property to_MaterialDocumentItem of a queried MaterialDocumentHeader 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 MaterialDocumentItem entities.
-
builder
-
getMaterialDocumentYear
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: MaterialDocumentYear
- Returns:
- Material Document Year
-
getMaterialDocument
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: MaterialDocument
- Returns:
- Number of Material Document
-
getInventoryTransactionType
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: InventoryTransactionType
- Returns:
- Transaction/Event Type
-
getDocumentDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: DocumentDate
- Returns:
- Document Date in Document
-
getPostingDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: PostingDate
- Returns:
- Posting Date in the Document
-
getCreationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreationDate
- Returns:
- Day On Which Accounting Document Was Entered
-
getCreationTime
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreationTime
- Returns:
- Time of Entry
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- User Name
-
getMaterialDocumentHeaderText
Constraints: Not nullable, Maximum length: 25Original property name from the Odata EDM: MaterialDocumentHeaderText
- Returns:
- Document Header Text
-
getReferenceDocument
Constraints: Not nullable, Maximum length: 16Original property name from the Odata EDM: ReferenceDocument
- Returns:
- Reference Document Number
-
getVersionForPrintingSlip
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: VersionForPrintingSlip
- Returns:
- Version for Printing GR/GI Slip
-
getManualPrintIsTriggered
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ManualPrintIsTriggered
- Returns:
- Print via Output Control
-
getCtrlPostgForExtWhseMgmtSyst
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: CtrlPostgForExtWhseMgmtSyst
- Returns:
- Control posting for external WMS
-
getGoodsMovementCode
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: GoodsMovementCode
- Returns:
- Goods Movement Code
-
toString
- Overrides:
toStringin classVdmObject<MaterialDocumentHeader>
-
equals
- Overrides:
equalsin classVdmEntity<MaterialDocumentHeader>
-
canEqual
- Overrides:
canEqualin classVdmEntity<MaterialDocumentHeader>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<MaterialDocumentHeader>
-