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
Helper class to allow for fluent creation of PurchasingQuotaArrangement instances.
|
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,
List<PurgQuotaArrangementItem> toPurgQuotaArrangementItem) |
Modifier and Type | Method and Description |
---|---|
void |
addPurgQuotaArrangementItem(PurgQuotaArrangementItem... entity)
Adds elements to the list of associated PurgQuotaArrangementItem entities.
|
void |
attachToService(String servicePath,
ErpConfigContext configContext)
Sets the service path and ERP configuration context for the fetch commands of this entity.
|
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.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
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
|
LocalDateTime |
getCreationDate()
Constraints: Not nullable, Precision: 0
|
protected String |
getDefaultServicePath() |
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
protected Map<String,Object> |
getKey() |
ZonedDateTime |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 7
|
String |
getMaterial()
Constraints: Not nullable, Maximum length: 40
|
String |
getMaterialBaseUnit()
Constraints: Not nullable, Maximum length: 3
|
BigDecimal |
getMinQtyForSpltQuota()
Constraints: Not nullable, Precision: 15, Scale: 3
|
String |
getPlant()
Constraints: Not nullable, Maximum length: 4
|
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
|
Class<PurchasingQuotaArrangement> |
getType() |
String |
getUserDescription()
Constraints: Not nullable, Maximum length: 80
|
LocalDateTime |
getValidityEndDate()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getValidityStartDate()
Constraints: Not nullable, Precision: 0
|
int |
hashCode() |
void |
setCreatedByUser(String createdByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setCreationDate(LocalDateTime creationDate)
Constraints: Not nullable, Precision: 0
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Deprecated.
Use
attachToService(String, ErpConfigContext) instead. |
void |
setLastChangeDateTime(ZonedDateTime lastChangeDateTime)
Constraints: Not nullable, Precision: 7
|
void |
setMaterial(String material)
Constraints: Not nullable, Maximum length: 40
|
void |
setMaterialBaseUnit(String materialBaseUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setMinQtyForSpltQuota(BigDecimal minQtyForSpltQuota)
Constraints: Not nullable, Precision: 15, Scale: 3
|
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
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setUserDescription(String userDescription)
Constraints: Not nullable, Maximum length: 80
|
void |
setValidityEndDate(LocalDateTime validityEndDate)
Constraints: Not nullable, Precision: 0
|
void |
setValidityStartDate(LocalDateTime validityStartDate)
Constraints: Not nullable, Precision: 0
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getEndpointUrl, getServicePathForFetch, 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, List<PurgQuotaArrangementItem> toPurgQuotaArrangementItem)
@Nonnull 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 STAMPA 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 ManagementIn Inventory Management, the base unit of measure is the same as the stockkeeping unit.ServicesServices have units of measure of their own, including the following:Service unitUnit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level.BlanketUnit 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 getEntityCollection()
getEntityCollection
in class VdmEntity<PurchasingQuotaArrangement>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<PurchasingQuotaArrangement>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<PurchasingQuotaArrangement>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<PurchasingQuotaArrangement>
@Nonnull public static <T> PurchasingQuotaArrangementField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> PurchasingQuotaArrangementField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public ErpConfigContext getErpConfigContext()
VdmEntity
getErpConfigContext
in class VdmEntity<PurchasingQuotaArrangement>
@Deprecated public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
attachToService(String, ErpConfigContext)
instead.VdmEntity
setErpConfigContext
in class VdmEntity<PurchasingQuotaArrangement>
erpConfigContext
- New ERP configuration context to apply to this entityprotected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<PurchasingQuotaArrangement>
public void attachToService(@Nullable String servicePath, @Nullable ErpConfigContext configContext)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<PurchasingQuotaArrangement>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.configContext
- Optional parameter. New ERP configuration context to apply to this entity and any associated entities
that were previously fetched. If a null value is provided and the ERP configuration context has never
been set, then the ERP configuration context will be set to a new instance of
ErpConfigContext
.protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<PurchasingQuotaArrangement>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<PurchasingQuotaArrangement>
@Nonnull 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.@Nonnull 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.@Nonnull 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 STAMPA 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 ManagementIn Inventory Management, the base unit of measure is the same as the stockkeeping unit.ServicesServices have units of measure of their own, including the following:Service unitUnit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level.BlanketUnit 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.
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 © 2019 SAP SE. All rights reserved.