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

public class PurchaseOrder extends VdmEntity<PurchaseOrder> implements VdmEntitySet
Purchase Order

Original entity name from the Odata EDM: PurchaseOrder_Type

  • Field Details

  • Constructor Details

    • PurchaseOrder

      public PurchaseOrder()
    • PurchaseOrder

      public PurchaseOrder(@Nullable String purchaseOrder, @Nullable String purchaseOrderType, @Nullable String purchaseOrderSubtype, @Nullable String purchasingDocumentOrigin, @Nullable String createdByUser, @Nullable LocalDate creationDate, @Nullable LocalDate purchaseOrderDate, @Nullable OffsetDateTime lastChangeDateTime, @Nullable LocalDate validityStartDate, @Nullable LocalDate validityEndDate, @Nullable String language, @Nullable String purchaseOrderDeletionCode, @Nullable Boolean releaseIsNotCompleted, @Nullable Boolean purchasingCompletenessStatus, @Nullable String purchasingProcessingStatus, @Nullable String purgReleaseSequenceStatus, @Nullable String releaseCode, @Nullable String purchasingReleaseStrategy, @Nullable String purgReasonForDocCancellation, @Nullable String companyCode, @Nullable String purchasingOrganization, @Nullable String purchasingGroup, @Nullable String supplier, @Nullable String manualSupplierAddressID, @Nullable String supplierAddressID, @Nullable String supplierRespSalesPersonName, @Nullable String supplierPhoneNumber, @Nullable String supplyingSupplier, @Nullable String supplyingPlant, @Nullable String invoicingParty, @Nullable String customer, @Nullable String purchaseContract, @Nullable String supplierQuotationExternalID, @Nullable LocalDate quotationSubmissionDate, @Nullable String itemNumberIntervalForSubItems, @Nullable String paymentTerms, @Nullable BigDecimal cashDiscount1Days, @Nullable BigDecimal cashDiscount2Days, @Nullable BigDecimal netPaymentDays, @Nullable BigDecimal cashDiscount1Percent, @Nullable BigDecimal cashDiscount2Percent, @Nullable String downPaymentType, @Nullable BigDecimal downPaymentPercentageOfTotAmt, @Nullable BigDecimal downPaymentAmount, @Nullable LocalDate downPaymentDueDate, @Nullable String incotermsClassification, @Nullable String incotermsTransferLocation, @Nullable String incotermsVersion, @Nullable String incotermsLocation1, @Nullable String incotermsLocation2, @Nullable Boolean isIntrastatReportingRelevant, @Nullable Boolean isIntrastatReportingExcluded, @Nullable String correspncExternalReference, @Nullable String correspncInternalReference, @Nullable String pricingDocument, @Nullable String pricingProcedure, @Nullable String documentCurrency, @Nullable BigDecimal exchangeRate, @Nullable Boolean exchangeRateIsFixed, @Nullable String taxReturnCountry, @Nullable String vATRegistrationCountry, @Nullable String purgAggrgdProdCmplncSuplrSts, @Nullable String purgAggrgdProdMarketabilitySts, @Nullable String purgAggrgdSftyDataSheetStatus, @Nullable String purgProdCmplncTotDngrsGoodsSts, @Nullable Collection<SAP__Message> _Messages, List<PurchaseOrderItem> to_PurchaseOrderItem, List<PurchaseOrderNote> to_PurchaseOrderNote, List<PurchaseOrderPartner> to_PurchaseOrderPartner, @Nullable PurchaseOrderSupplierAddress to_SupplierAddress)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PurchaseOrder

      Parameters:
      purchaseOrder - Purchase Order Number
    • setPurchaseOrderType

      public void setPurchaseOrderType(@Nullable String purchaseOrderType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchaseOrderType

      Parameters:
      purchaseOrderType - Purchasing Document Type
    • setPurchaseOrderSubtype

      public void setPurchaseOrderSubtype(@Nullable String purchaseOrderSubtype)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchaseOrderSubtype

      Parameters:
      purchaseOrderSubtype - Control indicator for purchasing document type
    • setPurchasingDocumentOrigin

      public void setPurchasingDocumentOrigin(@Nullable String purchasingDocumentOrigin)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchasingDocumentOrigin

      Parameters:
      purchasingDocumentOrigin - Status of Purchasing Document
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - User of person who created a purchasing document
    • setCreationDate

      public void setCreationDate(@Nullable LocalDate creationDate)
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Creation Date of Purchasing Document
    • setPurchaseOrderDate

      public void setPurchaseOrderDate(@Nullable LocalDate purchaseOrderDate)
      Constraints: Nullable

      Original property name from the Odata EDM: PurchaseOrderDate

      Parameters:
      purchaseOrderDate - Purchase Order Date
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Change Time Stamp
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDate validityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Start of Validity Period
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDate validityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - End of Validity Period
    • setLanguage

      public void setLanguage(@Nullable String language)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setPurchaseOrderDeletionCode

      public void setPurchaseOrderDeletionCode(@Nullable String purchaseOrderDeletionCode)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchaseOrderDeletionCode

      Parameters:
      purchaseOrderDeletionCode - Purchase Order Deletion Code
    • setReleaseIsNotCompleted

      public void setReleaseIsNotCompleted(@Nullable Boolean releaseIsNotCompleted)
      Constraints: Not nullable

      Original property name from the Odata EDM: ReleaseIsNotCompleted

      Parameters:
      releaseIsNotCompleted - Release Not Yet Completely Effected
    • setPurchasingCompletenessStatus

      public void setPurchasingCompletenessStatus(@Nullable Boolean purchasingCompletenessStatus)
      Constraints: Not nullable

      Original property name from the Odata EDM: PurchasingCompletenessStatus

      Parameters:
      purchasingCompletenessStatus - Purchase order not yet complete
    • setPurchasingProcessingStatus

      public void setPurchasingProcessingStatus(@Nullable String purchasingProcessingStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: PurchasingProcessingStatus

      Parameters:
      purchasingProcessingStatus - Purchasing Document Processing State
    • setPurgReleaseSequenceStatus

      public void setPurgReleaseSequenceStatus(@Nullable String purgReleaseSequenceStatus)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: PurgReleaseSequenceStatus

      Parameters:
      purgReleaseSequenceStatus - Release Status
    • setReleaseCode

      public void setReleaseCode(@Nullable String releaseCode)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ReleaseCode

      Parameters:
      releaseCode - Release Indicator: Purchasing Document
    • setPurchasingReleaseStrategy

      public void setPurchasingReleaseStrategy(@Nullable String purchasingReleaseStrategy)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: PurchasingReleaseStrategy

      Parameters:
      purchasingReleaseStrategy - Release Strategy
    • setPurgReasonForDocCancellation

      public void setPurgReasonForDocCancellation(@Nullable String purgReasonForDocCancellation)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: PurgReasonForDocCancellation

      Parameters:
      purgReasonForDocCancellation - Reason for Cancellation
    • 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
    • setPurchasingOrganization

      public void setPurchasingOrganization(@Nullable String purchasingOrganization)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingOrganization

      Parameters:
      purchasingOrganization - Purchasing Organization
    • setPurchasingGroup

      public void setPurchasingGroup(@Nullable String purchasingGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PurchasingGroup

      Parameters:
      purchasingGroup - Purchasing Group
    • setSupplier

      public void setSupplier(@Nullable String supplier)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Parameters:
      supplier - Supplier
    • setManualSupplierAddressID

      public void setManualSupplierAddressID(@Nullable String manualSupplierAddressID)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ManualSupplierAddressID

      Parameters:
      manualSupplierAddressID - Address Number
    • setSupplierAddressID

      public void setSupplierAddressID(@Nullable String supplierAddressID)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SupplierAddressID

      Parameters:
      supplierAddressID - Address Number
    • setSupplierRespSalesPersonName

      public void setSupplierRespSalesPersonName(@Nullable String supplierRespSalesPersonName)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SupplierRespSalesPersonName

      Parameters:
      supplierRespSalesPersonName - Responsible Salesperson at Supplier's Office
    • setSupplierPhoneNumber

      public void setSupplierPhoneNumber(@Nullable String supplierPhoneNumber)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: SupplierPhoneNumber

      Parameters:
      supplierPhoneNumber - Supplier's Phone Number
    • setSupplyingSupplier

      public void setSupplyingSupplier(@Nullable String supplyingSupplier)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SupplyingSupplier

      Parameters:
      supplyingSupplier - Goods Supplier
    • setSupplyingPlant

      public void setSupplyingPlant(@Nullable String supplyingPlant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SupplyingPlant

      Parameters:
      supplyingPlant - Supplying (issuing) plant in case of stock transport order
    • setInvoicingParty

      public void setInvoicingParty(@Nullable String invoicingParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InvoicingParty

      Parameters:
      invoicingParty - Different Invoicing Party
    • 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
    • setPurchaseContract

      public void setPurchaseContract(@Nullable String purchaseContract)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseContract

      Parameters:
      purchaseContract - Number of principal purchase agreement
    • setSupplierQuotationExternalID

      public void setSupplierQuotationExternalID(@Nullable String supplierQuotationExternalID)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SupplierQuotationExternalID

      Parameters:
      supplierQuotationExternalID - Quotation Number
    • setQuotationSubmissionDate

      public void setQuotationSubmissionDate(@Nullable LocalDate quotationSubmissionDate)
      Constraints: Nullable

      Original property name from the Odata EDM: QuotationSubmissionDate

      Parameters:
      quotationSubmissionDate - Quotation Submission Date
    • setItemNumberIntervalForSubItems

      public void setItemNumberIntervalForSubItems(@Nullable String itemNumberIntervalForSubItems)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ItemNumberIntervalForSubItems

      Parameters:
      itemNumberIntervalForSubItems - Item Number Interval for Subitems
    • 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

      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

      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

      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
    • setDownPaymentType

      public void setDownPaymentType(@Nullable String downPaymentType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: DownPaymentType

      Parameters:
      downPaymentType - Down Payment Indicator
    • setDownPaymentPercentageOfTotAmt

      public void setDownPaymentPercentageOfTotAmt(@Nullable BigDecimal downPaymentPercentageOfTotAmt)
      Constraints: Not nullable, Precision: 5, Scale: 2

      Original property name from the Odata EDM: DownPaymentPercentageOfTotAmt

      Parameters:
      downPaymentPercentageOfTotAmt - Down Payment Percentage
    • setDownPaymentAmount

      public void setDownPaymentAmount(@Nullable BigDecimal downPaymentAmount)
      Constraints: Not nullable, Precision: 11, Scale: 0

      Original property name from the Odata EDM: DownPaymentAmount

      Parameters:
      downPaymentAmount - Down Payment Amount in Document Currency
    • setDownPaymentDueDate

      public void setDownPaymentDueDate(@Nullable LocalDate downPaymentDueDate)
      Constraints: Nullable

      Original property name from the Odata EDM: DownPaymentDueDate

      Parameters:
      downPaymentDueDate - Due Date for Down Payment
    • 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)
    • setIncotermsTransferLocation

      public void setIncotermsTransferLocation(@Nullable String incotermsTransferLocation)
      Constraints: Not nullable, Maximum length: 28

      Original property name from the Odata EDM: IncotermsTransferLocation

      Parameters:
      incotermsTransferLocation - Incoterms (Part 2)
    • setIncotermsVersion

      public void setIncotermsVersion(@Nullable String incotermsVersion)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: IncotermsVersion

      Parameters:
      incotermsVersion - Incoterms Version
    • 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
    • setIncotermsLocation2

      public void setIncotermsLocation2(@Nullable String incotermsLocation2)
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: IncotermsLocation2

      Parameters:
      incotermsLocation2 - Incoterms Location 2
    • setIsIntrastatReportingRelevant

      public void setIsIntrastatReportingRelevant(@Nullable Boolean isIntrastatReportingRelevant)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsIntrastatReportingRelevant

      Parameters:
      isIntrastatReportingRelevant - Relevant for Intrastat Reporting
    • setIsIntrastatReportingExcluded

      public void setIsIntrastatReportingExcluded(@Nullable Boolean isIntrastatReportingExcluded)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsIntrastatReportingExcluded

      Parameters:
      isIntrastatReportingExcluded - Exclude from Intrastat Reporting
    • setCorrespncExternalReference

      public void setCorrespncExternalReference(@Nullable String correspncExternalReference)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CorrespncExternalReference

      Parameters:
      correspncExternalReference - Your Reference
    • setCorrespncInternalReference

      public void setCorrespncInternalReference(@Nullable String correspncInternalReference)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CorrespncInternalReference

      Parameters:
      correspncInternalReference - Our Reference
    • setPricingDocument

      public void setPricingDocument(@Nullable String pricingDocument)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PricingDocument

      Parameters:
      pricingDocument - Number of the Document Condition
    • setPricingProcedure

      public void setPricingProcedure(@Nullable String pricingProcedure)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: PricingProcedure

      Parameters:
      pricingProcedure - Procedure (Pricing, Output Control, Acct. Det., Costing,...)
    • setDocumentCurrency

      public void setDocumentCurrency(@Nullable String documentCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: DocumentCurrency

      Parameters:
      documentCurrency - Currency Key
    • setExchangeRate

      public void setExchangeRate(@Nullable BigDecimal exchangeRate)
      Constraints: Not nullable, Precision: 9, Scale: 5

      Original property name from the Odata EDM: ExchangeRate

      Parameters:
      exchangeRate - Exchange Rate
    • setExchangeRateIsFixed

      public void setExchangeRateIsFixed(@Nullable Boolean exchangeRateIsFixed)
      Constraints: Not nullable

      Original property name from the Odata EDM: ExchangeRateIsFixed

      Parameters:
      exchangeRateIsFixed - Indicator for Fixed Exchange Rate
    • setTaxReturnCountry

      public void setTaxReturnCountry(@Nullable String taxReturnCountry)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TaxReturnCountry

      Parameters:
      taxReturnCountry - Country/Region for Tax Report
    • setVATRegistrationCountry

      public void setVATRegistrationCountry(@Nullable String vATRegistrationCountry)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: VATRegistrationCountry

      Parameters:
      vATRegistrationCountry - Country/Region of Sales Tax ID Number
    • setPurgAggrgdProdCmplncSuplrSts

      public void setPurgAggrgdProdCmplncSuplrSts(@Nullable String purgAggrgdProdCmplncSuplrSts)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurgAggrgdProdCmplncSuplrSts

      Parameters:
      purgAggrgdProdCmplncSuplrSts - Product Compliance Supplier Check Status (All Items)
    • setPurgAggrgdProdMarketabilitySts

      public void setPurgAggrgdProdMarketabilitySts(@Nullable String purgAggrgdProdMarketabilitySts)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurgAggrgdProdMarketabilitySts

      Parameters:
      purgAggrgdProdMarketabilitySts - Product Marketability Status (All Items)
    • setPurgAggrgdSftyDataSheetStatus

      public void setPurgAggrgdSftyDataSheetStatus(@Nullable String purgAggrgdSftyDataSheetStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurgAggrgdSftyDataSheetStatus

      Parameters:
      purgAggrgdSftyDataSheetStatus - Safety Data Sheet Status (All Items)
    • setPurgProdCmplncTotDngrsGoodsSts

      public void setPurgProdCmplncTotDngrsGoodsSts(@Nullable String purgProdCmplncTotDngrsGoodsSts)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurgProdCmplncTotDngrsGoodsSts

      Parameters:
      purgProdCmplncTotDngrsGoodsSts - Dangerous Goods Status (All Items)
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity PurchaseOrder 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 _PurchaseOrderItem is already loaded, the result will contain the PurchaseOrderItem entities. If not, an Option with result state empty is returned.
    • setPurchaseOrderItem

      public void setPurchaseOrderItem(@Nonnull List<PurchaseOrderItem> value)
      Overwrites the list of associated PurchaseOrderItem entities for the loaded navigation property _PurchaseOrderItem.

      If the navigation property _PurchaseOrderItem of a queried PurchaseOrder 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 PurchaseOrderItem entities.
    • addPurchaseOrderItem

      public void addPurchaseOrderItem(PurchaseOrderItem... entity)
      Adds elements to the list of associated PurchaseOrderItem entities. This corresponds to the OData navigation property _PurchaseOrderItem.

      If the navigation property _PurchaseOrderItem of a queried PurchaseOrder 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 PurchaseOrderItem entities.
    • getPurchaseOrderNoteIfPresent

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

      If the navigation property for an entity PurchaseOrder 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 _PurchaseOrderNote is already loaded, the result will contain the PurchaseOrderNote entities. If not, an Option with result state empty is returned.
    • setPurchaseOrderNote

      public void setPurchaseOrderNote(@Nonnull List<PurchaseOrderNote> value)
      Overwrites the list of associated PurchaseOrderNote entities for the loaded navigation property _PurchaseOrderNote.

      If the navigation property _PurchaseOrderNote of a queried PurchaseOrder 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 PurchaseOrderNote entities.
    • addPurchaseOrderNote

      public void addPurchaseOrderNote(PurchaseOrderNote... entity)
      Adds elements to the list of associated PurchaseOrderNote entities. This corresponds to the OData navigation property _PurchaseOrderNote.

      If the navigation property _PurchaseOrderNote of a queried PurchaseOrder 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 PurchaseOrderNote entities.
    • getPurchaseOrderPartnerIfPresent

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

      If the navigation property for an entity PurchaseOrder 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 _PurchaseOrderPartner is already loaded, the result will contain the PurchaseOrderPartner entities. If not, an Option with result state empty is returned.
    • setPurchaseOrderPartner

      public void setPurchaseOrderPartner(@Nonnull List<PurchaseOrderPartner> value)
      Overwrites the list of associated PurchaseOrderPartner entities for the loaded navigation property _PurchaseOrderPartner.

      If the navigation property _PurchaseOrderPartner of a queried PurchaseOrder 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 PurchaseOrderPartner entities.
    • addPurchaseOrderPartner

      public void addPurchaseOrderPartner(PurchaseOrderPartner... entity)
      Adds elements to the list of associated PurchaseOrderPartner entities. This corresponds to the OData navigation property _PurchaseOrderPartner.

      If the navigation property _PurchaseOrderPartner of a queried PurchaseOrder 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 PurchaseOrderPartner entities.
    • getSupplierAddressIfPresent

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

      If the navigation property for an entity PurchaseOrder 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 _SupplierAddress is already loaded, the result will contain the PurchaseOrderSupplierAddress entity. If not, an Option with result state empty is returned.
    • setSupplierAddress

      public void setSupplierAddress(PurchaseOrderSupplierAddress value)
      Overwrites the associated PurchaseOrderSupplierAddress entity for the loaded navigation property _SupplierAddress.
      Parameters:
      value - New PurchaseOrderSupplierAddress entity.
    • builder

      @Nonnull public static PurchaseOrder.PurchaseOrderBuilder builder()
    • getPurchaseOrder

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

      Original property name from the Odata EDM: PurchaseOrder

      Returns:
      Purchase Order Number
    • getPurchaseOrderType

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

      Original property name from the Odata EDM: PurchaseOrderType

      Returns:
      Purchasing Document Type
    • getPurchaseOrderSubtype

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

      Original property name from the Odata EDM: PurchaseOrderSubtype

      Returns:
      Control indicator for purchasing document type
    • getPurchasingDocumentOrigin

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

      Original property name from the Odata EDM: PurchasingDocumentOrigin

      Returns:
      Status of Purchasing Document
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      User of person who created a purchasing document
    • getCreationDate

      @Nullable public LocalDate getCreationDate()
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDate

      Returns:
      Creation Date of Purchasing Document
    • getPurchaseOrderDate

      @Nullable public LocalDate getPurchaseOrderDate()
      Constraints: Nullable

      Original property name from the Odata EDM: PurchaseOrderDate

      Returns:
      Purchase Order Date
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Change Time Stamp
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Start of Validity Period
    • getValidityEndDate

      @Nullable public LocalDate getValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      End of Validity Period
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getPurchaseOrderDeletionCode

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

      Original property name from the Odata EDM: PurchaseOrderDeletionCode

      Returns:
      Purchase Order Deletion Code
    • getReleaseIsNotCompleted

      @Nullable public Boolean getReleaseIsNotCompleted()
      Constraints: Not nullable

      Original property name from the Odata EDM: ReleaseIsNotCompleted

      Returns:
      Release Not Yet Completely Effected
    • getPurchasingCompletenessStatus

      @Nullable public Boolean getPurchasingCompletenessStatus()
      Constraints: Not nullable

      Original property name from the Odata EDM: PurchasingCompletenessStatus

      Returns:
      Purchase order not yet complete
    • getPurchasingProcessingStatus

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

      Original property name from the Odata EDM: PurchasingProcessingStatus

      Returns:
      Purchasing Document Processing State
    • getPurgReleaseSequenceStatus

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

      Original property name from the Odata EDM: PurgReleaseSequenceStatus

      Returns:
      Release Status
    • getReleaseCode

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

      Original property name from the Odata EDM: ReleaseCode

      Returns:
      Release Indicator: Purchasing Document
    • getPurchasingReleaseStrategy

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

      Original property name from the Odata EDM: PurchasingReleaseStrategy

      Returns:
      Release Strategy
    • getPurgReasonForDocCancellation

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

      Original property name from the Odata EDM: PurgReasonForDocCancellation

      Returns:
      Reason for Cancellation
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getPurchasingOrganization

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

      Original property name from the Odata EDM: PurchasingOrganization

      Returns:
      Purchasing Organization
    • getPurchasingGroup

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

      Original property name from the Odata EDM: PurchasingGroup

      Returns:
      Purchasing Group
    • getSupplier

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

      Original property name from the Odata EDM: Supplier

      Returns:
      Supplier
    • getManualSupplierAddressID

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

      Original property name from the Odata EDM: ManualSupplierAddressID

      Returns:
      Address Number
    • getSupplierAddressID

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

      Original property name from the Odata EDM: SupplierAddressID

      Returns:
      Address Number
    • getSupplierRespSalesPersonName

      @Nullable public String getSupplierRespSalesPersonName()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: SupplierRespSalesPersonName

      Returns:
      Responsible Salesperson at Supplier's Office
    • getSupplierPhoneNumber

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

      Original property name from the Odata EDM: SupplierPhoneNumber

      Returns:
      Supplier's Phone Number
    • getSupplyingSupplier

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

      Original property name from the Odata EDM: SupplyingSupplier

      Returns:
      Goods Supplier
    • getSupplyingPlant

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

      Original property name from the Odata EDM: SupplyingPlant

      Returns:
      Supplying (issuing) plant in case of stock transport order
    • getInvoicingParty

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

      Original property name from the Odata EDM: InvoicingParty

      Returns:
      Different Invoicing Party
    • getCustomer

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

      Original property name from the Odata EDM: Customer

      Returns:
      Customer Number
    • getPurchaseContract

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

      Original property name from the Odata EDM: PurchaseContract

      Returns:
      Number of principal purchase agreement
    • getSupplierQuotationExternalID

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

      Original property name from the Odata EDM: SupplierQuotationExternalID

      Returns:
      Quotation Number
    • getQuotationSubmissionDate

      @Nullable public LocalDate getQuotationSubmissionDate()
      Constraints: Nullable

      Original property name from the Odata EDM: QuotationSubmissionDate

      Returns:
      Quotation Submission Date
    • getItemNumberIntervalForSubItems

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

      Original property name from the Odata EDM: ItemNumberIntervalForSubItems

      Returns:
      Item Number Interval for Subitems
    • 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

      Original property name from the Odata EDM: CashDiscount1Days

      Returns:
      Cash discount days 1
    • getCashDiscount2Days

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

      Original property name from the Odata EDM: CashDiscount2Days

      Returns:
      Cash discount days 2
    • getNetPaymentDays

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

      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
    • getDownPaymentType

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

      Original property name from the Odata EDM: DownPaymentType

      Returns:
      Down Payment Indicator
    • getDownPaymentPercentageOfTotAmt

      @Nullable public BigDecimal getDownPaymentPercentageOfTotAmt()
      Constraints: Not nullable, Precision: 5, Scale: 2

      Original property name from the Odata EDM: DownPaymentPercentageOfTotAmt

      Returns:
      Down Payment Percentage
    • getDownPaymentAmount

      @Nullable public BigDecimal getDownPaymentAmount()
      Constraints: Not nullable, Precision: 11, Scale: 0

      Original property name from the Odata EDM: DownPaymentAmount

      Returns:
      Down Payment Amount in Document Currency
    • getDownPaymentDueDate

      @Nullable public LocalDate getDownPaymentDueDate()
      Constraints: Nullable

      Original property name from the Odata EDM: DownPaymentDueDate

      Returns:
      Due Date for Down Payment
    • getIncotermsClassification

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

      Original property name from the Odata EDM: IncotermsClassification

      Returns:
      Incoterms (Part 1)
    • getIncotermsTransferLocation

      @Nullable public String getIncotermsTransferLocation()
      Constraints: Not nullable, Maximum length: 28

      Original property name from the Odata EDM: IncotermsTransferLocation

      Returns:
      Incoterms (Part 2)
    • getIncotermsVersion

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

      Original property name from the Odata EDM: IncotermsVersion

      Returns:
      Incoterms Version
    • getIncotermsLocation1

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

      Original property name from the Odata EDM: IncotermsLocation1

      Returns:
      Incoterms Location 1
    • getIncotermsLocation2

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

      Original property name from the Odata EDM: IncotermsLocation2

      Returns:
      Incoterms Location 2
    • getIsIntrastatReportingRelevant

      @Nullable public Boolean getIsIntrastatReportingRelevant()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsIntrastatReportingRelevant

      Returns:
      Relevant for Intrastat Reporting
    • getIsIntrastatReportingExcluded

      @Nullable public Boolean getIsIntrastatReportingExcluded()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsIntrastatReportingExcluded

      Returns:
      Exclude from Intrastat Reporting
    • getCorrespncExternalReference

      @Nullable public String getCorrespncExternalReference()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CorrespncExternalReference

      Returns:
      Your Reference
    • getCorrespncInternalReference

      @Nullable public String getCorrespncInternalReference()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CorrespncInternalReference

      Returns:
      Our Reference
    • getPricingDocument

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

      Original property name from the Odata EDM: PricingDocument

      Returns:
      Number of the Document Condition
    • getPricingProcedure

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

      Original property name from the Odata EDM: PricingProcedure

      Returns:
      Procedure (Pricing, Output Control, Acct. Det., Costing,...)
    • getDocumentCurrency

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

      Original property name from the Odata EDM: DocumentCurrency

      Returns:
      Currency Key
    • getExchangeRate

      @Nullable public BigDecimal getExchangeRate()
      Constraints: Not nullable, Precision: 9, Scale: 5

      Original property name from the Odata EDM: ExchangeRate

      Returns:
      Exchange Rate
    • getExchangeRateIsFixed

      @Nullable public Boolean getExchangeRateIsFixed()
      Constraints: Not nullable

      Original property name from the Odata EDM: ExchangeRateIsFixed

      Returns:
      Indicator for Fixed Exchange Rate
    • getTaxReturnCountry

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

      Original property name from the Odata EDM: TaxReturnCountry

      Returns:
      Country/Region for Tax Report
    • getVATRegistrationCountry

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

      Original property name from the Odata EDM: VATRegistrationCountry

      Returns:
      Country/Region of Sales Tax ID Number
    • getPurgAggrgdProdCmplncSuplrSts

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

      Original property name from the Odata EDM: PurgAggrgdProdCmplncSuplrSts

      Returns:
      Product Compliance Supplier Check Status (All Items)
    • getPurgAggrgdProdMarketabilitySts

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

      Original property name from the Odata EDM: PurgAggrgdProdMarketabilitySts

      Returns:
      Product Marketability Status (All Items)
    • getPurgAggrgdSftyDataSheetStatus

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

      Original property name from the Odata EDM: PurgAggrgdSftyDataSheetStatus

      Returns:
      Safety Data Sheet Status (All Items)
    • getPurgProdCmplncTotDngrsGoodsSts

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

      Original property name from the Odata EDM: PurgProdCmplncTotDngrsGoodsSts

      Returns:
      Dangerous Goods Status (All Items)
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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