public class POSubcontractingComponent extends VdmEntity<POSubcontractingComponent>
Original entity name from the Odata EDM: A_POSubcontractingComponentType
Modifier and Type | Class and Description |
---|---|
static class |
POSubcontractingComponent.POSubcontractingComponentBuilder |
Modifier and Type | Field and Description |
---|---|
static POSubcontractingComponentSelectable |
ALL_FIELDS
Selector for all available fields of POSubcontractingComponent.
|
static POSubcontractingComponentField<String> |
BASE_UNIT
Use with available fluent helpers to apply the BaseUnit field to query operations.
|
static POSubcontractingComponentField<String> |
BATCH
Use with available fluent helpers to apply the Batch field to query operations.
|
static POSubcontractingComponentField<String> |
BOM_ITEM_DESCRIPTION
Use with available fluent helpers to apply the BOMItemDescription field to query operations.
|
static POSubcontractingComponentField<String> |
ENTRY_UNIT
Use with available fluent helpers to apply the EntryUnit field to query operations.
|
static POSubcontractingComponentField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static POSubcontractingComponentField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static POSubcontractingComponentField<String> |
PURCHASE_ORDER
Use with available fluent helpers to apply the PurchaseOrder field to query operations.
|
static POSubcontractingComponentField<String> |
PURCHASE_ORDER_ITEM
Use with available fluent helpers to apply the PurchaseOrderItem field to query operations.
|
static POSubcontractingComponentField<BigDecimal> |
QUANTITY_IN_ENTRY_UNIT
Use with available fluent helpers to apply the QuantityInEntryUnit field to query operations.
|
static POSubcontractingComponentField<String> |
RECORD_TYPE
Use with available fluent helpers to apply the RecordType field to query operations.
|
static POSubcontractingComponentField<BigDecimal> |
REQUIRED_QUANTITY
Use with available fluent helpers to apply the RequiredQuantity field to query operations.
|
static POSubcontractingComponentField<LocalDateTime> |
REQUIREMENT_DATE
Use with available fluent helpers to apply the RequirementDate field to query operations.
|
static POSubcontractingComponentField<String> |
RESERVATION_ITEM
Use with available fluent helpers to apply the ReservationItem field to query operations.
|
static POSubcontractingComponentField<String> |
SCHEDULE_LINE
Use with available fluent helpers to apply the ScheduleLine field to query operations.
|
static POSubcontractingComponentField<BigDecimal> |
WITHDRAWN_QUANTITY
Use with available fluent helpers to apply the WithdrawnQuantity field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
POSubcontractingComponent() |
POSubcontractingComponent(String purchaseOrder,
String purchaseOrderItem,
String scheduleLine,
String reservationItem,
String recordType,
String material,
String bOMItemDescription,
BigDecimal requiredQuantity,
String baseUnit,
LocalDateTime requirementDate,
BigDecimal quantityInEntryUnit,
String entryUnit,
BigDecimal withdrawnQuantity,
String plant,
String batch) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static POSubcontractingComponent.POSubcontractingComponentBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> POSubcontractingComponentField<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 |
getBaseUnit()
Constraints: Not nullable, Maximum length: 3
|
String |
getBatch()
Constraints: Not nullable, Maximum length: 10
|
String |
getBOMItemDescription()
Constraints: Not nullable, Maximum length: 40
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection() |
String |
getEntryUnit()
Constraints: Not nullable, Maximum length: 3
|
protected Map<String,Object> |
getKey() |
String |
getMaterial()
Constraints: Not nullable, Maximum length: 40
|
String |
getPlant()
Constraints: Not nullable, Maximum length: 4
|
String |
getPurchaseOrder()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getPurchaseOrderItem()
(Key Field) Constraints: Not nullable, Maximum length: 5
|
BigDecimal |
getQuantityInEntryUnit()
Constraints: Not nullable, Precision: 13, Scale: 3
|
String |
getRecordType()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
BigDecimal |
getRequiredQuantity()
Constraints: Not nullable, Precision: 13, Scale: 3
|
LocalDateTime |
getRequirementDate()
Constraints: Not nullable, Precision: 0
|
String |
getReservationItem()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getScheduleLine()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
Class<POSubcontractingComponent> |
getType() |
BigDecimal |
getWithdrawnQuantity()
Constraints: Not nullable, Precision: 13, Scale: 3
|
int |
hashCode() |
void |
setBaseUnit(String baseUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setBatch(String batch)
Constraints: Not nullable, Maximum length: 10
|
void |
setBOMItemDescription(String bOMItemDescription)
Constraints: Not nullable, Maximum length: 40
|
void |
setEntryUnit(String entryUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setMaterial(String material)
Constraints: Not nullable, Maximum length: 40
|
void |
setPlant(String plant)
Constraints: Not nullable, Maximum length: 4
|
void |
setPurchaseOrder(String purchaseOrder)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setPurchaseOrderItem(String purchaseOrderItem)
(Key Field) Constraints: Not nullable, Maximum length: 5
|
void |
setQuantityInEntryUnit(BigDecimal quantityInEntryUnit)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setRecordType(String recordType)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setRequiredQuantity(BigDecimal requiredQuantity)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setRequirementDate(LocalDateTime requirementDate)
Constraints: Not nullable, Precision: 0
|
void |
setReservationItem(String reservationItem)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setScheduleLine(String scheduleLine)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setWithdrawnQuantity(BigDecimal withdrawnQuantity)
Constraints: Not nullable, Precision: 13, Scale: 3
|
protected Map<String,Object> |
toMapOfFields() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final POSubcontractingComponentSelectable ALL_FIELDS
public static final POSubcontractingComponentField<String> PURCHASE_ORDER
public static final POSubcontractingComponentField<String> PURCHASE_ORDER_ITEM
public static final POSubcontractingComponentField<String> SCHEDULE_LINE
public static final POSubcontractingComponentField<String> RESERVATION_ITEM
public static final POSubcontractingComponentField<String> RECORD_TYPE
public static final POSubcontractingComponentField<String> MATERIAL
public static final POSubcontractingComponentField<String> BOM_ITEM_DESCRIPTION
public static final POSubcontractingComponentField<BigDecimal> REQUIRED_QUANTITY
public static final POSubcontractingComponentField<String> BASE_UNIT
public static final POSubcontractingComponentField<LocalDateTime> REQUIREMENT_DATE
public static final POSubcontractingComponentField<BigDecimal> QUANTITY_IN_ENTRY_UNIT
public static final POSubcontractingComponentField<String> ENTRY_UNIT
public static final POSubcontractingComponentField<BigDecimal> WITHDRAWN_QUANTITY
public static final POSubcontractingComponentField<String> PLANT
public static final POSubcontractingComponentField<String> BATCH
public POSubcontractingComponent()
public POSubcontractingComponent(@Nullable String purchaseOrder, @Nullable String purchaseOrderItem, @Nullable String scheduleLine, @Nullable String reservationItem, @Nullable String recordType, @Nullable String material, @Nullable String bOMItemDescription, @Nullable BigDecimal requiredQuantity, @Nullable String baseUnit, @Nullable LocalDateTime requirementDate, @Nullable BigDecimal quantityInEntryUnit, @Nullable String entryUnit, @Nullable BigDecimal withdrawnQuantity, @Nullable String plant, @Nullable String batch)
@Nonnull public Class<POSubcontractingComponent> getType()
getType
in class VdmObject<POSubcontractingComponent>
public void setPurchaseOrder(@Nullable String purchaseOrder)
Original property name from the Odata EDM: PurchaseOrder
purchaseOrder
- Purchasing Documentpublic void setPurchaseOrderItem(@Nullable String purchaseOrderItem)
Original property name from the Odata EDM: PurchaseOrderItem
purchaseOrderItem
- Purchasing Document Itempublic void setScheduleLine(@Nullable String scheduleLine)
Original property name from the Odata EDM: ScheduleLine
scheduleLine
- Alphanumeric key uniquely identifying the document.public void setReservationItem(@Nullable String reservationItem)
Original property name from the Odata EDM: ReservationItem
reservationItem
- Reservation Itempublic void setRecordType(@Nullable String recordType)
Original property name from the Odata EDM: RecordType
recordType
- Record typepublic void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
material
- Alphanumeric key uniquely identifying the material.public void setBOMItemDescription(@Nullable String bOMItemDescription)
Original property name from the Odata EDM: BOMItemDescription
If the BOM item text (two lines of 40 characters each) is not sufficient, you can enter an item long text as well, by going to the Extras menu and choosing the function Long Text -> Item Long Text.When creating an item long text, the BOM item text is transferred to the first 80 characters of the long text.Changing the BOM item text automatically changes the first 80 characters of an existing long text and vice versa.Note:For text items, this text is displayed as a description of the component.
bOMItemDescription
- Text up to 40 characters in length, which explains the item as the first of two text lines.public void setRequiredQuantity(@Nullable BigDecimal requiredQuantity)
Original property name from the Odata EDM: RequiredQuantity
In the case of a planned order or a production order, this is the quantity of the material component required to manufacture the planned order quantity.In the case of a reservation, this is the quantity reserved.
requiredQuantity
- Specifies the quantity in the base unit of measure, which can have various meanings, depending on the
situation:public void setBaseUnit(@Nullable String baseUnit)
Original property name from the Odata EDM: BaseUnit
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.
baseUnit
- 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.public void setRequirementDate(@Nullable LocalDateTime requirementDate)
Original property name from the Odata EDM: RequirementDate
requirementDate
- Material Component Requirement Datepublic void setQuantityInEntryUnit(@Nullable BigDecimal quantityInEntryUnit)
Original property name from the Odata EDM: QuantityInEntryUnit
quantityInEntryUnit
- Quantity in Unit of Entrypublic void setEntryUnit(@Nullable String entryUnit)
Original property name from the Odata EDM: EntryUnit
Enter a unit of measure here only if it differs from the default unit of measure.There are the following default units of measure:the order unit for goods receipts with reference to purchase ordersthe production unit for goods receipts with reference to production ordersthe unit of issue for other goods movementsIf the default unit of measure has not been defined in the material master record, the system will suggest the stockkeeping unit.
entryUnit
- Specifies the unit of measure in which the goods movement or inventory count is entered.public void setWithdrawnQuantity(@Nullable BigDecimal withdrawnQuantity)
Original property name from the Odata EDM: WithdrawnQuantity
withdrawnQuantity
- Withdrawn Quantitypublic void setPlant(@Nullable String plant)
Original property name from the Odata EDM: Plant
plant
- Key uniquely identifying a plant.public void setBatch(@Nullable String batch)
Original property name from the Odata EDM: Batch
batch
- Assigns a material that is manufactured in batches or production lots to a specific batch.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<POSubcontractingComponent>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<POSubcontractingComponent>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<POSubcontractingComponent>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<POSubcontractingComponent>
@Nonnull public static <T> POSubcontractingComponentField<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> POSubcontractingComponentField<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 HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<POSubcontractingComponent>
protected 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<POSubcontractingComponent>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
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<POSubcontractingComponent>
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.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<POSubcontractingComponent>
public static POSubcontractingComponent.POSubcontractingComponentBuilder builder()
@Nullable public String getPurchaseOrder()
Original property name from the Odata EDM: PurchaseOrder
@Nullable public String getPurchaseOrderItem()
Original property name from the Odata EDM: PurchaseOrderItem
@Nullable public String getScheduleLine()
Original property name from the Odata EDM: ScheduleLine
@Nullable public String getReservationItem()
Original property name from the Odata EDM: ReservationItem
@Nullable public String getRecordType()
Original property name from the Odata EDM: RecordType
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
@Nullable public String getBOMItemDescription()
Original property name from the Odata EDM: BOMItemDescription
If the BOM item text (two lines of 40 characters each) is not sufficient, you can enter an item long text as well, by going to the Extras menu and choosing the function Long Text -> Item Long Text.When creating an item long text, the BOM item text is transferred to the first 80 characters of the long text.Changing the BOM item text automatically changes the first 80 characters of an existing long text and vice versa.Note:For text items, this text is displayed as a description of the component.
@Nullable public BigDecimal getRequiredQuantity()
Original property name from the Odata EDM: RequiredQuantity
In the case of a planned order or a production order, this is the quantity of the material component required to manufacture the planned order quantity.In the case of a reservation, this is the quantity reserved.
@Nullable public String getBaseUnit()
Original property name from the Odata EDM: BaseUnit
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.
@Nullable public LocalDateTime getRequirementDate()
Original property name from the Odata EDM: RequirementDate
@Nullable public BigDecimal getQuantityInEntryUnit()
Original property name from the Odata EDM: QuantityInEntryUnit
@Nullable public String getEntryUnit()
Original property name from the Odata EDM: EntryUnit
Enter a unit of measure here only if it differs from the default unit of measure.There are the following default units of measure:the order unit for goods receipts with reference to purchase ordersthe production unit for goods receipts with reference to production ordersthe unit of issue for other goods movementsIf the default unit of measure has not been defined in the material master record, the system will suggest the stockkeeping unit.
@Nullable public BigDecimal getWithdrawnQuantity()
Original property name from the Odata EDM: WithdrawnQuantity
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public String getBatch()
Original property name from the Odata EDM: Batch
public String toString()
toString
in class VdmObject<POSubcontractingComponent>
public boolean equals(Object o)
equals
in class VdmObject<POSubcontractingComponent>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<POSubcontractingComponent>
public int hashCode()
hashCode
in class VdmObject<POSubcontractingComponent>
Copyright © 2019 SAP SE. All rights reserved.