java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProductPlantCosting>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.product.ProductPlantCosting
All Implemented Interfaces:
VdmEntitySet

public class ProductPlantCosting extends VdmEntity<ProductPlantCosting> implements VdmEntitySet
Product Plant Costing

Original entity name from the Odata EDM: ProductPlantCosting_Type

  • Field Details

  • Constructor Details

    • ProductPlantCosting

      public ProductPlantCosting()
    • ProductPlantCosting

      public ProductPlantCosting(@Nullable String product, @Nullable String plant, @Nullable Boolean isCoProduct, @Nullable BigDecimal costingLotSize, @Nullable String taskListGroup, @Nullable String taskListType, @Nullable String costingSpecialProcurementType, @Nullable String sourceBOMAlternative, @Nullable String productBOMUsage, @Nullable Boolean productIsCostingRelevant, @Nullable String taskListGroupCounter, @Nullable String varianceKey, @Nullable String costingProductionVersion, @Nullable Boolean isFixedPriceCoProduct, @Nullable String baseUnit, @Nullable String baseISOUnit, @Nullable Product to_Product, @Nullable ProductPlant to_ProductPlant)
  • Method Details

    • getType

      @Nonnull public Class<ProductPlantCosting> getType()
      Specified by:
      getType in class VdmObject<ProductPlantCosting>
    • setProduct

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • setPlant

      public void setPlant(@Nullable String plant)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setIsCoProduct

      public void setIsCoProduct(@Nullable Boolean isCoProduct)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsCoProduct

      Parameters:
      isCoProduct - Co-Product
    • setCostingLotSize

      public void setCostingLotSize(@Nullable BigDecimal costingLotSize)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: CostingLotSize

      Parameters:
      costingLotSize - Lot Size for Product Costing
    • setTaskListGroup

      public void setTaskListGroup(@Nullable String taskListGroup)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: TaskListGroup

      Parameters:
      taskListGroup - Key for Task List Group
    • setTaskListType

      public void setTaskListType(@Nullable String taskListType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TaskListType

      Parameters:
      taskListType - Task List Type
    • setCostingSpecialProcurementType

      public void setCostingSpecialProcurementType(@Nullable String costingSpecialProcurementType)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CostingSpecialProcurementType

      Parameters:
      costingSpecialProcurementType - Special Procurement Type for Costing
    • setSourceBOMAlternative

      public void setSourceBOMAlternative(@Nullable String sourceBOMAlternative)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourceBOMAlternative

      Parameters:
      sourceBOMAlternative - Alternative BOM
    • setProductBOMUsage

      public void setProductBOMUsage(@Nullable String productBOMUsage)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductBOMUsage

      Parameters:
      productBOMUsage - BOM Usage
    • setProductIsCostingRelevant

      public void setProductIsCostingRelevant(@Nullable Boolean productIsCostingRelevant)
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductIsCostingRelevant

      Parameters:
      productIsCostingRelevant - Do Not Cost
    • setTaskListGroupCounter

      public void setTaskListGroupCounter(@Nullable String taskListGroupCounter)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TaskListGroupCounter

      Parameters:
      taskListGroupCounter - Group Counter
    • setVarianceKey

      public void setVarianceKey(@Nullable String varianceKey)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: VarianceKey

      Parameters:
      varianceKey - Variance Key
    • setCostingProductionVersion

      public void setCostingProductionVersion(@Nullable String costingProductionVersion)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CostingProductionVersion

      Parameters:
      costingProductionVersion - Production Version To Be Costed
    • setIsFixedPriceCoProduct

      public void setIsFixedPriceCoProduct(@Nullable Boolean isFixedPriceCoProduct)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsFixedPriceCoProduct

      Parameters:
      isFixedPriceCoProduct - Fixed-Price Co-Product
    • setBaseUnit

      public void setBaseUnit(@Nullable String baseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Parameters:
      baseUnit - Base Unit of Measure
    • setBaseISOUnit

      public void setBaseISOUnit(@Nullable String baseISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseISOUnit

      Parameters:
      baseISOUnit - Base unit of measure in ISO code
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<ProductPlantCosting>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ProductPlantCosting>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<ProductPlantCosting>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<ProductPlantCosting>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProductPlantCosting>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ProductPlantCosting>
    • getProductIfPresent

      @Nonnull public io.vavr.control.Option<Product> getProductIfPresent()
      Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.

      If the navigation property for an entity ProductPlantCosting has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _Product is already loaded, the result will contain the Product entity. If not, an Option with result state empty is returned.
    • setProduct

      public void setProduct(Product value)
      Overwrites the associated Product entity for the loaded navigation property _Product.
      Parameters:
      value - New Product entity.
    • getProductPlantIfPresent

      @Nonnull public io.vavr.control.Option<ProductPlant> getProductPlantIfPresent()
      Retrieval of associated ProductPlant entity (one to one). This corresponds to the OData navigation property _ProductPlant.

      If the navigation property for an entity ProductPlantCosting has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _ProductPlant is already loaded, the result will contain the ProductPlant entity. If not, an Option with result state empty is returned.
    • setProductPlant

      public void setProductPlant(ProductPlant value)
      Overwrites the associated ProductPlant entity for the loaded navigation property _ProductPlant.
      Parameters:
      value - New ProductPlant entity.
    • builder

      @Nonnull public static ProductPlantCosting.ProductPlantCostingBuilder builder()
    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getPlant

      @Nullable public String getPlant()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getIsCoProduct

      @Nullable public Boolean getIsCoProduct()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsCoProduct

      Returns:
      Co-Product
    • getCostingLotSize

      @Nullable public BigDecimal getCostingLotSize()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: CostingLotSize

      Returns:
      Lot Size for Product Costing
    • getTaskListGroup

      @Nullable public String getTaskListGroup()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: TaskListGroup

      Returns:
      Key for Task List Group
    • getTaskListType

      @Nullable public String getTaskListType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TaskListType

      Returns:
      Task List Type
    • getCostingSpecialProcurementType

      @Nullable public String getCostingSpecialProcurementType()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CostingSpecialProcurementType

      Returns:
      Special Procurement Type for Costing
    • getSourceBOMAlternative

      @Nullable public String getSourceBOMAlternative()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourceBOMAlternative

      Returns:
      Alternative BOM
    • getProductBOMUsage

      @Nullable public String getProductBOMUsage()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductBOMUsage

      Returns:
      BOM Usage
    • getProductIsCostingRelevant

      @Nullable public Boolean getProductIsCostingRelevant()
      Constraints: Not nullable

      Original property name from the Odata EDM: ProductIsCostingRelevant

      Returns:
      Do Not Cost
    • getTaskListGroupCounter

      @Nullable public String getTaskListGroupCounter()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TaskListGroupCounter

      Returns:
      Group Counter
    • getVarianceKey

      @Nullable public String getVarianceKey()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: VarianceKey

      Returns:
      Variance Key
    • getCostingProductionVersion

      @Nullable public String getCostingProductionVersion()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CostingProductionVersion

      Returns:
      Production Version To Be Costed
    • getIsFixedPriceCoProduct

      @Nullable public Boolean getIsFixedPriceCoProduct()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsFixedPriceCoProduct

      Returns:
      Fixed-Price Co-Product
    • getBaseUnit

      @Nullable public String getBaseUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getBaseISOUnit

      @Nullable public String getBaseISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseISOUnit

      Returns:
      Base unit of measure in ISO code
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<ProductPlantCosting>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<ProductPlantCosting>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<ProductPlantCosting>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProductPlantCosting>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ProductPlantCosting>