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

public class SalesDocumentProposalItem extends VdmEntity<SalesDocumentProposalItem>
Product Proposal for Sales Order Item

Original entity name from the Odata EDM: A_SalesDocumentProposalItemType

  • Field Details

  • Constructor Details

    • SalesDocumentProposalItem

      public SalesDocumentProposalItem()
    • SalesDocumentProposalItem

      public SalesDocumentProposalItem(@Nullable String salesOrganization, @Nullable String distributionChannel, @Nullable String organizationDivision, @Nullable String salesGroup, @Nullable String salesOffice, @Nullable String soldToParty, @Nullable String salesDocumentType, @Nullable String product, @Nullable String batch, @Nullable BigDecimal orderQuantity, @Nullable String orderQuantityUnit)
  • Method Details

    • getType

      @Nonnull public Class<SalesDocumentProposalItem> getType()
      Specified by:
      getType in class VdmObject<SalesDocumentProposalItem>
    • 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
    • setOrganizationDivision

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

      Original property name from the Odata EDM: OrganizationDivision

      Parameters:
      organizationDivision - Division
    • setSalesGroup

      public void setSalesGroup(@Nullable String salesGroup)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SalesGroup

      Parameters:
      salesGroup - Sales Group
    • setSalesOffice

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

      Original property name from the Odata EDM: SalesOffice

      Parameters:
      salesOffice - Sales Office
    • setSoldToParty

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

      Original property name from the Odata EDM: SoldToParty

      Parameters:
      soldToParty - Customer Number
    • setSalesDocumentType

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

      Original property name from the Odata EDM: SalesDocumentType

      Parameters:
      salesDocumentType - Sales Document Type
    • setProduct

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

      Original property name from the Odata EDM: Product

      Parameters:
      product - Material Number
    • setBatch

      public void setBatch(@Nullable String batch)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Batch

      Parameters:
      batch - Batch Number
    • setOrderQuantity

      public void setOrderQuantity(@Nullable BigDecimal orderQuantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: OrderQuantity

      Parameters:
      orderQuantity - Item proposal quantity
    • setOrderQuantityUnit

      public void setOrderQuantityUnit(@Nullable String orderQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: OrderQuantityUnit

      Parameters:
      orderQuantityUnit - Sales Unit
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SalesDocumentProposalItemField<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> SalesDocumentProposalItemField<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<SalesDocumentProposalItem>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<SalesDocumentProposalItem>
    • 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
    • getOrganizationDivision

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

      Original property name from the Odata EDM: OrganizationDivision

      Returns:
      Division
    • getSalesGroup

      @Nullable public String getSalesGroup()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SalesGroup

      Returns:
      Sales Group
    • getSalesOffice

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

      Original property name from the Odata EDM: SalesOffice

      Returns:
      Sales Office
    • getSoldToParty

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

      Original property name from the Odata EDM: SoldToParty

      Returns:
      Customer Number
    • getSalesDocumentType

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

      Original property name from the Odata EDM: SalesDocumentType

      Returns:
      Sales Document Type
    • getProduct

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

      Original property name from the Odata EDM: Product

      Returns:
      Material Number
    • getBatch

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

      Original property name from the Odata EDM: Batch

      Returns:
      Batch Number
    • getOrderQuantity

      @Nullable public BigDecimal getOrderQuantity()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: OrderQuantity

      Returns:
      Item proposal quantity
    • getOrderQuantityUnit

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

      Original property name from the Odata EDM: OrderQuantityUnit

      Returns:
      Sales Unit
    • toString

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

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

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

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