public class PurchasingQuotaArrangement extends VdmEntity<PurchasingQuotaArrangement>
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<Calendar> |
CREATION_DATE
Use with available fluent helpers to apply the CreationDate field to query operations.
|
static PurchasingQuotaArrangementField<Calendar> |
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<Calendar> |
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations.
|
static PurchasingQuotaArrangementField<Calendar> |
VALIDITY_START_DATE
Use with available fluent helpers to apply the ValidityStartDate field to query operations.
|
Constructor and Description |
---|
PurchasingQuotaArrangement() |
PurchasingQuotaArrangement(String quotaArrangement,
String material,
String plant,
Calendar validityEndDate,
Calendar validityStartDate,
Calendar creationDate,
String createdByUser,
BigDecimal minQtyForSpltQuota,
Calendar 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() |
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.
|
String |
getCreatedByUser()
Constraints: Not nullable, Maximum length: 12
|
Calendar |
getCreationDate()
Constraints: Not nullable, Precision: 0
|
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
Calendar |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 7 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.
|
String |
getMaterial()
Constraints: Not nullable, Maximum length: 40
|
String |
getMaterialBaseUnit()
Constraints: Not nullable, Maximum length: 3 You 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 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.
|
String |
getPlant()
Constraints: Not nullable, Maximum length: 4
|
List<PurgQuotaArrangementItem> |
getPurgQuotaArrangementItemOrFetch()
Retrieval of associated PurgQuotaArrangementItem entities (one to many).
|
com.google.common.base.Optional<List<PurgQuotaArrangementItem>> |
getPurgQuotaArrangementItemOrNull()
Retrieval of associated PurgQuotaArrangementItem entities (one to many).
|
String |
getQuotaArrangement()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
Class<PurchasingQuotaArrangement> |
getType() |
String |
getUserDescription()
Constraints: Not nullable, Maximum length: 80
|
Calendar |
getValidityEndDate()
Constraints: Not nullable, Precision: 0
|
Calendar |
getValidityStartDate()
Constraints: Not nullable, Precision: 0 quota arrangement becomes valid.
|
int |
hashCode() |
void |
setCreatedByUser(String createdByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setCreationDate(Calendar creationDate)
Constraints: Not nullable, Precision: 0
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g. fetching associated entities).
|
void |
setLastChangeDateTime(Calendar lastChangeDateTime)
Constraints: Not nullable, Precision: 7 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.
|
void |
setMaterial(String material)
Constraints: Not nullable, Maximum length: 40
|
void |
setMaterialBaseUnit(String materialBaseUnit)
Constraints: Not nullable, Maximum length: 3 You 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 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.
|
void |
setPlant(String plant)
Constraints: Not nullable, Maximum length: 4
|
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
|
void |
setUserDescription(String userDescription)
Constraints: Not nullable, Maximum length: 80
|
void |
setValidityEndDate(Calendar validityEndDate)
Constraints: Not nullable, Precision: 0
|
void |
setValidityStartDate(Calendar validityStartDate)
Constraints: Not nullable, Precision: 0 quota arrangement becomes valid.
|
String |
toString() |
getCustomField, getCustomField, getCustomFieldNames, getCustomFields, hasCustomField, hasCustomField, setCustomField, setCustomField
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<Calendar> VALIDITY_END_DATE
public static final PurchasingQuotaArrangementField<Calendar> VALIDITY_START_DATE
public static final PurchasingQuotaArrangementField<Calendar> CREATION_DATE
public static final PurchasingQuotaArrangementField<String> CREATED_BY_USER
public static final PurchasingQuotaArrangementField<BigDecimal> MIN_QTY_FOR_SPLT_QUOTA
public static final PurchasingQuotaArrangementField<Calendar> 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 Calendar validityEndDate, @Nullable Calendar validityStartDate, @Nullable Calendar creationDate, @Nullable String createdByUser, @Nullable BigDecimal minQtyForSpltQuota, @Nullable Calendar lastChangeDateTime, @Nullable String userDescription, @Nullable String materialBaseUnit, @Nullable ErpConfigContext erpConfigContext, List<PurgQuotaArrangementItem> toPurgQuotaArrangementItem)
public Class<PurchasingQuotaArrangement> getType()
getType
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.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 com.google.common.base.Optional<List<PurgQuotaArrangementItem>> getPurgQuotaArrangementItemOrNull()
If the navigation property to_PurgQuotaArrangementItem for an entity PurchasingQuotaArrangement has not been resolved yet, this method will not query further information. Instead its Optional result state will be null.
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()
@Nullable public String getMaterial()
@Nullable public String getPlant()
@Nullable public Calendar getValidityEndDate()
@Nullable public Calendar getValidityStartDate()
quota arrangement becomes valid.
@Nullable public Calendar getCreationDate()
@Nullable public String getCreatedByUser()
@Nullable public BigDecimal getMinQtyForSpltQuota()
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 Calendar getLastChangeDateTime()
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()
@Nullable public String getMaterialBaseUnit()
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 setQuotaArrangement(@Nullable String quotaArrangement)
quotaArrangement
- public void setMaterial(@Nullable String material)
material
- public void setPlant(@Nullable String plant)
plant
- public void setValidityEndDate(@Nullable Calendar validityEndDate)
validityEndDate
- public void setValidityStartDate(@Nullable Calendar validityStartDate)
quota arrangement becomes valid.
validityStartDate
- public void setCreationDate(@Nullable Calendar creationDate)
creationDate
- public void setCreatedByUser(@Nullable String createdByUser)
createdByUser
- public void setMinQtyForSpltQuota(@Nullable BigDecimal 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
- public void setLastChangeDateTime(@Nullable Calendar 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
- public void setUserDescription(@Nullable String userDescription)
userDescription
- public void setMaterialBaseUnit(@Nullable String 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
- public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
erpConfigContext
- public String toString()
toString
in class VdmObject<PurchasingQuotaArrangement>
public boolean equals(Object o)
equals
in class VdmObject<PurchasingQuotaArrangement>
public int hashCode()
hashCode
in class VdmObject<PurchasingQuotaArrangement>
Copyright © 2018 SAP SE. All rights reserved.