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

public class CostRevnRcvrPrftbltySegment extends VdmEntity<CostRevnRcvrPrftbltySegment>
Cost Reassignment Receiver Profitability Segment

Original entity name from the Odata EDM: CostRevnRcvrPrftbltySegment_Type

  • Field Details

  • Constructor Details

    • CostRevnRcvrPrftbltySegment

      public CostRevnRcvrPrftbltySegment()
    • CostRevnRcvrPrftbltySegment

      public CostRevnRcvrPrftbltySegment(@Nullable String fiscalYear, @Nullable String referenceDocument, @Nullable String controllingArea, @Nullable String ledgerGLLineItem, @Nullable String referenceDocumentItem, @Nullable String transactionSubitem, @Nullable String companyCode, @Nullable String customer, @Nullable String customerGroup, @Nullable String customerSupplierIndustry, @Nullable String customerSupplierCountry, @Nullable String salesDistrict, @Nullable String soldProduct, @Nullable String soldProductGroup, @Nullable String salesOrganization, @Nullable String distributionChannel, @Nullable String organizationDivision, @Nullable String billToParty, @Nullable String shipToParty, @Nullable String wBSElementExternalID, @Nullable String serviceDocumentType, @Nullable String serviceDocument, @Nullable String serviceDocumentItem, @Nullable String functionalArea, @Nullable CostRevenueReassignmentItem toItem)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: FiscalYear

      Parameters:
      fiscalYear - Fiscal Year
    • setReferenceDocument

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

      Original property name from the Odata EDM: ReferenceDocument

      Parameters:
      referenceDocument - Reference Document Number
    • setControllingArea

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

      Original property name from the Odata EDM: ControllingArea

      Parameters:
      controllingArea - Controlling Area
    • setLedgerGLLineItem

      public void setLedgerGLLineItem(@Nullable String ledgerGLLineItem)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LedgerGLLineItem

      Parameters:
      ledgerGLLineItem - Ledger Journal Entry Item
    • setReferenceDocumentItem

      public void setReferenceDocumentItem(@Nullable String referenceDocumentItem)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ReferenceDocumentItem

      Parameters:
      referenceDocumentItem - Reference Document Item
    • setTransactionSubitem

      public void setTransactionSubitem(@Nullable String transactionSubitem)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: TransactionSubitem

      Parameters:
      transactionSubitem - Partial Document to be balanced to zero
    • setCompanyCode

      public void setCompanyCode(@Nullable String companyCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setCustomer

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

      Original property name from the Odata EDM: Customer

      Parameters:
      customer - Customer Number
    • setCustomerGroup

      public void setCustomerGroup(@Nullable String customerGroup)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CustomerGroup

      Parameters:
      customerGroup - Customer Group
    • setCustomerSupplierIndustry

      public void setCustomerSupplierIndustry(@Nullable String customerSupplierIndustry)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CustomerSupplierIndustry

      Parameters:
      customerSupplierIndustry - Customer Supplier Industry
    • setCustomerSupplierCountry

      public void setCustomerSupplierCountry(@Nullable String customerSupplierCountry)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CustomerSupplierCountry

      Parameters:
      customerSupplierCountry - Customer or Supplier Country/Region
    • setSalesDistrict

      public void setSalesDistrict(@Nullable String salesDistrict)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesDistrict

      Parameters:
      salesDistrict - Sales District
    • setSoldProduct

      public void setSoldProduct(@Nullable String soldProduct)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SoldProduct

      Parameters:
      soldProduct - Product Sold
    • setSoldProductGroup

      public void setSoldProductGroup(@Nullable String soldProductGroup)
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: SoldProductGroup

      Parameters:
      soldProductGroup - Product Sold Group
    • setSalesOrganization

      public void setSalesOrganization(@Nullable String salesOrganization)
      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)
      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)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: OrganizationDivision

      Parameters:
      organizationDivision - Division
    • setBillToParty

      public void setBillToParty(@Nullable String billToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BillToParty

      Parameters:
      billToParty - Bill-to Party
    • setShipToParty

      public void setShipToParty(@Nullable String shipToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ShipToParty

      Parameters:
      shipToParty - Ship-to Party
    • setWBSElementExternalID

      public void setWBSElementExternalID(@Nullable String wBSElementExternalID)
      Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: WBSElementExternalID

      Parameters:
      wBSElementExternalID - WBS Element External ID
    • setServiceDocumentType

      public void setServiceDocumentType(@Nullable String serviceDocumentType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceDocumentType

      Parameters:
      serviceDocumentType - Service Document Type
    • setServiceDocument

      public void setServiceDocument(@Nullable String serviceDocument)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ServiceDocument

      Parameters:
      serviceDocument - Service Document ID
    • setServiceDocumentItem

      public void setServiceDocumentItem(@Nullable String serviceDocumentItem)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ServiceDocumentItem

      Parameters:
      serviceDocumentItem - Service Document Item ID
    • setFunctionalArea

      public void setFunctionalArea(@Nullable String functionalArea)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: FunctionalArea

      Parameters:
      functionalArea - Functional Area
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CostRevnRcvrPrftbltySegmentField<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> CostRevnRcvrPrftbltySegmentField<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<CostRevnRcvrPrftbltySegment>
    • setServicePathForFetch

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

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

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

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

      @Nullable public CostRevenueReassignmentItem fetchItem()
      Fetches the CostRevenueReassignmentItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Item.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated CostRevenueReassignmentItem entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.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.
    • getItemOrFetch

      @Nullable public CostRevenueReassignmentItem getItemOrFetch()
      Retrieval of associated CostRevenueReassignmentItem entity (one to one). This corresponds to the OData navigation property to_Item.

      If the navigation property to_Item of a queried CostRevnRcvrPrftbltySegment 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.

      Returns:
      List of associated CostRevenueReassignmentItem entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.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.
    • getItemIfPresent

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

      If the navigation property for an entity CostRevnRcvrPrftbltySegment 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 to_Item is already loaded, the result will contain the CostRevenueReassignmentItem entity. If not, an Option with result state empty is returned.
    • setItem

      public void setItem(CostRevenueReassignmentItem value)
      Overwrites the associated CostRevenueReassignmentItem entity for the loaded navigation property to_Item.
      Parameters:
      value - New CostRevenueReassignmentItem entity.
    • builder

    • getFiscalYear

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

      Original property name from the Odata EDM: FiscalYear

      Returns:
      Fiscal Year
    • getReferenceDocument

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

      Original property name from the Odata EDM: ReferenceDocument

      Returns:
      Reference Document Number
    • getControllingArea

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

      Original property name from the Odata EDM: ControllingArea

      Returns:
      Controlling Area
    • getLedgerGLLineItem

      @Nullable public String getLedgerGLLineItem()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LedgerGLLineItem

      Returns:
      Ledger Journal Entry Item
    • getReferenceDocumentItem

      @Nullable public String getReferenceDocumentItem()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ReferenceDocumentItem

      Returns:
      Reference Document Item
    • getTransactionSubitem

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

      Original property name from the Odata EDM: TransactionSubitem

      Returns:
      Partial Document to be balanced to zero
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getCustomer

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

      Original property name from the Odata EDM: Customer

      Returns:
      Customer Number
    • getCustomerGroup

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

      Original property name from the Odata EDM: CustomerGroup

      Returns:
      Customer Group
    • getCustomerSupplierIndustry

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

      Original property name from the Odata EDM: CustomerSupplierIndustry

      Returns:
      Customer Supplier Industry
    • getCustomerSupplierCountry

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

      Original property name from the Odata EDM: CustomerSupplierCountry

      Returns:
      Customer or Supplier Country/Region
    • getSalesDistrict

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

      Original property name from the Odata EDM: SalesDistrict

      Returns:
      Sales District
    • getSoldProduct

      @Nullable public String getSoldProduct()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SoldProduct

      Returns:
      Product Sold
    • getSoldProductGroup

      @Nullable public String getSoldProductGroup()
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: SoldProductGroup

      Returns:
      Product Sold Group
    • getSalesOrganization

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

      Original property name from the Odata EDM: SalesOrganization

      Returns:
      Sales Organization
    • getDistributionChannel

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

      Original property name from the Odata EDM: DistributionChannel

      Returns:
      Distribution Channel
    • getOrganizationDivision

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

      Original property name from the Odata EDM: OrganizationDivision

      Returns:
      Division
    • getBillToParty

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

      Original property name from the Odata EDM: BillToParty

      Returns:
      Bill-to Party
    • getShipToParty

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

      Original property name from the Odata EDM: ShipToParty

      Returns:
      Ship-to Party
    • getWBSElementExternalID

      @Nullable public String getWBSElementExternalID()
      Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: WBSElementExternalID

      Returns:
      WBS Element External ID
    • getServiceDocumentType

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

      Original property name from the Odata EDM: ServiceDocumentType

      Returns:
      Service Document Type
    • getServiceDocument

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

      Original property name from the Odata EDM: ServiceDocument

      Returns:
      Service Document ID
    • getServiceDocumentItem

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

      Original property name from the Odata EDM: ServiceDocumentItem

      Returns:
      Service Document Item ID
    • getFunctionalArea

      @Nullable public String getFunctionalArea()
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: FunctionalArea

      Returns:
      Functional Area
    • toString

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

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

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

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