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

public class CntrlPurContrHdrDistribution extends VdmEntity<CntrlPurContrHdrDistribution>
Header Distribution

Original entity name from the Odata EDM: A_CntrlPurContrHdrDistributionType

  • Field Details

    • ALL_FIELDS

      public static final CntrlPurContrHdrDistributionSelectable ALL_FIELDS
      Selector for all available fields of CntrlPurContrHdrDistribution.
    • CENTRAL_PURCHASE_CONTRACT

      public static final CntrlPurContrHdrDistributionField<String> CENTRAL_PURCHASE_CONTRACT
      Use with available fluent helpers to apply the CentralPurchaseContract field to query operations.
    • DISTRIBUTION_KEY

      public static final CntrlPurContrHdrDistributionField<String> DISTRIBUTION_KEY
      Use with available fluent helpers to apply the DistributionKey field to query operations.
    • CENTRAL_PURCHASE_CONTRACT_ITEM

      public static final CntrlPurContrHdrDistributionField<String> CENTRAL_PURCHASE_CONTRACT_ITEM
      Use with available fluent helpers to apply the CentralPurchaseContractItem field to query operations.
    • PROCMT_HUB_COMPANY_CODE

      public static final CntrlPurContrHdrDistributionField<String> PROCMT_HUB_COMPANY_CODE
      Use with available fluent helpers to apply the ProcmtHubCompanyCode field to query operations.
    • PROCMT_HUB_PLANT

      public static final CntrlPurContrHdrDistributionField<String> PROCMT_HUB_PLANT
      Use with available fluent helpers to apply the ProcmtHubPlant field to query operations.
    • PROCMT_HUB_PURCHASING_ORG

      public static final CntrlPurContrHdrDistributionField<String> PROCMT_HUB_PURCHASING_ORG
      Use with available fluent helpers to apply the ProcmtHubPurchasingOrg field to query operations.
    • PROCMT_HUB_PURCHASING_GROUP

      public static final CntrlPurContrHdrDistributionField<String> PROCMT_HUB_PURCHASING_GROUP
      Use with available fluent helpers to apply the ProcmtHubPurchasingGroup field to query operations.
    • PROCMT_HUB_COMPANY_CODE_GROUPING_ID

      public static final CntrlPurContrHdrDistributionField<String> PROCMT_HUB_COMPANY_CODE_GROUPING_ID
      Use with available fluent helpers to apply the ProcmtHubCompanyCodeGroupingID field to query operations.
    • CNTRL_PUR_CONTR_DISTR_CURRENCY

      public static final CntrlPurContrHdrDistributionField<String> CNTRL_PUR_CONTR_DISTR_CURRENCY
      Use with available fluent helpers to apply the CntrlPurContrDistrCurrency field to query operations.
    • PAYMENT_TERMS

      public static final CntrlPurContrHdrDistributionField<String> PAYMENT_TERMS
      Use with available fluent helpers to apply the PaymentTerms field to query operations.
    • CASH_DISCOUNT1_DAYS

      public static final CntrlPurContrHdrDistributionField<BigDecimal> CASH_DISCOUNT1_DAYS
      Use with available fluent helpers to apply the CashDiscount1Days field to query operations.
    • CASH_DISCOUNT2_DAYS

      public static final CntrlPurContrHdrDistributionField<BigDecimal> CASH_DISCOUNT2_DAYS
      Use with available fluent helpers to apply the CashDiscount2Days field to query operations.
    • NET_PAYMENT_DAYS

      public static final CntrlPurContrHdrDistributionField<BigDecimal> NET_PAYMENT_DAYS
      Use with available fluent helpers to apply the NetPaymentDays field to query operations.
    • CASH_DISCOUNT1_PERCENT

      public static final CntrlPurContrHdrDistributionField<BigDecimal> CASH_DISCOUNT1_PERCENT
      Use with available fluent helpers to apply the CashDiscount1Percent field to query operations.
    • CASH_DISCOUNT2_PERCENT

      public static final CntrlPurContrHdrDistributionField<BigDecimal> CASH_DISCOUNT2_PERCENT
      Use with available fluent helpers to apply the CashDiscount2Percent field to query operations.
    • PURCHASING_DOCUMENT_CATEGORY

      public static final CntrlPurContrHdrDistributionField<String> PURCHASING_DOCUMENT_CATEGORY
      Use with available fluent helpers to apply the PurchasingDocumentCategory field to query operations.
    • PURCHASING_DOCUMENT_TYPE

      public static final CntrlPurContrHdrDistributionField<String> PURCHASING_DOCUMENT_TYPE
      Use with available fluent helpers to apply the PurchasingDocumentType field to query operations.
    • STORAGE_LOCATION

      public static final CntrlPurContrHdrDistributionField<String> STORAGE_LOCATION
      Use with available fluent helpers to apply the StorageLocation field to query operations.
    • CNTRL_PUR_CONTR_DISTRIBUTION_PCT

      public static final CntrlPurContrHdrDistributionField<BigDecimal> CNTRL_PUR_CONTR_DISTRIBUTION_PCT
      Use with available fluent helpers to apply the CntrlPurContrDistributionPct field to query operations.
    • INCOTERMS_CLASSIFICATION

      public static final CntrlPurContrHdrDistributionField<String> INCOTERMS_CLASSIFICATION
      Use with available fluent helpers to apply the IncotermsClassification field to query operations.
    • INCOTERMS_LOCATION1

      public static final CntrlPurContrHdrDistributionField<String> INCOTERMS_LOCATION1
      Use with available fluent helpers to apply the IncotermsLocation1 field to query operations.
    • SHIPPING_INSTRUCTION

      public static final CntrlPurContrHdrDistributionField<String> SHIPPING_INSTRUCTION
      Use with available fluent helpers to apply the ShippingInstruction field to query operations.
    • CNTRL_PUR_CONTR_ITM_DISTR_AMT

      public static final CntrlPurContrHdrDistributionField<BigDecimal> CNTRL_PUR_CONTR_ITM_DISTR_AMT
      Use with available fluent helpers to apply the CntrlPurContrItmDistrAmt field to query operations.
    • PROCUREMENT_HUB_SOURCE_SYSTEM

      public static final CntrlPurContrHdrDistributionField<String> PROCUREMENT_HUB_SOURCE_SYSTEM
      Use with available fluent helpers to apply the ProcurementHubSourceSystem field to query operations.
    • IS_DELETED

      public static final CntrlPurContrHdrDistributionField<Boolean> IS_DELETED
      Use with available fluent helpers to apply the IsDeleted field to query operations.
    • PURCHASING_INFO_RECORD_UPDATE_CODE

      public static final CntrlPurContrHdrDistributionField<String> PURCHASING_INFO_RECORD_UPDATE_CODE
      Use with available fluent helpers to apply the PurchasingInfoRecordUpdateCode field to query operations.
    • SOURCE_LIST_IS_UPDATED

      public static final CntrlPurContrHdrDistributionField<Boolean> SOURCE_LIST_IS_UPDATED
      Use with available fluent helpers to apply the SourceListIsUpdated field to query operations.
    • SOURCE_LIST_RESTRICTION

      public static final CntrlPurContrHdrDistributionField<String> SOURCE_LIST_RESTRICTION
      Use with available fluent helpers to apply the SourceListRestriction field to query operations.
    • REFERENCE_DISTRIBUTION_NUMBER

      public static final CntrlPurContrHdrDistributionField<String> REFERENCE_DISTRIBUTION_NUMBER
      Use with available fluent helpers to apply the ReferenceDistributionNumber field to query operations.
    • TO_CENTRAL_PURCHASE_CONTRACT

      public static final CntrlPurContrHdrDistributionOneToOneLink<CentralPurchaseContract> TO_CENTRAL_PURCHASE_CONTRACT
      Use with available fluent helpers to apply the to_CentralPurchaseContract navigation property to query operations.
    • TO_CNTRL_PUR_CONTR_HEADER_PARTNER

      public static final CntrlPurContrHdrDistributionLink<CntrlPurContrHeaderPartner> TO_CNTRL_PUR_CONTR_HEADER_PARTNER
      Use with available fluent helpers to apply the to_CntrlPurContrHeaderPartner navigation property to query operations.
  • Constructor Details

    • CntrlPurContrHdrDistribution

      public CntrlPurContrHdrDistribution()
    • CntrlPurContrHdrDistribution

      public CntrlPurContrHdrDistribution(@Nullable String centralPurchaseContract, @Nullable String distributionKey, @Nullable String centralPurchaseContractItem, @Nullable String procmtHubCompanyCode, @Nullable String procmtHubPlant, @Nullable String procmtHubPurchasingOrg, @Nullable String procmtHubPurchasingGroup, @Nullable String procmtHubCompanyCodeGroupingID, @Nullable String cntrlPurContrDistrCurrency, @Nullable String paymentTerms, @Nullable BigDecimal cashDiscount1Days, @Nullable BigDecimal cashDiscount2Days, @Nullable BigDecimal netPaymentDays, @Nullable BigDecimal cashDiscount1Percent, @Nullable BigDecimal cashDiscount2Percent, @Nullable String purchasingDocumentCategory, @Nullable String purchasingDocumentType, @Nullable String storageLocation, @Nullable BigDecimal cntrlPurContrDistributionPct, @Nullable String incotermsClassification, @Nullable String incotermsLocation1, @Nullable String shippingInstruction, @Nullable BigDecimal cntrlPurContrItmDistrAmt, @Nullable String procurementHubSourceSystem, @Nullable Boolean isDeleted, @Nullable String purchasingInfoRecordUpdateCode, @Nullable Boolean sourceListIsUpdated, @Nullable String sourceListRestriction, @Nullable String referenceDistributionNumber, @Nullable CentralPurchaseContract toCentralPurchaseContract, List<CntrlPurContrHeaderPartner> toCntrlPurContrHeaderPartner)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Parameters:
      centralPurchaseContract - Purchasing Document Number
    • setDistributionKey

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

      Original property name from the Odata EDM: DistributionKey

      Parameters:
      distributionKey - Distribution Number of Central Purchasing Document
    • setCentralPurchaseContractItem

      public void setCentralPurchaseContractItem(@Nullable String centralPurchaseContractItem)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CentralPurchaseContractItem

      Parameters:
      centralPurchaseContractItem - Item Number of Purchasing Document
    • setProcmtHubCompanyCode

      public void setProcmtHubCompanyCode(@Nullable String procmtHubCompanyCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProcmtHubCompanyCode

      Parameters:
      procmtHubCompanyCode - Company Code
    • setProcmtHubPlant

      public void setProcmtHubPlant(@Nullable String procmtHubPlant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProcmtHubPlant

      Parameters:
      procmtHubPlant - Plant
    • setProcmtHubPurchasingOrg

      public void setProcmtHubPurchasingOrg(@Nullable String procmtHubPurchasingOrg)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProcmtHubPurchasingOrg

      Parameters:
      procmtHubPurchasingOrg - Purchasing Organization
    • setProcmtHubPurchasingGroup

      public void setProcmtHubPurchasingGroup(@Nullable String procmtHubPurchasingGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProcmtHubPurchasingGroup

      Parameters:
      procmtHubPurchasingGroup - Purchasing Group
    • setProcmtHubCompanyCodeGroupingID

      public void setProcmtHubCompanyCodeGroupingID(@Nullable String procmtHubCompanyCodeGroupingID)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProcmtHubCompanyCodeGroupingID

      Parameters:
      procmtHubCompanyCodeGroupingID - Grouping ID for Company Codes
    • setCntrlPurContrDistrCurrency

      public void setCntrlPurContrDistrCurrency(@Nullable String cntrlPurContrDistrCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CntrlPurContrDistrCurrency

      Parameters:
      cntrlPurContrDistrCurrency - Currency Key
    • setPaymentTerms

      public void setPaymentTerms(@Nullable String paymentTerms)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PaymentTerms

      Parameters:
      paymentTerms - Terms of Payment Key
    • setCashDiscount1Days

      public void setCashDiscount1Days(@Nullable BigDecimal cashDiscount1Days)
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: CashDiscount1Days

      Parameters:
      cashDiscount1Days - Cash discount days 1
    • setCashDiscount2Days

      public void setCashDiscount2Days(@Nullable BigDecimal cashDiscount2Days)
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: CashDiscount2Days

      Parameters:
      cashDiscount2Days - Cash discount days 2
    • setNetPaymentDays

      public void setNetPaymentDays(@Nullable BigDecimal netPaymentDays)
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: NetPaymentDays

      Parameters:
      netPaymentDays - Net Payment Terms Period
    • setCashDiscount1Percent

      public void setCashDiscount1Percent(@Nullable BigDecimal cashDiscount1Percent)
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount1Percent

      Parameters:
      cashDiscount1Percent - Cash Discount Percentage 1
    • setCashDiscount2Percent

      public void setCashDiscount2Percent(@Nullable BigDecimal cashDiscount2Percent)
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount2Percent

      Parameters:
      cashDiscount2Percent - Cash Discount Percentage 2
    • setPurchasingDocumentCategory

      public void setPurchasingDocumentCategory(@Nullable String purchasingDocumentCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchasingDocumentCategory

      Parameters:
      purchasingDocumentCategory - Purchasing Document Category
    • setPurchasingDocumentType

      public void setPurchasingDocumentType(@Nullable String purchasingDocumentType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingDocumentType

      Parameters:
      purchasingDocumentType - Purchasing Document Type
    • setStorageLocation

      public void setStorageLocation(@Nullable String storageLocation)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: StorageLocation

      Parameters:
      storageLocation - Storage Location
    • setCntrlPurContrDistributionPct

      public void setCntrlPurContrDistributionPct(@Nullable BigDecimal cntrlPurContrDistributionPct)
      Constraints: Not nullable, Precision: 6, Scale: 3

      Original property name from the Odata EDM: CntrlPurContrDistributionPct

      Parameters:
      cntrlPurContrDistributionPct - Distribution Percentage in Central Purchasing Document
    • setIncotermsClassification

      public void setIncotermsClassification(@Nullable String incotermsClassification)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: IncotermsClassification

      Parameters:
      incotermsClassification - Incoterms (Part 1)
    • setIncotermsLocation1

      public void setIncotermsLocation1(@Nullable String incotermsLocation1)
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: IncotermsLocation1

      Parameters:
      incotermsLocation1 - Incoterms Location 1
    • setShippingInstruction

      public void setShippingInstruction(@Nullable String shippingInstruction)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ShippingInstruction

      Parameters:
      shippingInstruction - Shipping Instructions
    • setCntrlPurContrItmDistrAmt

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

      Original property name from the Odata EDM: CntrlPurContrItmDistrAmt

      Parameters:
      cntrlPurContrItmDistrAmt - Target Value for Header Area per Distribution
    • setProcurementHubSourceSystem

      public void setProcurementHubSourceSystem(@Nullable String procurementHubSourceSystem)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Parameters:
      procurementHubSourceSystem - Logical System
    • setIsDeleted

      public void setIsDeleted(@Nullable Boolean isDeleted)
      Constraints: none

      Original property name from the Odata EDM: IsDeleted

      Parameters:
      isDeleted - Boolean Variable (X = True, - = False, Space = Unknown)
    • setPurchasingInfoRecordUpdateCode

      public void setPurchasingInfoRecordUpdateCode(@Nullable String purchasingInfoRecordUpdateCode)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchasingInfoRecordUpdateCode

      Parameters:
      purchasingInfoRecordUpdateCode - Indicator: Update Info Record
    • setSourceListIsUpdated

      public void setSourceListIsUpdated(@Nullable Boolean sourceListIsUpdated)
      Constraints: none

      Original property name from the Odata EDM: SourceListIsUpdated

      Parameters:
      sourceListIsUpdated - Checkbox
    • setSourceListRestriction

      public void setSourceListRestriction(@Nullable String sourceListRestriction)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourceListRestriction

      Parameters:
      sourceListRestriction - Source List Restriction Indicator
    • setReferenceDistributionNumber

      public void setReferenceDistributionNumber(@Nullable String referenceDistributionNumber)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ReferenceDistributionNumber

      Parameters:
      referenceDistributionNumber - Distribution Number of Central Purchasing Document
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CntrlPurContrHdrDistributionField<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> CntrlPurContrHdrDistributionField<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<CntrlPurContrHdrDistribution>
    • setServicePathForFetch

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

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

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

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

      @Nullable public CentralPurchaseContract fetchCentralPurchaseContract()
      Fetches the CentralPurchaseContract entity (one to one) associated with this entity. This corresponds to the OData navigation property to_CentralPurchaseContract.

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

      Returns:
      The single associated CentralPurchaseContract 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.
    • getCentralPurchaseContractOrFetch

      @Nullable public CentralPurchaseContract getCentralPurchaseContractOrFetch()
      Retrieval of associated CentralPurchaseContract entity (one to one). This corresponds to the OData navigation property to_CentralPurchaseContract.

      If the navigation property to_CentralPurchaseContract of a queried CntrlPurContrHdrDistribution 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 CentralPurchaseContract 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.
    • getCentralPurchaseContractIfPresent

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

      If the navigation property for an entity CntrlPurContrHdrDistribution 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_CentralPurchaseContract is already loaded, the result will contain the CentralPurchaseContract entity. If not, an Option with result state empty is returned.
    • setCentralPurchaseContract

      public void setCentralPurchaseContract(CentralPurchaseContract value)
      Overwrites the associated CentralPurchaseContract entity for the loaded navigation property to_CentralPurchaseContract.
      Parameters:
      value - New CentralPurchaseContract entity.
    • fetchCntrlPurContrHeaderPartner

      @Nonnull public List<CntrlPurContrHeaderPartner> fetchCntrlPurContrHeaderPartner()
      Fetches the CntrlPurContrHeaderPartner entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CntrlPurContrHeaderPartner.

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

      Returns:
      List containing one or more associated CntrlPurContrHeaderPartner entities. If no entities are associated then an empty list is returned.
      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.
    • getCntrlPurContrHeaderPartnerOrFetch

      @Nonnull public List<CntrlPurContrHeaderPartner> getCntrlPurContrHeaderPartnerOrFetch()
      Retrieval of associated CntrlPurContrHeaderPartner entities (one to many). This corresponds to the OData navigation property to_CntrlPurContrHeaderPartner.

      If the navigation property to_CntrlPurContrHeaderPartner of a queried CntrlPurContrHdrDistribution 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 CntrlPurContrHeaderPartner entities.
      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.
    • getCntrlPurContrHeaderPartnerIfPresent

      @Nonnull public io.vavr.control.Option<List<CntrlPurContrHeaderPartner>> getCntrlPurContrHeaderPartnerIfPresent()
      Retrieval of associated CntrlPurContrHeaderPartner entities (one to many). This corresponds to the OData navigation property to_CntrlPurContrHeaderPartner.

      If the navigation property for an entity CntrlPurContrHdrDistribution 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_CntrlPurContrHeaderPartner is already loaded, the result will contain the CntrlPurContrHeaderPartner entities. If not, an Option with result state empty is returned.
    • setCntrlPurContrHeaderPartner

      public void setCntrlPurContrHeaderPartner(@Nonnull List<CntrlPurContrHeaderPartner> value)
      Overwrites the list of associated CntrlPurContrHeaderPartner entities for the loaded navigation property to_CntrlPurContrHeaderPartner.

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

      Parameters:
      value - List of CntrlPurContrHeaderPartner entities.
    • addCntrlPurContrHeaderPartner

      public void addCntrlPurContrHeaderPartner(CntrlPurContrHeaderPartner... entity)
      Adds elements to the list of associated CntrlPurContrHeaderPartner entities. This corresponds to the OData navigation property to_CntrlPurContrHeaderPartner.

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

      Parameters:
      entity - Array of CntrlPurContrHeaderPartner entities.
    • builder

    • getCentralPurchaseContract

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Returns:
      Purchasing Document Number
    • getDistributionKey

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

      Original property name from the Odata EDM: DistributionKey

      Returns:
      Distribution Number of Central Purchasing Document
    • getCentralPurchaseContractItem

      @Nullable public String getCentralPurchaseContractItem()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CentralPurchaseContractItem

      Returns:
      Item Number of Purchasing Document
    • getProcmtHubCompanyCode

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

      Original property name from the Odata EDM: ProcmtHubCompanyCode

      Returns:
      Company Code
    • getProcmtHubPlant

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

      Original property name from the Odata EDM: ProcmtHubPlant

      Returns:
      Plant
    • getProcmtHubPurchasingOrg

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

      Original property name from the Odata EDM: ProcmtHubPurchasingOrg

      Returns:
      Purchasing Organization
    • getProcmtHubPurchasingGroup

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

      Original property name from the Odata EDM: ProcmtHubPurchasingGroup

      Returns:
      Purchasing Group
    • getProcmtHubCompanyCodeGroupingID

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

      Original property name from the Odata EDM: ProcmtHubCompanyCodeGroupingID

      Returns:
      Grouping ID for Company Codes
    • getCntrlPurContrDistrCurrency

      @Nullable public String getCntrlPurContrDistrCurrency()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CntrlPurContrDistrCurrency

      Returns:
      Currency Key
    • getPaymentTerms

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

      Original property name from the Odata EDM: PaymentTerms

      Returns:
      Terms of Payment Key
    • getCashDiscount1Days

      @Nullable public BigDecimal getCashDiscount1Days()
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: CashDiscount1Days

      Returns:
      Cash discount days 1
    • getCashDiscount2Days

      @Nullable public BigDecimal getCashDiscount2Days()
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: CashDiscount2Days

      Returns:
      Cash discount days 2
    • getNetPaymentDays

      @Nullable public BigDecimal getNetPaymentDays()
      Constraints: Not nullable, Precision: 3, Scale: 0

      Original property name from the Odata EDM: NetPaymentDays

      Returns:
      Net Payment Terms Period
    • getCashDiscount1Percent

      @Nullable public BigDecimal getCashDiscount1Percent()
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount1Percent

      Returns:
      Cash Discount Percentage 1
    • getCashDiscount2Percent

      @Nullable public BigDecimal getCashDiscount2Percent()
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount2Percent

      Returns:
      Cash Discount Percentage 2
    • getPurchasingDocumentCategory

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

      Original property name from the Odata EDM: PurchasingDocumentCategory

      Returns:
      Purchasing Document Category
    • getPurchasingDocumentType

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

      Original property name from the Odata EDM: PurchasingDocumentType

      Returns:
      Purchasing Document Type
    • getStorageLocation

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

      Original property name from the Odata EDM: StorageLocation

      Returns:
      Storage Location
    • getCntrlPurContrDistributionPct

      @Nullable public BigDecimal getCntrlPurContrDistributionPct()
      Constraints: Not nullable, Precision: 6, Scale: 3

      Original property name from the Odata EDM: CntrlPurContrDistributionPct

      Returns:
      Distribution Percentage in Central Purchasing Document
    • getIncotermsClassification

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

      Original property name from the Odata EDM: IncotermsClassification

      Returns:
      Incoterms (Part 1)
    • getIncotermsLocation1

      @Nullable public String getIncotermsLocation1()
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: IncotermsLocation1

      Returns:
      Incoterms Location 1
    • getShippingInstruction

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

      Original property name from the Odata EDM: ShippingInstruction

      Returns:
      Shipping Instructions
    • getCntrlPurContrItmDistrAmt

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

      Original property name from the Odata EDM: CntrlPurContrItmDistrAmt

      Returns:
      Target Value for Header Area per Distribution
    • getProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Logical System
    • getIsDeleted

      @Nullable public Boolean getIsDeleted()
      Constraints: none

      Original property name from the Odata EDM: IsDeleted

      Returns:
      Boolean Variable (X = True, - = False, Space = Unknown)
    • getPurchasingInfoRecordUpdateCode

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

      Original property name from the Odata EDM: PurchasingInfoRecordUpdateCode

      Returns:
      Indicator: Update Info Record
    • getSourceListIsUpdated

      @Nullable public Boolean getSourceListIsUpdated()
      Constraints: none

      Original property name from the Odata EDM: SourceListIsUpdated

      Returns:
      Checkbox
    • getSourceListRestriction

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

      Original property name from the Odata EDM: SourceListRestriction

      Returns:
      Source List Restriction Indicator
    • getReferenceDistributionNumber

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

      Original property name from the Odata EDM: ReferenceDistributionNumber

      Returns:
      Distribution Number of Central Purchasing Document
    • toString

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

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

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

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