public class PlannedIndepRqmt extends VdmEntity<PlannedIndepRqmt>
Original entity name from the Odata EDM: PlannedIndepRqmtType
Modifier and Type | Class and Description |
---|---|
static class |
PlannedIndepRqmt.PlannedIndepRqmtBuilder
Helper class to allow for fluent creation of PlannedIndepRqmt instances.
|
Modifier and Type | Field and Description |
---|---|
static PlannedIndepRqmtSelectable |
ALL_FIELDS
Selector for all available fields of PlannedIndepRqmt.
|
static PlannedIndepRqmtField<String> |
MRP_AREA
Use with available fluent helpers to apply the MRPArea field to query operations.
|
static PlannedIndepRqmtField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static PlannedIndepRqmtField<String> |
PLND_INDEP_RQMT_INTERNAL_ID
Use with available fluent helpers to apply the PlndIndepRqmtInternalID field to query operations.
|
static PlannedIndepRqmtField<String> |
PLND_INDEP_RQMT_IS_ACTIVE
Use with available fluent helpers to apply the PlndIndepRqmtIsActive field to query operations.
|
static PlannedIndepRqmtField<ZonedDateTime> |
PLND_INDEP_RQMT_LAST_CHGD_DATE_TIME
Use with available fluent helpers to apply the PlndIndepRqmtLastChgdDateTime field to query operations.
|
static PlannedIndepRqmtField<String> |
PLND_INDEP_RQMT_TYPE
Use with available fluent helpers to apply the PlndIndepRqmtType field to query operations.
|
static PlannedIndepRqmtField<String> |
PLND_INDEP_RQMT_VERSION
Use with available fluent helpers to apply the PlndIndepRqmtVersion field to query operations.
|
static PlannedIndepRqmtField<String> |
PRODUCT
Use with available fluent helpers to apply the Product field to query operations.
|
static PlannedIndepRqmtField<String> |
REQUIREMENT_PLAN
Use with available fluent helpers to apply the RequirementPlan field to query operations.
|
static PlannedIndepRqmtField<Boolean> |
REQUIREMENT_PLAN_IS_EXTERNAL
Use with available fluent helpers to apply the RequirementPlanIsExternal field to query operations.
|
static PlannedIndepRqmtField<String> |
REQUIREMENT_SEGMENT
Use with available fluent helpers to apply the RequirementSegment field to query operations.
|
static PlannedIndepRqmtLink<PlannedIndepRqmtItem> |
TO_PLND_INDEP_RQMT_ITEM
Use with available fluent helpers to apply the to_PlndIndepRqmtItem navigation property to query
operations.
|
changedOriginalFields
Constructor and Description |
---|
PlannedIndepRqmt() |
PlannedIndepRqmt(String product,
String plant,
String mRPArea,
String plndIndepRqmtType,
String plndIndepRqmtVersion,
String requirementPlan,
String requirementSegment,
Boolean requirementPlanIsExternal,
String plndIndepRqmtInternalID,
String plndIndepRqmtIsActive,
ZonedDateTime plndIndepRqmtLastChgdDateTime,
List<PlannedIndepRqmtItem> toPlndIndepRqmtItem) |
Modifier and Type | Method and Description |
---|---|
void |
addPlndIndepRqmtItem(PlannedIndepRqmtItem... entity)
Adds elements to the list of associated PlannedIndepRqmtItem entities.
|
void |
attachToService(String servicePath,
ErpConfigContext configContext)
Sets the service path and ERP configuration context for the fetch commands of this entity.
|
static PlannedIndepRqmt.PlannedIndepRqmtBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<PlannedIndepRqmtItem> |
fetchPlndIndepRqmtItem()
Fetches the PlannedIndepRqmtItem entities (one to many) associated with this entity.
|
static <T> PlannedIndepRqmtField<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) |
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() |
String |
getMRPArea()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getPlndIndepRqmtInternalID()
Constraints: Not nullable, Maximum length: 12
|
String |
getPlndIndepRqmtIsActive()
Constraints: Not nullable, Maximum length: 1
|
Optional<List<PlannedIndepRqmtItem>> |
getPlndIndepRqmtItemIfPresent()
Retrieval of associated PlannedIndepRqmtItem entities (one to many).
|
List<PlannedIndepRqmtItem> |
getPlndIndepRqmtItemOrFetch()
Retrieval of associated PlannedIndepRqmtItem entities (one to many).
|
ZonedDateTime |
getPlndIndepRqmtLastChgdDateTime()
Constraints: Not nullable, Precision: 7
|
String |
getPlndIndepRqmtType()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getPlndIndepRqmtVersion()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
String |
getProduct()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getRequirementPlan()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
Boolean |
getRequirementPlanIsExternal()
Constraints: none
|
String |
getRequirementSegment()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
Class<PlannedIndepRqmt> |
getType() |
int |
hashCode() |
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Deprecated.
Use
attachToService(String, ErpConfigContext) instead. |
void |
setMRPArea(String mRPArea)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setPlant(String plant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setPlndIndepRqmtInternalID(String plndIndepRqmtInternalID)
Constraints: Not nullable, Maximum length: 12
|
void |
setPlndIndepRqmtIsActive(String plndIndepRqmtIsActive)
Constraints: Not nullable, Maximum length: 1
|
void |
setPlndIndepRqmtItem(List<PlannedIndepRqmtItem> value)
Overwrites the list of associated PlannedIndepRqmtItem entities for the loaded navigation property
to_PlndIndepRqmtItem.
|
void |
setPlndIndepRqmtLastChgdDateTime(ZonedDateTime plndIndepRqmtLastChgdDateTime)
Constraints: Not nullable, Precision: 7
|
void |
setPlndIndepRqmtType(String plndIndepRqmtType)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setPlndIndepRqmtVersion(String plndIndepRqmtVersion)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setProduct(String product)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setRequirementPlan(String requirementPlan)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setRequirementPlanIsExternal(Boolean requirementPlanIsExternal)
Constraints: none
|
void |
setRequirementSegment(String requirementSegment)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
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 PlannedIndepRqmtSelectable ALL_FIELDS
public static final PlannedIndepRqmtField<String> PRODUCT
public static final PlannedIndepRqmtField<String> PLANT
public static final PlannedIndepRqmtField<String> MRP_AREA
public static final PlannedIndepRqmtField<String> PLND_INDEP_RQMT_TYPE
public static final PlannedIndepRqmtField<String> PLND_INDEP_RQMT_VERSION
public static final PlannedIndepRqmtField<String> REQUIREMENT_PLAN
public static final PlannedIndepRqmtField<String> REQUIREMENT_SEGMENT
public static final PlannedIndepRqmtField<Boolean> REQUIREMENT_PLAN_IS_EXTERNAL
public static final PlannedIndepRqmtField<String> PLND_INDEP_RQMT_INTERNAL_ID
public static final PlannedIndepRqmtField<String> PLND_INDEP_RQMT_IS_ACTIVE
public static final PlannedIndepRqmtField<ZonedDateTime> PLND_INDEP_RQMT_LAST_CHGD_DATE_TIME
public static final PlannedIndepRqmtLink<PlannedIndepRqmtItem> TO_PLND_INDEP_RQMT_ITEM
public PlannedIndepRqmt()
public PlannedIndepRqmt(@Nullable String product, @Nullable String plant, @Nullable String mRPArea, @Nullable String plndIndepRqmtType, @Nullable String plndIndepRqmtVersion, @Nullable String requirementPlan, @Nullable String requirementSegment, @Nullable Boolean requirementPlanIsExternal, @Nullable String plndIndepRqmtInternalID, @Nullable String plndIndepRqmtIsActive, @Nullable ZonedDateTime plndIndepRqmtLastChgdDateTime, List<PlannedIndepRqmtItem> toPlndIndepRqmtItem)
@Nonnull public Class<PlannedIndepRqmt> getType()
getType
in class VdmObject<PlannedIndepRqmt>
public void setProduct(@Nullable String product)
Original property name from the Odata EDM: Product
product
- 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 setMRPArea(@Nullable String mRPArea)
Original property name from the Odata EDM: MRPArea
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.public void setPlndIndepRqmtType(@Nullable String plndIndepRqmtType)
Original property name from the Odata EDM: PlndIndepRqmtType
plndIndepRqmtType
- The requirements type determines the planning strategy to be used for a particular requirement.public void setPlndIndepRqmtVersion(@Nullable String plndIndepRqmtVersion)
Original property name from the Odata EDM: PlndIndepRqmtVersion
The version number is used for organizational purposes for the creation and further use of the demand program.Versions can be set to active and inactive. Only active versions are included in the planning run.Using the version compare function, you can compare various versions of a demand program with each other.With the version number various planned independent requirements can be indicated according to their origin. For example, whether the demand program results from SOP or from the material forecast.You can also create versions for long-term planning.
plndIndepRqmtVersion
- Alphanumeric description of a demand program, also known as the (demand) version number.public void setRequirementPlan(@Nullable String requirementPlan)
Original property name from the Odata EDM: RequirementPlan
The requirements plan number is used as a criterion for selection.
requirementPlan
- Key which can be given to create and to identify one or more planned independent requirements.public void setRequirementSegment(@Nullable String requirementSegment)
Original property name from the Odata EDM: RequirementSegment
Customer 1 accepts quality 1 and 2 while customer 2 accepts only quality 1. This results in 2 different requirement segments which can be assigned to different stock segments.
requirementSegment
- Indicates additional information about the type of requirement. You can freely define which
requirement segments are satisfied by which stock segments using segmentation strategies in the
transaction Segmentation Strategy Maintenance .public void setRequirementPlanIsExternal(@Nullable Boolean requirementPlanIsExternal)
Original property name from the Odata EDM: RequirementPlanIsExternal
requirementPlanIsExternal
- Indicates that the Requirement Plan is externalpublic void setPlndIndepRqmtInternalID(@Nullable String plndIndepRqmtInternalID)
Original property name from the Odata EDM: PlndIndepRqmtInternalID
plndIndepRqmtInternalID
- Independent Requirements Pointerpublic void setPlndIndepRqmtIsActive(@Nullable String plndIndepRqmtIsActive)
Original property name from the Odata EDM: PlndIndepRqmtIsActive
plndIndepRqmtIsActive
- This selection determines whether the version is active, that is, relevant to MRP.public void setPlndIndepRqmtLastChgdDateTime(@Nullable ZonedDateTime plndIndepRqmtLastChgdDateTime)
Original property name from the Odata EDM: PlndIndepRqmtLastChgdDateTime
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.
plndIndepRqmtLastChgdDateTime
- The UTC timestamp displays date and time according to UTC (Universal Coordinated Time).protected String getEntityCollection()
getEntityCollection
in class VdmEntity<PlannedIndepRqmt>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<PlannedIndepRqmt>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<PlannedIndepRqmt>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<PlannedIndepRqmt>
@Nonnull public static <T> PlannedIndepRqmtField<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> PlannedIndepRqmtField<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<PlannedIndepRqmt>
@Deprecated public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
attachToService(String, ErpConfigContext)
instead.VdmEntity
setErpConfigContext
in class VdmEntity<PlannedIndepRqmt>
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<PlannedIndepRqmt>
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<PlannedIndepRqmt>
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<PlannedIndepRqmt>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<PlannedIndepRqmt>
@Nonnull public List<PlannedIndepRqmtItem> fetchPlndIndepRqmtItem() 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<PlannedIndepRqmtItem> getPlndIndepRqmtItemOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_PlndIndepRqmtItem of a queried PlannedIndepRqmt 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<PlannedIndepRqmtItem>> getPlndIndepRqmtItemIfPresent()
If the navigation property for an entity PlannedIndepRqmt 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 setPlndIndepRqmtItem(@Nonnull List<PlannedIndepRqmtItem> value)
If the navigation property to_PlndIndepRqmtItem of a queried PlannedIndepRqmt 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 PlannedIndepRqmtItem entities.public void addPlndIndepRqmtItem(PlannedIndepRqmtItem... entity)
If the navigation property to_PlndIndepRqmtItem of a queried PlannedIndepRqmt 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 PlannedIndepRqmtItem entities.public static PlannedIndepRqmt.PlannedIndepRqmtBuilder builder()
@Nullable public String getProduct()
Original property name from the Odata EDM: Product
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public String getMRPArea()
Original property name from the Odata EDM: MRPArea
@Nullable public String getPlndIndepRqmtType()
Original property name from the Odata EDM: PlndIndepRqmtType
@Nullable public String getPlndIndepRqmtVersion()
Original property name from the Odata EDM: PlndIndepRqmtVersion
The version number is used for organizational purposes for the creation and further use of the demand program.Versions can be set to active and inactive. Only active versions are included in the planning run.Using the version compare function, you can compare various versions of a demand program with each other.With the version number various planned independent requirements can be indicated according to their origin. For example, whether the demand program results from SOP or from the material forecast.You can also create versions for long-term planning.
@Nullable public String getRequirementPlan()
Original property name from the Odata EDM: RequirementPlan
The requirements plan number is used as a criterion for selection.
@Nullable public String getRequirementSegment()
Original property name from the Odata EDM: RequirementSegment
Customer 1 accepts quality 1 and 2 while customer 2 accepts only quality 1. This results in 2 different requirement segments which can be assigned to different stock segments.
@Nullable public Boolean getRequirementPlanIsExternal()
Original property name from the Odata EDM: RequirementPlanIsExternal
@Nullable public String getPlndIndepRqmtInternalID()
Original property name from the Odata EDM: PlndIndepRqmtInternalID
@Nullable public String getPlndIndepRqmtIsActive()
Original property name from the Odata EDM: PlndIndepRqmtIsActive
@Nullable public ZonedDateTime getPlndIndepRqmtLastChgdDateTime()
Original property name from the Odata EDM: PlndIndepRqmtLastChgdDateTime
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.
public String toString()
toString
in class VdmObject<PlannedIndepRqmt>
public boolean equals(Object o)
equals
in class VdmObject<PlannedIndepRqmt>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<PlannedIndepRqmt>
public int hashCode()
hashCode
in class VdmObject<PlannedIndepRqmt>
Copyright © 2019 SAP SE. All rights reserved.