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

public class PurchasingSource extends VdmEntity<PurchasingSource>
Purchasing Source Type

Original entity name from the Odata EDM: A_PurchasingSourceType

  • Field Details

    • ALL_FIELDS

      public static final PurchasingSourceSelectable ALL_FIELDS
      Selector for all available fields of PurchasingSource.
    • MATERIAL

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

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

      public static final PurchasingSourceField<String> SOURCE_LIST_RECORD
      Use with available fluent helpers to apply the SourceListRecord field to query operations.
    • CREATION_DATE

      public static final PurchasingSourceField<LocalDateTime> CREATION_DATE
      Use with available fluent helpers to apply the CreationDate field to query operations.
    • CREATED_BY_USER_NAME

      public static final PurchasingSourceField<String> CREATED_BY_USER_NAME
      Use with available fluent helpers to apply the CreatedByUserName field to query operations.
    • VALIDITY_START_DATE

      public static final PurchasingSourceField<LocalDateTime> VALIDITY_START_DATE
      Use with available fluent helpers to apply the ValidityStartDate field to query operations.
    • VALIDITY_END_DATE

      public static final PurchasingSourceField<LocalDateTime> VALIDITY_END_DATE
      Use with available fluent helpers to apply the ValidityEndDate field to query operations.
    • SUPPLIER

      public static final PurchasingSourceField<String> SUPPLIER
      Use with available fluent helpers to apply the Supplier field to query operations.
    • SUPPLIER_IS_FIXED

      public static final PurchasingSourceField<Boolean> SUPPLIER_IS_FIXED
      Use with available fluent helpers to apply the SupplierIsFixed field to query operations.
    • PURCHASE_OUTLINE_AGREEMENT

      public static final PurchasingSourceField<String> PURCHASE_OUTLINE_AGREEMENT
      Use with available fluent helpers to apply the PurchaseOutlineAgreement field to query operations.
    • PURCHASE_OUTLINE_AGREEMENT_ITEM

      public static final PurchasingSourceField<String> PURCHASE_OUTLINE_AGREEMENT_ITEM
      Use with available fluent helpers to apply the PurchaseOutlineAgreementItem field to query operations.
    • SUPPLYING_PLANT

      public static final PurchasingSourceField<String> SUPPLYING_PLANT
      Use with available fluent helpers to apply the SupplyingPlant field to query operations.
    • SOURCE_OF_SUPPLY_IS_BLOCKED

      public static final PurchasingSourceField<Boolean> SOURCE_OF_SUPPLY_IS_BLOCKED
      Use with available fluent helpers to apply the SourceOfSupplyIsBlocked field to query operations.
    • PURCHASING_ORGANIZATION

      public static final PurchasingSourceField<String> PURCHASING_ORGANIZATION
      Use with available fluent helpers to apply the PurchasingOrganization field to query operations.
    • MRP_SOURCING_CONTROL

      public static final PurchasingSourceField<String> MRP_SOURCING_CONTROL
      Use with available fluent helpers to apply the MRPSourcingControl field to query operations.
    • ORDER_QUANTITY_UNIT

      public static final PurchasingSourceField<String> ORDER_QUANTITY_UNIT
      Use with available fluent helpers to apply the OrderQuantityUnit field to query operations.
    • LAST_CHANGE_DATE_TIME

      public static final PurchasingSourceField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • ISSG_PLANT_IS_FIXED

      public static final PurchasingSourceField<Boolean> ISSG_PLANT_IS_FIXED
      Use with available fluent helpers to apply the IssgPlantIsFixed field to query operations.
    • PUR_OUTLINE_AGREEMENT_IS_FIXED

      public static final PurchasingSourceField<Boolean> PUR_OUTLINE_AGREEMENT_IS_FIXED
      Use with available fluent helpers to apply the PurOutlineAgreementIsFixed field to query operations.
    • SOURCE_OF_SUPPLY_IS_FIXED

      public static final PurchasingSourceField<Boolean> SOURCE_OF_SUPPLY_IS_FIXED
      Use with available fluent helpers to apply the SourceOfSupplyIsFixed field to query operations.
  • Constructor Details

    • PurchasingSource

      public PurchasingSource()
    • PurchasingSource

      public PurchasingSource(@Nullable String material, @Nullable String plant, @Nullable String sourceListRecord, @Nullable LocalDateTime creationDate, @Nullable String createdByUserName, @Nullable LocalDateTime validityStartDate, @Nullable LocalDateTime validityEndDate, @Nullable String supplier, @Nullable Boolean supplierIsFixed, @Nullable String purchaseOutlineAgreement, @Nullable String purchaseOutlineAgreementItem, @Nullable String supplyingPlant, @Nullable Boolean sourceOfSupplyIsBlocked, @Nullable String purchasingOrganization, @Nullable String mRPSourcingControl, @Nullable String orderQuantityUnit, @Nullable ZonedDateTime lastChangeDateTime, @Nullable Boolean issgPlantIsFixed, @Nullable Boolean purOutlineAgreementIsFixed, @Nullable Boolean sourceOfSupplyIsFixed)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setSourceListRecord

      public void setSourceListRecord(@Nullable String sourceListRecord)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: SourceListRecord

      Parameters:
      sourceListRecord - Number of Source List Record
    • setCreationDate

      public void setCreationDate(@Nullable LocalDateTime creationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Record Created On
    • setCreatedByUserName

      public void setCreatedByUserName(@Nullable String createdByUserName)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUserName

      Parameters:
      createdByUserName - Name of Person Responsible for Creating the Object
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Source List Record Valid From
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Source List Record Valid To
    • setSupplier

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

      Original property name from the Odata EDM: Supplier

      Parameters:
      supplier - Supplier's Account Number
    • setSupplierIsFixed

      public void setSupplierIsFixed(@Nullable Boolean supplierIsFixed)
      Constraints: none

      Original property name from the Odata EDM: SupplierIsFixed

      Parameters:
      supplierIsFixed - Indicator: Fixed Supplier
    • setPurchaseOutlineAgreement

      public void setPurchaseOutlineAgreement(@Nullable String purchaseOutlineAgreement)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseOutlineAgreement

      Parameters:
      purchaseOutlineAgreement - Agreement Number
    • setPurchaseOutlineAgreementItem

      public void setPurchaseOutlineAgreementItem(@Nullable String purchaseOutlineAgreementItem)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseOutlineAgreementItem

      Parameters:
      purchaseOutlineAgreementItem - Agreement Item
    • setSupplyingPlant

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

      Original property name from the Odata EDM: SupplyingPlant

      Parameters:
      supplyingPlant - Plant from Which Material is Procured
    • setSourceOfSupplyIsBlocked

      public void setSourceOfSupplyIsBlocked(@Nullable Boolean sourceOfSupplyIsBlocked)
      Constraints: none

      Original property name from the Odata EDM: SourceOfSupplyIsBlocked

      Parameters:
      sourceOfSupplyIsBlocked - Blocked Source of Supply
    • 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
    • setMRPSourcingControl

      public void setMRPSourcingControl(@Nullable String mRPSourcingControl)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: MRPSourcingControl

      Parameters:
      mRPSourcingControl - Source List Usage in Materials Planning
    • setOrderQuantityUnit

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

      Original property name from the Odata EDM: OrderQuantityUnit

      Parameters:
      orderQuantityUnit - Purchase Order Unit of Measure
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • setIssgPlantIsFixed

      public void setIssgPlantIsFixed(@Nullable Boolean issgPlantIsFixed)
      Constraints: none

      Original property name from the Odata EDM: IssgPlantIsFixed

      Parameters:
      issgPlantIsFixed - Fixed issuing plant in case of stock transport order
    • setPurOutlineAgreementIsFixed

      public void setPurOutlineAgreementIsFixed(@Nullable Boolean purOutlineAgreementIsFixed)
      Constraints: none

      Original property name from the Odata EDM: PurOutlineAgreementIsFixed

      Parameters:
      purOutlineAgreementIsFixed - Fixed Outline Purchase Agreement Item
    • setSourceOfSupplyIsFixed

      public void setSourceOfSupplyIsFixed(@Nullable Boolean sourceOfSupplyIsFixed)
      Constraints: none

      Original property name from the Odata EDM: SourceOfSupplyIsFixed

      Parameters:
      sourceOfSupplyIsFixed - Fixed Source of Supply
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> PurchasingSourceField<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> PurchasingSourceField<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<PurchasingSource>
    • setServicePathForFetch

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

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

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

      @Nonnull public static PurchasingSource.PurchasingSourceBuilder builder()
    • getMaterial

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

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getSourceListRecord

      @Nullable public String getSourceListRecord()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: SourceListRecord

      Returns:
      Number of Source List Record
    • getCreationDate

      @Nullable public LocalDateTime getCreationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Returns:
      Record Created On
    • getCreatedByUserName

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

      Original property name from the Odata EDM: CreatedByUserName

      Returns:
      Name of Person Responsible for Creating the Object
    • getValidityStartDate

      @Nullable public LocalDateTime getValidityStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Source List Record Valid From
    • getValidityEndDate

      @Nullable public LocalDateTime getValidityEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Source List Record Valid To
    • getSupplier

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

      Original property name from the Odata EDM: Supplier

      Returns:
      Supplier's Account Number
    • getSupplierIsFixed

      @Nullable public Boolean getSupplierIsFixed()
      Constraints: none

      Original property name from the Odata EDM: SupplierIsFixed

      Returns:
      Indicator: Fixed Supplier
    • getPurchaseOutlineAgreement

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

      Original property name from the Odata EDM: PurchaseOutlineAgreement

      Returns:
      Agreement Number
    • getPurchaseOutlineAgreementItem

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

      Original property name from the Odata EDM: PurchaseOutlineAgreementItem

      Returns:
      Agreement Item
    • getSupplyingPlant

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

      Original property name from the Odata EDM: SupplyingPlant

      Returns:
      Plant from Which Material is Procured
    • getSourceOfSupplyIsBlocked

      @Nullable public Boolean getSourceOfSupplyIsBlocked()
      Constraints: none

      Original property name from the Odata EDM: SourceOfSupplyIsBlocked

      Returns:
      Blocked Source of Supply
    • getPurchasingOrganization

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

      Original property name from the Odata EDM: PurchasingOrganization

      Returns:
      Purchasing Organization
    • getMRPSourcingControl

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

      Original property name from the Odata EDM: MRPSourcingControl

      Returns:
      Source List Usage in Materials Planning
    • getOrderQuantityUnit

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

      Original property name from the Odata EDM: OrderQuantityUnit

      Returns:
      Purchase Order Unit of Measure
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • getIssgPlantIsFixed

      @Nullable public Boolean getIssgPlantIsFixed()
      Constraints: none

      Original property name from the Odata EDM: IssgPlantIsFixed

      Returns:
      Fixed issuing plant in case of stock transport order
    • getPurOutlineAgreementIsFixed

      @Nullable public Boolean getPurOutlineAgreementIsFixed()
      Constraints: none

      Original property name from the Odata EDM: PurOutlineAgreementIsFixed

      Returns:
      Fixed Outline Purchase Agreement Item
    • getSourceOfSupplyIsFixed

      @Nullable public Boolean getSourceOfSupplyIsFixed()
      Constraints: none

      Original property name from the Odata EDM: SourceOfSupplyIsFixed

      Returns:
      Fixed Source of Supply
    • toString

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

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

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

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