public class PurchasingQuotaArrangement extends VdmEntity<PurchasingQuotaArrangement>
Original entity name from the Odata EDM: A_PurchasingQuotaArrangementType
Modifier and Type | Class and Description |
---|---|
static class |
PurchasingQuotaArrangement.PurchasingQuotaArrangementBuilder |
Modifier and Type | Field and Description |
---|---|
static PurchasingQuotaArrangementSelectable |
ALL_FIELDS
Selector for all available fields of PurchasingQuotaArrangement.
|
static PurchasingQuotaArrangementField<String> |
CREATED_BY_USER
Use with available fluent helpers to apply the CreatedByUser field to query operations.
|
static PurchasingQuotaArrangementField<LocalDateTime> |
CREATION_DATE
Use with available fluent helpers to apply the CreationDate field to query operations.
|
static PurchasingQuotaArrangementField<ZonedDateTime> |
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
|
static PurchasingQuotaArrangementField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static PurchasingQuotaArrangementField<String> |
MATERIAL_BASE_UNIT
Use with available fluent helpers to apply the MaterialBaseUnit field to query operations.
|
static PurchasingQuotaArrangementField<BigDecimal> |
MIN_QTY_FOR_SPLT_QUOTA
Use with available fluent helpers to apply the MinQtyForSpltQuota field to query operations.
|
static PurchasingQuotaArrangementField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static PurchasingQuotaArrangementField<String> |
QUOTA_ARRANGEMENT
Use with available fluent helpers to apply the QuotaArrangement field to query operations.
|
static PurchasingQuotaArrangementLink<PurgQuotaArrangementItem> |
TO_PURG_QUOTA_ARRANGEMENT_ITEM
Use with available fluent helpers to apply the to_PurgQuotaArrangementItem navigation property to query operations.
|
static PurchasingQuotaArrangementField<String> |
USER_DESCRIPTION
Use with available fluent helpers to apply the UserDescription field to query operations.
|
static PurchasingQuotaArrangementField<LocalDateTime> |
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations.
|
static PurchasingQuotaArrangementField<LocalDateTime> |
VALIDITY_START_DATE
Use with available fluent helpers to apply the ValidityStartDate field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
PurchasingQuotaArrangement() |
PurchasingQuotaArrangement(String quotaArrangement,
String material,
String plant,
LocalDateTime validityEndDate,
LocalDateTime validityStartDate,
LocalDateTime creationDate,
String createdByUser,
BigDecimal minQtyForSpltQuota,
ZonedDateTime lastChangeDateTime,
String userDescription,
String materialBaseUnit,
ErpConfigContext erpConfigContext,
List<PurgQuotaArrangementItem> toPurgQuotaArrangementItem) |
Modifier and Type | Method and Description |
---|---|
void |
addPurgQuotaArrangementItem(PurgQuotaArrangementItem... entity)
Adds elements to the list of associated PurgQuotaArrangementItem entities.
|
static PurchasingQuotaArrangement.PurchasingQuotaArrangementBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<PurgQuotaArrangementItem> |
fetchPurgQuotaArrangementItem()
Fetches the PurgQuotaArrangementItem entities (one to many) associated with this entity.
|
static <T> PurchasingQuotaArrangementField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getCreatedByUser()
Constraints: Not nullable, Maximum length: 12 Original property name from the Odata EDM: CreatedByUser
|
LocalDateTime |
getCreationDate()
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: CreationDate
|
protected String |
getEndpointUrl() |
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
protected Map<String,Object> |
getKey() |
ZonedDateTime |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 7 Original property name from the Odata EDM: LastChangeDateTimeIn order to convert local time into a UTC time stamp, which makes it easier to compare times, the local time must be converted according to your time zone.
|
String |
getMaterial()
Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: Material
|
String |
getMaterialBaseUnit()
Constraints: Not nullable, Maximum length: 3 Original property name from the Odata EDM: MaterialBaseUnitYou define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.
|
BigDecimal |
getMinQtyForSpltQuota()
Constraints: Not nullable, Precision: 15, Scale: 3 Original property name from the Odata EDM: MinQtyForSpltQuotaIf the lot is smaller than or equal to the minimum quantity, the system will proceed on the basis of the usual quota arrangement logic.
|
String |
getPlant()
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: Plant
|
Optional<List<PurgQuotaArrangementItem>> |
getPurgQuotaArrangementItemIfPresent()
Retrieval of associated PurgQuotaArrangementItem entities (one to many).
|
List<PurgQuotaArrangementItem> |
getPurgQuotaArrangementItemOrFetch()
Retrieval of associated PurgQuotaArrangementItem entities (one to many).
|
String |
getQuotaArrangement()
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: QuotaArrangement
|
Class<PurchasingQuotaArrangement> |
getType() |
String |
getUserDescription()
Constraints: Not nullable, Maximum length: 80 Original property name from the Odata EDM: UserDescription
|
LocalDateTime |
getValidityEndDate()
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityEndDate
|
LocalDateTime |
getValidityStartDate()
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityStartDatequota arrangement becomes valid.
|
int |
hashCode() |
void |
setCreatedByUser(String createdByUser)
Constraints: Not nullable, Maximum length: 12 Original property name from the Odata EDM: CreatedByUser
|
void |
setCreationDate(LocalDateTime creationDate)
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: CreationDate
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setLastChangeDateTime(ZonedDateTime lastChangeDateTime)
Constraints: Not nullable, Precision: 7 Original property name from the Odata EDM: LastChangeDateTimeIn order to convert local time into a UTC time stamp, which makes it easier to compare times, the local time must be converted according to your time zone.
|
void |
setMaterial(String material)
Constraints: Not nullable, Maximum length: 40 Original property name from the Odata EDM: Material
|
void |
setMaterialBaseUnit(String materialBaseUnit)
Constraints: Not nullable, Maximum length: 3 Original property name from the Odata EDM: MaterialBaseUnitYou define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.
|
void |
setMinQtyForSpltQuota(BigDecimal minQtyForSpltQuota)
Constraints: Not nullable, Precision: 15, Scale: 3 Original property name from the Odata EDM: MinQtyForSpltQuotaIf the lot is smaller than or equal to the minimum quantity, the system will proceed on the basis of the usual quota arrangement logic.
|
void |
setPlant(String plant)
Constraints: Not nullable, Maximum length: 4 Original property name from the Odata EDM: Plant
|
void |
setPurgQuotaArrangementItem(List<PurgQuotaArrangementItem> value)
Overwrites the list of associated PurgQuotaArrangementItem entities for the loaded navigation property to_PurgQuotaArrangementItem.
|
void |
setQuotaArrangement(String quotaArrangement)
(Key Field) Constraints: Not nullable, Maximum length: 10 Original property name from the Odata EDM: QuotaArrangement
|
void |
setUserDescription(String userDescription)
Constraints: Not nullable, Maximum length: 80 Original property name from the Odata EDM: UserDescription
|
void |
setValidityEndDate(LocalDateTime validityEndDate)
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityEndDate
|
void |
setValidityStartDate(LocalDateTime validityStartDate)
Constraints: Not nullable, Precision: 0 Original property name from the Odata EDM: ValidityStartDatequota arrangement becomes valid.
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getVersionIdentifier, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final PurchasingQuotaArrangementSelectable ALL_FIELDS
public static final PurchasingQuotaArrangementField<String> QUOTA_ARRANGEMENT
public static final PurchasingQuotaArrangementField<String> MATERIAL
public static final PurchasingQuotaArrangementField<String> PLANT
public static final PurchasingQuotaArrangementField<LocalDateTime> VALIDITY_END_DATE
public static final PurchasingQuotaArrangementField<LocalDateTime> VALIDITY_START_DATE
public static final PurchasingQuotaArrangementField<LocalDateTime> CREATION_DATE
public static final PurchasingQuotaArrangementField<String> CREATED_BY_USER
public static final PurchasingQuotaArrangementField<BigDecimal> MIN_QTY_FOR_SPLT_QUOTA
public static final PurchasingQuotaArrangementField<ZonedDateTime> LAST_CHANGE_DATE_TIME
public static final PurchasingQuotaArrangementField<String> USER_DESCRIPTION
public static final PurchasingQuotaArrangementField<String> MATERIAL_BASE_UNIT
public static final PurchasingQuotaArrangementLink<PurgQuotaArrangementItem> TO_PURG_QUOTA_ARRANGEMENT_ITEM
public PurchasingQuotaArrangement()
public PurchasingQuotaArrangement(@Nullable String quotaArrangement, @Nullable String material, @Nullable String plant, @Nullable LocalDateTime validityEndDate, @Nullable LocalDateTime validityStartDate, @Nullable LocalDateTime creationDate, @Nullable String createdByUser, @Nullable BigDecimal minQtyForSpltQuota, @Nullable ZonedDateTime lastChangeDateTime, @Nullable String userDescription, @Nullable String materialBaseUnit, @Nullable ErpConfigContext erpConfigContext, List<PurgQuotaArrangementItem> toPurgQuotaArrangementItem)
public Class<PurchasingQuotaArrangement> getType()
getType
in class VdmObject<PurchasingQuotaArrangement>
public void setQuotaArrangement(@Nullable String quotaArrangement)
Original property name from the Odata EDM: QuotaArrangement
quotaArrangement
- Uniquely identifies the quota arrangement.public void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
material
- Alphanumeric key uniquely identifying the material.public void setPlant(@Nullable String plant)
Original property name from the Odata EDM: Plant
plant
- Key uniquely identifying a plant.public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
Original property name from the Odata EDM: ValidityEndDate
validityEndDate
- Date until which the quota arrangement is valid.public void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
Original property name from the Odata EDM: ValidityStartDate
quota arrangement becomes valid.
validityStartDate
- Date specifying when thepublic void setCreationDate(@Nullable LocalDateTime creationDate)
Original property name from the Odata EDM: CreationDate
creationDate
- Date on Which Record Was Createdpublic void setCreatedByUser(@Nullable String createdByUser)
Original property name from the Odata EDM: CreatedByUser
createdByUser
- Name of Person Who Created Objectpublic void setMinQtyForSpltQuota(@Nullable BigDecimal minQtyForSpltQuota)
Original property name from the Odata EDM: MinQtyForSpltQuota
If the lot is smaller than or equal to the minimum quantity, the system will proceed on the basis of the usual quota arrangement logic. Allocation by quota using splitting quotas is only carried out via a requirement planning run, subject to the following preconditions: Through the appropriate entry in the field Quota arrangement usage (on the MRP data screen 2 or Purchasing screen) it must have been specified that a quota arrangement is to be applied in the planning run. The indicator for the splitting quota must be set for the the lot-sizing procedure used for materials planning purposes in Customizing.
minQtyForSpltQuota
- Specifies for the splitting quota the minimum quantity that a lot must have in order to be apportioned among several sources of supply in the planning run.public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
Original property name from the Odata EDM: LastChangeDateTime
In order to convert local time into a UTC time stamp, which makes it easier to compare times, the local time must be converted according to your time zone. The ABAP command convert is available for this purpose. Even if the time zone that the conversion is based on can be redetermined from Customizing or master data, we still recommend that you save the time zone. The internal structure of the high-resolution UTC time stamp is logically organized in date and time sections in a packed decimal format (YYYYMMDDhhmmssmmmuuun), which depicts the year, month, day, hour,second, millisecond, microsecond and the first decimal of the nanoseconds. Please note that the hardware that is normally used does not fully support a resolution of 100 nanoseconds, which is available in the structure. See also GET TIME STAMP A UTC time stamp in short form is also available.
lastChangeDateTime
- The UTC timestamp displays date and time according to UTC (Universal Coordinated Time).public void setUserDescription(@Nullable String userDescription)
Original property name from the Odata EDM: UserDescription
userDescription
- Description of the Technical User Accountpublic void setMaterialBaseUnit(@Nullable String materialBaseUnit)
Original property name from the Odata EDM: MaterialBaseUnit
You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record. Since all data is updated in the base unit of measure, your entry is particularly important for the conversion of alternative units of measure. A quantity in the alternative unit of measure can only be shown precisely if its value can be shown with the decimal places available. To ensure this, please note the following: The base unit of measure is the unit satisfying the highest necessary requirement for precision. The conversion of alternative units of measure to the base unit should result in simple decimal fractions (not, for example, 1/3 = 0.333...). Inventory Management In Inventory Management, the base unit of measure is the same as the stockkeeping unit. Services Services have units of measure of their own, including the following: Service unit Unit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level. Blanket Unit of measure at service line level for services to be provided once only, and for which no precise quantities can or are to be specified.
materialBaseUnit
- Unit of measure in which stocks of the material are managed. The system converts all the quantities you enter in other units of measure (alternative units of measure) to the base unit of measure.protected String getEndpointUrl()
getEndpointUrl
in class VdmEntity<PurchasingQuotaArrangement>
protected String getEntityCollection()
getEntityCollection
in class VdmEntity<PurchasingQuotaArrangement>
protected Map<String,Object> getKey()
getKey
in class VdmObject<PurchasingQuotaArrangement>
protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<PurchasingQuotaArrangement>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<PurchasingQuotaArrangement>
public static <T> PurchasingQuotaArrangementField<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.protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<PurchasingQuotaArrangement>
public List<PurgQuotaArrangementItem> fetchPurgQuotaArrangementItem() 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<PurgQuotaArrangementItem> getPurgQuotaArrangementItemOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 Optional<List<PurgQuotaArrangementItem>> getPurgQuotaArrangementItemIfPresent()
If the navigation property for an entity PurchasingQuotaArrangement has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setPurgQuotaArrangementItem(@Nonnull List<PurgQuotaArrangementItem> value)
If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem entities.public void addPurgQuotaArrangementItem(PurgQuotaArrangementItem... entity)
If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem entities.public static PurchasingQuotaArrangement.PurchasingQuotaArrangementBuilder builder()
@Nullable public String getQuotaArrangement()
Original property name from the Odata EDM: QuotaArrangement
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public LocalDateTime getValidityEndDate()
Original property name from the Odata EDM: ValidityEndDate
@Nullable public LocalDateTime getValidityStartDate()
Original property name from the Odata EDM: ValidityStartDate
quota arrangement becomes valid.
@Nullable public LocalDateTime getCreationDate()
Original property name from the Odata EDM: CreationDate
@Nullable public String getCreatedByUser()
Original property name from the Odata EDM: CreatedByUser
@Nullable public BigDecimal getMinQtyForSpltQuota()
Original property name from the Odata EDM: MinQtyForSpltQuota
If the lot is smaller than or equal to the minimum quantity, the system will proceed on the basis of the usual quota arrangement logic. Allocation by quota using splitting quotas is only carried out via a requirement planning run, subject to the following preconditions: Through the appropriate entry in the field Quota arrangement usage (on the MRP data screen 2 or Purchasing screen) it must have been specified that a quota arrangement is to be applied in the planning run. The indicator for the splitting quota must be set for the the lot-sizing procedure used for materials planning purposes in Customizing.
@Nullable public ZonedDateTime getLastChangeDateTime()
Original property name from the Odata EDM: LastChangeDateTime
In order to convert local time into a UTC time stamp, which makes it easier to compare times, the local time must be converted according to your time zone. The ABAP command convert is available for this purpose. Even if the time zone that the conversion is based on can be redetermined from Customizing or master data, we still recommend that you save the time zone. The internal structure of the high-resolution UTC time stamp is logically organized in date and time sections in a packed decimal format (YYYYMMDDhhmmssmmmuuun), which depicts the year, month, day, hour,second, millisecond, microsecond and the first decimal of the nanoseconds. Please note that the hardware that is normally used does not fully support a resolution of 100 nanoseconds, which is available in the structure. See also GET TIME STAMP A UTC time stamp in short form is also available.
@Nullable public String getUserDescription()
Original property name from the Odata EDM: UserDescription
@Nullable public String getMaterialBaseUnit()
Original property name from the Odata EDM: MaterialBaseUnit
You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record. Since all data is updated in the base unit of measure, your entry is particularly important for the conversion of alternative units of measure. A quantity in the alternative unit of measure can only be shown precisely if its value can be shown with the decimal places available. To ensure this, please note the following: The base unit of measure is the unit satisfying the highest necessary requirement for precision. The conversion of alternative units of measure to the base unit should result in simple decimal fractions (not, for example, 1/3 = 0.333...). Inventory Management In Inventory Management, the base unit of measure is the same as the stockkeeping unit. Services Services have units of measure of their own, including the following: Service unit Unit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level. Blanket Unit of measure at service line level for services to be provided once only, and for which no precise quantities can or are to be specified.
@Nullable public ErpConfigContext getErpConfigContext()
public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
setErpConfigContext
in class VdmEntity<PurchasingQuotaArrangement>
erpConfigContext
- public String toString()
toString
in class VdmObject<PurchasingQuotaArrangement>
public boolean equals(Object o)
equals
in class VdmObject<PurchasingQuotaArrangement>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<PurchasingQuotaArrangement>
public int hashCode()
hashCode
in class VdmObject<PurchasingQuotaArrangement>
Copyright © 2018 SAP SE. All rights reserved.