java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<CustomerMaterial>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.customermaterial.CustomerMaterial

public class CustomerMaterial extends VdmEntity<CustomerMaterial>
Customer Materials

Original entity name from the Odata EDM: A_CustomerMaterialType

  • Field Details

    • ALL_FIELDS

      public static final CustomerMaterialSelectable ALL_FIELDS
      Selector for all available fields of CustomerMaterial.
    • SALES_ORGANIZATION

      public static final CustomerMaterialField<String> SALES_ORGANIZATION
      Use with available fluent helpers to apply the SalesOrganization field to query operations.
    • DISTRIBUTION_CHANNEL

      public static final CustomerMaterialField<String> DISTRIBUTION_CHANNEL
      Use with available fluent helpers to apply the DistributionChannel field to query operations.
    • CUSTOMER

      public static final CustomerMaterialField<String> CUSTOMER
      Use with available fluent helpers to apply the Customer field to query operations.
    • MATERIAL

      public static final CustomerMaterialField<String> MATERIAL
      Use with available fluent helpers to apply the Material field to query operations.
    • MATERIAL_BY_CUSTOMER

      public static final CustomerMaterialField<String> MATERIAL_BY_CUSTOMER
      Use with available fluent helpers to apply the MaterialByCustomer field to query operations.
    • MATERIAL_DESCRIPTION_BY_CUSTOMER

      public static final CustomerMaterialField<String> MATERIAL_DESCRIPTION_BY_CUSTOMER
      Use with available fluent helpers to apply the MaterialDescriptionByCustomer field to query operations.
    • PLANT

      public static final CustomerMaterialField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • DELIVERY_PRIORITY

      public static final CustomerMaterialField<String> DELIVERY_PRIORITY
      Use with available fluent helpers to apply the DeliveryPriority field to query operations.
    • MIN_DELIVERY_QTY_IN_BASE_UNIT

      public static final CustomerMaterialField<BigDecimal> MIN_DELIVERY_QTY_IN_BASE_UNIT
      Use with available fluent helpers to apply the MinDeliveryQtyInBaseUnit field to query operations.
    • BASE_UNIT

      public static final CustomerMaterialField<String> BASE_UNIT
      Use with available fluent helpers to apply the BaseUnit field to query operations.
    • PARTIAL_DELIVERY_IS_ALLOWED

      public static final CustomerMaterialField<String> PARTIAL_DELIVERY_IS_ALLOWED
      Use with available fluent helpers to apply the PartialDeliveryIsAllowed field to query operations.
    • MAX_NMBR_OF_PARTIAL_DELIVERY

      public static final CustomerMaterialField<BigDecimal> MAX_NMBR_OF_PARTIAL_DELIVERY
      Use with available fluent helpers to apply the MaxNmbrOfPartialDelivery field to query operations.
    • UNDERDELIV_TOLRTD_LMT_RATIO_IN_PCT

      public static final CustomerMaterialField<BigDecimal> UNDERDELIV_TOLRTD_LMT_RATIO_IN_PCT
      Use with available fluent helpers to apply the UnderdelivTolrtdLmtRatioInPct field to query operations.
    • OVERDELIV_TOLRTD_LMT_RATIO_IN_PCT

      public static final CustomerMaterialField<BigDecimal> OVERDELIV_TOLRTD_LMT_RATIO_IN_PCT
      Use with available fluent helpers to apply the OverdelivTolrtdLmtRatioInPct field to query operations.
    • UNLIMITED_OVERDELIVERY_IS_ALLOWED

      public static final CustomerMaterialField<Boolean> UNLIMITED_OVERDELIVERY_IS_ALLOWED
      Use with available fluent helpers to apply the UnlimitedOverdeliveryIsAllowed field to query operations.
    • CUSTOMER_MATERIAL_ITEM_USAGE

      public static final CustomerMaterialField<String> CUSTOMER_MATERIAL_ITEM_USAGE
      Use with available fluent helpers to apply the CustomerMaterialItemUsage field to query operations.
    • SALES_UNIT

      public static final CustomerMaterialField<String> SALES_UNIT
      Use with available fluent helpers to apply the SalesUnit field to query operations.
    • SALES_QTY_TO_BASE_QTY_DNMNTR

      public static final CustomerMaterialField<BigDecimal> SALES_QTY_TO_BASE_QTY_DNMNTR
      Use with available fluent helpers to apply the SalesQtyToBaseQtyDnmntr field to query operations.
    • SALES_QTY_TO_BASE_QTY_NMRTR

      public static final CustomerMaterialField<BigDecimal> SALES_QTY_TO_BASE_QTY_NMRTR
      Use with available fluent helpers to apply the SalesQtyToBaseQtyNmrtr field to query operations.
    • CUSTOMER_MATERIAL_SEARCH_TERM

      public static final CustomerMaterialField<String> CUSTOMER_MATERIAL_SEARCH_TERM
      Use with available fluent helpers to apply the CustomerMaterialSearchTerm field to query operations.
    • E_TAG

      public static final CustomerMaterialField<String> E_TAG
      Use with available fluent helpers to apply the ETag field to query operations.
  • Constructor Details

    • CustomerMaterial

      public CustomerMaterial()
    • CustomerMaterial

      public CustomerMaterial(@Nullable String salesOrganization, @Nullable String distributionChannel, @Nullable String customer, @Nullable String material, @Nullable String materialByCustomer, @Nullable String materialDescriptionByCustomer, @Nullable String plant, @Nullable String deliveryPriority, @Nullable BigDecimal minDeliveryQtyInBaseUnit, @Nullable String baseUnit, @Nullable String partialDeliveryIsAllowed, @Nullable BigDecimal maxNmbrOfPartialDelivery, @Nullable BigDecimal underdelivTolrtdLmtRatioInPct, @Nullable BigDecimal overdelivTolrtdLmtRatioInPct, @Nullable Boolean unlimitedOverdeliveryIsAllowed, @Nullable String customerMaterialItemUsage, @Nullable String salesUnit, @Nullable BigDecimal salesQtyToBaseQtyDnmntr, @Nullable BigDecimal salesQtyToBaseQtyNmrtr, @Nullable String customerMaterialSearchTerm, @Nullable String eTag)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SalesOrganization

      Parameters:
      salesOrganization - Sales Organization
    • setDistributionChannel

      public void setDistributionChannel(@Nullable String distributionChannel)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: DistributionChannel

      Parameters:
      distributionChannel - Distribution Channel
    • setCustomer

      public void setCustomer(@Nullable String customer)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Customer

      Parameters:
      customer - Customer number
    • setMaterial

      public void setMaterial(@Nullable String material)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Parameters:
      material - Product Number
    • setMaterialByCustomer

      public void setMaterialByCustomer(@Nullable String materialByCustomer)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: MaterialByCustomer

      Parameters:
      materialByCustomer - Material Number Used by Customer
    • setMaterialDescriptionByCustomer

      public void setMaterialDescriptionByCustomer(@Nullable String materialDescriptionByCustomer)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MaterialDescriptionByCustomer

      Parameters:
      materialDescriptionByCustomer - Customer Description of Material
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant (Own or External)
    • setDeliveryPriority

      public void setDeliveryPriority(@Nullable String deliveryPriority)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: DeliveryPriority

      Parameters:
      deliveryPriority - Delivery Priority
    • setMinDeliveryQtyInBaseUnit

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

      Original property name from the Odata EDM: MinDeliveryQtyInBaseUnit

      Parameters:
      minDeliveryQtyInBaseUnit - Minimum Delivery Quantity in Delivery Note Processing
    • 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
    • setPartialDeliveryIsAllowed

      public void setPartialDeliveryIsAllowed(@Nullable String partialDeliveryIsAllowed)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PartialDeliveryIsAllowed

      Parameters:
      partialDeliveryIsAllowed - Partial Delivery at Item Level
    • setMaxNmbrOfPartialDelivery

      public void setMaxNmbrOfPartialDelivery(@Nullable BigDecimal maxNmbrOfPartialDelivery)
      Constraints: Not nullable, Precision: 1, Scale: 0

      Original property name from the Odata EDM: MaxNmbrOfPartialDelivery

      Parameters:
      maxNmbrOfPartialDelivery - Maximum Number of Partial Deliveries Allowed Per Item
    • setUnderdelivTolrtdLmtRatioInPct

      public void setUnderdelivTolrtdLmtRatioInPct(@Nullable BigDecimal underdelivTolrtdLmtRatioInPct)
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: UnderdelivTolrtdLmtRatioInPct

      Parameters:
      underdelivTolrtdLmtRatioInPct - Underdelivery Tolerance
    • setOverdelivTolrtdLmtRatioInPct

      public void setOverdelivTolrtdLmtRatioInPct(@Nullable BigDecimal overdelivTolrtdLmtRatioInPct)
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: OverdelivTolrtdLmtRatioInPct

      Parameters:
      overdelivTolrtdLmtRatioInPct - Overdelivery Tolerance
    • setUnlimitedOverdeliveryIsAllowed

      public void setUnlimitedOverdeliveryIsAllowed(@Nullable Boolean unlimitedOverdeliveryIsAllowed)
      Constraints: none

      Original property name from the Odata EDM: UnlimitedOverdeliveryIsAllowed

      Parameters:
      unlimitedOverdeliveryIsAllowed - Unlimited Overdelivery Allowed
    • setCustomerMaterialItemUsage

      public void setCustomerMaterialItemUsage(@Nullable String customerMaterialItemUsage)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CustomerMaterialItemUsage

      Parameters:
      customerMaterialItemUsage - Item Usage
    • setSalesUnit

      public void setSalesUnit(@Nullable String salesUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SalesUnit

      Parameters:
      salesUnit - Sales Unit
    • setSalesQtyToBaseQtyDnmntr

      public void setSalesQtyToBaseQtyDnmntr(@Nullable BigDecimal salesQtyToBaseQtyDnmntr)
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: SalesQtyToBaseQtyDnmntr

      Parameters:
      salesQtyToBaseQtyDnmntr - Denominator (divisor) for conversion of sales Qty into SKU
    • setSalesQtyToBaseQtyNmrtr

      public void setSalesQtyToBaseQtyNmrtr(@Nullable BigDecimal salesQtyToBaseQtyNmrtr)
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: SalesQtyToBaseQtyNmrtr

      Parameters:
      salesQtyToBaseQtyNmrtr - Numerator (factor) for conversion of sales quantity into SKU
    • setCustomerMaterialSearchTerm

      public void setCustomerMaterialSearchTerm(@Nullable String customerMaterialSearchTerm)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CustomerMaterialSearchTerm

      Parameters:
      customerMaterialSearchTerm - Sort Field
    • setETag

      public void setETag(@Nullable String eTag)
      Constraints: Not nullable, Maximum length: 27

      Original property name from the Odata EDM: ETag

      Parameters:
      eTag - ETag
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CustomerMaterialField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      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.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> CustomerMaterialField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<CustomerMaterial>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<CustomerMaterial>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<CustomerMaterial>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<CustomerMaterial>
    • builder

      @Nonnull public static CustomerMaterial.CustomerMaterialBuilder builder()
    • getSalesOrganization

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

      Original property name from the Odata EDM: SalesOrganization

      Returns:
      Sales Organization
    • getDistributionChannel

      @Nullable public String getDistributionChannel()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: DistributionChannel

      Returns:
      Distribution Channel
    • getCustomer

      @Nullable public String getCustomer()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Customer

      Returns:
      Customer number
    • getMaterial

      @Nullable public String getMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Returns:
      Product Number
    • getMaterialByCustomer

      @Nullable public String getMaterialByCustomer()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: MaterialByCustomer

      Returns:
      Material Number Used by Customer
    • getMaterialDescriptionByCustomer

      @Nullable public String getMaterialDescriptionByCustomer()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MaterialDescriptionByCustomer

      Returns:
      Customer Description of Material
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant (Own or External)
    • getDeliveryPriority

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

      Original property name from the Odata EDM: DeliveryPriority

      Returns:
      Delivery Priority
    • getMinDeliveryQtyInBaseUnit

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

      Original property name from the Odata EDM: MinDeliveryQtyInBaseUnit

      Returns:
      Minimum Delivery Quantity in Delivery Note Processing
    • getBaseUnit

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

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getPartialDeliveryIsAllowed

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

      Original property name from the Odata EDM: PartialDeliveryIsAllowed

      Returns:
      Partial Delivery at Item Level
    • getMaxNmbrOfPartialDelivery

      @Nullable public BigDecimal getMaxNmbrOfPartialDelivery()
      Constraints: Not nullable, Precision: 1, Scale: 0

      Original property name from the Odata EDM: MaxNmbrOfPartialDelivery

      Returns:
      Maximum Number of Partial Deliveries Allowed Per Item
    • getUnderdelivTolrtdLmtRatioInPct

      @Nullable public BigDecimal getUnderdelivTolrtdLmtRatioInPct()
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: UnderdelivTolrtdLmtRatioInPct

      Returns:
      Underdelivery Tolerance
    • getOverdelivTolrtdLmtRatioInPct

      @Nullable public BigDecimal getOverdelivTolrtdLmtRatioInPct()
      Constraints: Not nullable, Precision: 3, Scale: 1

      Original property name from the Odata EDM: OverdelivTolrtdLmtRatioInPct

      Returns:
      Overdelivery Tolerance
    • getUnlimitedOverdeliveryIsAllowed

      @Nullable public Boolean getUnlimitedOverdeliveryIsAllowed()
      Constraints: none

      Original property name from the Odata EDM: UnlimitedOverdeliveryIsAllowed

      Returns:
      Unlimited Overdelivery Allowed
    • getCustomerMaterialItemUsage

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

      Original property name from the Odata EDM: CustomerMaterialItemUsage

      Returns:
      Item Usage
    • getSalesUnit

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

      Original property name from the Odata EDM: SalesUnit

      Returns:
      Sales Unit
    • getSalesQtyToBaseQtyDnmntr

      @Nullable public BigDecimal getSalesQtyToBaseQtyDnmntr()
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: SalesQtyToBaseQtyDnmntr

      Returns:
      Denominator (divisor) for conversion of sales Qty into SKU
    • getSalesQtyToBaseQtyNmrtr

      @Nullable public BigDecimal getSalesQtyToBaseQtyNmrtr()
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: SalesQtyToBaseQtyNmrtr

      Returns:
      Numerator (factor) for conversion of sales quantity into SKU
    • getCustomerMaterialSearchTerm

      @Nullable public String getCustomerMaterialSearchTerm()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CustomerMaterialSearchTerm

      Returns:
      Sort Field
    • getETag

      @Nullable public String getETag()
      Constraints: Not nullable, Maximum length: 27

      Original property name from the Odata EDM: ETag

      Returns:
      ETag
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<CustomerMaterial>