public class MaterialDocumentHeader extends VdmEntity<MaterialDocumentHeader>
Modifier and Type | Class and Description |
---|---|
static class |
MaterialDocumentHeader.MaterialDocumentHeaderBuilder |
Modifier and Type | Field and Description |
---|---|
static MaterialDocumentHeaderSelectable |
ALL_FIELDS
Selector for all available fields of MaterialDocumentHeader.
|
static MaterialDocumentHeaderField<String> |
CREATED_BY_USER
Use with available fluent helpers to apply the CreatedByUser field to query operations.
|
static MaterialDocumentHeaderField<Calendar> |
CREATION_DATE
Use with available fluent helpers to apply the CreationDate field to query operations.
|
static MaterialDocumentHeaderField<Calendar> |
CREATION_TIME
Use with available fluent helpers to apply the CreationTime field to query operations.
|
static MaterialDocumentHeaderField<Calendar> |
DOCUMENT_DATE
Use with available fluent helpers to apply the DocumentDate field to query operations.
|
static MaterialDocumentHeaderField<String> |
GOODS_MOVEMENT_CODE
Use with available fluent helpers to apply the GoodsMovementCode field to query operations.
|
static MaterialDocumentHeaderField<String> |
INVENTORY_TRANSACTION_TYPE
Use with available fluent helpers to apply the InventoryTransactionType field to query operations.
|
static MaterialDocumentHeaderField<String> |
MATERIAL_DOCUMENT
Use with available fluent helpers to apply the MaterialDocument field to query operations.
|
static MaterialDocumentHeaderField<String> |
MATERIAL_DOCUMENT_HEADER_TEXT
Use with available fluent helpers to apply the MaterialDocumentHeaderText field to query operations.
|
static MaterialDocumentHeaderField<String> |
MATERIAL_DOCUMENT_YEAR
Use with available fluent helpers to apply the MaterialDocumentYear field to query operations.
|
static MaterialDocumentHeaderField<Calendar> |
POSTING_DATE
Use with available fluent helpers to apply the PostingDate field to query operations.
|
static MaterialDocumentHeaderField<String> |
REFERENCE_DOCUMENT
Use with available fluent helpers to apply the ReferenceDocument field to query operations.
|
static MaterialDocumentHeaderLink<MaterialDocumentItem> |
TO_MATERIAL_DOCUMENT_ITEM
Use with available fluent helpers to apply the to_MaterialDocumentItem navigation property to query operations.
|
Constructor and Description |
---|
MaterialDocumentHeader() |
MaterialDocumentHeader(String materialDocumentYear,
String materialDocument,
String inventoryTransactionType,
Calendar documentDate,
Calendar postingDate,
Calendar creationDate,
Calendar creationTime,
String createdByUser,
String materialDocumentHeaderText,
String referenceDocument,
String goodsMovementCode,
ErpConfigContext erpConfigContext,
List<MaterialDocumentItem> toMaterialDocumentItem) |
Modifier and Type | Method and Description |
---|---|
void |
addMaterialDocumentItem(MaterialDocumentItem... entity)
Adds elements to the list of associated MaterialDocumentItem entities.
|
static MaterialDocumentHeader.MaterialDocumentHeaderBuilder |
builder() |
boolean |
equals(Object o) |
List<MaterialDocumentItem> |
fetchMaterialDocumentItem()
Fetches the MaterialDocumentItem entities (one to many) associated with this entity.
|
static <T> MaterialDocumentHeaderField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
String |
getCreatedByUser()
Constraints: Not nullable, Maximum length: 12
|
Calendar |
getCreationDate()
Constraints: Not nullable, Precision: 0
|
Calendar |
getCreationTime()
Constraints: Not nullable, Precision: 0
|
Calendar |
getDocumentDate()
Constraints: Not nullable, Precision: 0
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
String |
getGoodsMovementCode()
Constraints: Not nullable, Maximum length: 2
|
String |
getInventoryTransactionType()
Constraints: Not nullable, Maximum length: 2
|
String |
getMaterialDocument()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getMaterialDocumentHeaderText()
Constraints: Not nullable, Maximum length: 25
|
List<MaterialDocumentItem> |
getMaterialDocumentItemOrFetch()
Retrieval of associated MaterialDocumentItem entities (one to many).
|
com.google.common.base.Optional<List<MaterialDocumentItem>> |
getMaterialDocumentItemOrNull()
Retrieval of associated MaterialDocumentItem entities (one to many).
|
String |
getMaterialDocumentYear()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
Calendar |
getPostingDate()
Constraints: Not nullable, Precision: 0
|
String |
getReferenceDocument()
Constraints: Not nullable, Maximum length: 16
|
Class<MaterialDocumentHeader> |
getType() |
int |
hashCode() |
void |
setCreatedByUser(String createdByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setCreationDate(Calendar creationDate)
Constraints: Not nullable, Precision: 0
|
void |
setCreationTime(Calendar creationTime)
Constraints: Not nullable, Precision: 0
|
void |
setDocumentDate(Calendar documentDate)
Constraints: Not nullable, Precision: 0
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setGoodsMovementCode(String goodsMovementCode)
Constraints: Not nullable, Maximum length: 2
|
void |
setInventoryTransactionType(String inventoryTransactionType)
Constraints: Not nullable, Maximum length: 2
|
void |
setMaterialDocument(String materialDocument)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setMaterialDocumentHeaderText(String materialDocumentHeaderText)
Constraints: Not nullable, Maximum length: 25
|
void |
setMaterialDocumentItem(List<MaterialDocumentItem> value)
Overwrites the list of associated MaterialDocumentItem entities for the loaded navigation property to_MaterialDocumentItem.
|
void |
setMaterialDocumentYear(String materialDocumentYear)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setPostingDate(Calendar postingDate)
Constraints: Not nullable, Precision: 0
|
void |
setReferenceDocument(String referenceDocument)
Constraints: Not nullable, Maximum length: 16
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
public static final MaterialDocumentHeaderSelectable ALL_FIELDS
public static final MaterialDocumentHeaderField<String> MATERIAL_DOCUMENT_YEAR
public static final MaterialDocumentHeaderField<String> MATERIAL_DOCUMENT
public static final MaterialDocumentHeaderField<String> INVENTORY_TRANSACTION_TYPE
public static final MaterialDocumentHeaderField<Calendar> DOCUMENT_DATE
public static final MaterialDocumentHeaderField<Calendar> POSTING_DATE
public static final MaterialDocumentHeaderField<Calendar> CREATION_DATE
public static final MaterialDocumentHeaderField<Calendar> CREATION_TIME
public static final MaterialDocumentHeaderField<String> CREATED_BY_USER
public static final MaterialDocumentHeaderField<String> MATERIAL_DOCUMENT_HEADER_TEXT
public static final MaterialDocumentHeaderField<String> REFERENCE_DOCUMENT
public static final MaterialDocumentHeaderField<String> GOODS_MOVEMENT_CODE
public static final MaterialDocumentHeaderLink<MaterialDocumentItem> TO_MATERIAL_DOCUMENT_ITEM
@Generated(value="lombok") public MaterialDocumentHeader()
@ConstructorProperties(value={"materialDocumentYear","materialDocument","inventoryTransactionType","documentDate","postingDate","creationDate","creationTime","createdByUser","materialDocumentHeaderText","referenceDocument","goodsMovementCode","erpConfigContext","toMaterialDocumentItem"}) @Generated(value="lombok") public MaterialDocumentHeader(@Nullable String materialDocumentYear, @Nullable String materialDocument, @Nullable String inventoryTransactionType, @Nullable Calendar documentDate, @Nullable Calendar postingDate, @Nullable Calendar creationDate, @Nullable Calendar creationTime, @Nullable String createdByUser, @Nullable String materialDocumentHeaderText, @Nullable String referenceDocument, @Nullable String goodsMovementCode, @Nullable ErpConfigContext erpConfigContext, List<MaterialDocumentItem> toMaterialDocumentItem)
public Class<MaterialDocumentHeader> getType()
getType
in class VdmObject<MaterialDocumentHeader>
public static <T> MaterialDocumentHeaderField<T> field(String fieldName, Class<T> fieldType)
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.public List<MaterialDocumentItem> fetchMaterialDocumentItem() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.public List<MaterialDocumentItem> getMaterialDocumentItemOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
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.
com.sap.cloud.sdk.odatav2.connectivity.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.public com.google.common.base.Optional<List<MaterialDocumentItem>> getMaterialDocumentItemOrNull()
If the navigation property to_MaterialDocumentItem for an entity MaterialDocumentHeader has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
public void setMaterialDocumentItem(@NonNull List<MaterialDocumentItem> value)
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.
value
- List of MaterialDocumentItem entities.public void addMaterialDocumentItem(MaterialDocumentItem... entity)
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.
entity
- Array of MaterialDocumentItem entities.@Generated(value="lombok") public static MaterialDocumentHeader.MaterialDocumentHeaderBuilder builder()
@Nullable @Generated(value="lombok") public String getMaterialDocumentYear()
@Nullable @Generated(value="lombok") public String getMaterialDocument()
Number of the material document with which a goods movement was posted. Together with the material document year, the document number constitutes the key via which a material document is accessed.
@Nullable @Generated(value="lombok") public String getInventoryTransactionType()
@Nullable @Generated(value="lombok") public Calendar getDocumentDate()
@Nullable @Generated(value="lombok") public Calendar getPostingDate()
The fiscal year and the period for which an update of the accounts specified in the document or cost elements is made, are derived from the posting date. When entering documents, the system checks whether the posting date entered is allowed by means of the posting period permitted. The posting date can differ from both the entry date (day of entry into the system) and the document date (day of creation of the original document).
@Nullable @Generated(value="lombok") public Calendar getCreationDate()
Note The posting date can differ from the entry date (date of entry in the system) and the document date.
@Nullable @Generated(value="lombok") public Calendar getCreationTime()
@Nullable @Generated(value="lombok") public String getCreatedByUser()
@Nullable @Generated(value="lombok") public String getMaterialDocumentHeaderText()
@Nullable @Generated(value="lombok") public String getReferenceDocument()
The reference document number is used as a search criterion when displaying or changing documents. In correspondence, the reference document number is sometimes printed in place of the document number. Enter the number specified by the business partner. If the document was created in-house and you do not know the business partner document number, you can copy the document number into the reference number field by entering "*".
@Nullable @Generated(value="lombok") public String getGoodsMovementCode()
@Nullable @Generated(value="lombok") public ErpConfigContext getErpConfigContext()
@Generated(value="lombok") public void setMaterialDocumentYear(@Nullable String materialDocumentYear)
materialDocumentYear
- @Generated(value="lombok") public void setMaterialDocument(@Nullable String materialDocument)
Number of the material document with which a goods movement was posted. Together with the material document year, the document number constitutes the key via which a material document is accessed.
materialDocument
- @Generated(value="lombok") public void setInventoryTransactionType(@Nullable String inventoryTransactionType)
inventoryTransactionType
- @Generated(value="lombok") public void setDocumentDate(@Nullable Calendar documentDate)
documentDate
- @Generated(value="lombok") public void setPostingDate(@Nullable Calendar postingDate)
The fiscal year and the period for which an update of the accounts specified in the document or cost elements is made, are derived from the posting date. When entering documents, the system checks whether the posting date entered is allowed by means of the posting period permitted. The posting date can differ from both the entry date (day of entry into the system) and the document date (day of creation of the original document).
postingDate
- @Generated(value="lombok") public void setCreationDate(@Nullable Calendar creationDate)
Note The posting date can differ from the entry date (date of entry in the system) and the document date.
creationDate
- @Generated(value="lombok") public void setCreationTime(@Nullable Calendar creationTime)
creationTime
- @Generated(value="lombok") public void setCreatedByUser(@Nullable String createdByUser)
createdByUser
- @Generated(value="lombok") public void setMaterialDocumentHeaderText(@Nullable String materialDocumentHeaderText)
materialDocumentHeaderText
- @Generated(value="lombok") public void setReferenceDocument(@Nullable String referenceDocument)
The reference document number is used as a search criterion when displaying or changing documents. In correspondence, the reference document number is sometimes printed in place of the document number. Enter the number specified by the business partner. If the document was created in-house and you do not know the business partner document number, you can copy the document number into the reference number field by entering "*".
referenceDocument
- @Generated(value="lombok") public void setGoodsMovementCode(@Nullable String goodsMovementCode)
goodsMovementCode
- @Generated(value="lombok") public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- @Generated(value="lombok") public String toString()
toString
in class VdmObject<MaterialDocumentHeader>
@Generated(value="lombok") public boolean equals(Object o)
equals
in class VdmObject<MaterialDocumentHeader>
@Generated(value="lombok") public int hashCode()
hashCode
in class VdmObject<MaterialDocumentHeader>
Copyright © 2018 SAP SE. All rights reserved.