Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_SpecAssignedMatlForKeyDate" of service "API_REALSUBSTANCE". See https://api.sap.com/api/API_REALSUBSTANCE for more information.

Hierarchy

  • Entity
    • SpecAssignedMatlForKeyDate

Implements

Index

Constructors

constructor

Properties

Protected _customFields

_customFields: MapType<any>

A mapper representing custom fields in an entity. Custom fields are represented by their field names and the corresponding values. A custom field can be added or updated using setCustomField method.

Protected _versionIdentifier

_versionIdentifier: string

The current ETag version of the entity in the remote system. The ETag identified the version of the in the remote system. It will be automatically set in the "if-match" header of update requests and can be set as a custom header for delete requests. When no ETag is provided by the remote system the value of this variable defaults to "*".

Optional material

material: string

Material Number. Maximum length: 40.

nullable

Optional plant

plant: string

Plant. Maximum length: 4.

nullable

Optional plantName

plantName: string

Plant Name. Maximum length: 30.

nullable

Protected remoteState

remoteState: object

The remote state of the entity. Remote state refers to the last known state of the entity on the remote system from which it has been retrieved or to which it has been posted. It is stored as map, where the keys are stored in the format of VDM properties.

Type declaration

  • [keys: string]: any

Optional specMaterialAssgmtChangeDate

specMaterialAssgmtChangeDate: Moment

Last Changed On.

nullable

Optional specMaterialAssgmtChangeNumber

specMaterialAssgmtChangeNumber: string

Change Number. Maximum length: 12.

nullable

specMaterialAssgmtChangeState

specMaterialAssgmtChangeState: string

Sequential Number of the Change State. Maximum length: 20.

Optional specMaterialAssgmtCreatedByUsr

specMaterialAssgmtCreatedByUsr: string

Created By. Maximum length: 12.

nullable

Optional specMaterialAssgmtCreationDate

specMaterialAssgmtCreationDate: Moment

Created On.

nullable

specMaterialAssgmtInternalId

specMaterialAssgmtInternalId: string

Sequential Number of Data Record. Maximum length: 20.

Optional specMaterialAssgmtIsDeleted

specMaterialAssgmtIsDeleted: boolean

Deletion Indicator.

nullable

Optional specMatlAssgmtLastChangedByUsr

specMatlAssgmtLastChangedByUsr: string

Last Changed By. Maximum length: 12.

nullable

Optional specMatlAssgmtValdtyEndDate

specMatlAssgmtValdtyEndDate: Moment

Valid-To Date.

nullable

Optional specMatlAssgmtValdtyStartDate

specMatlAssgmtValdtyStartDate: Moment

Valid-From Date.

nullable

Optional specificationAuthznGroup

specificationAuthznGroup: string

Recipe Authorization Group. Maximum length: 10.

nullable

Optional specificationInternalId

specificationInternalId: string

Sequential Number of Data Record. Maximum length: 20.

nullable

Optional specificationType

specificationType: string

Specification Type. Maximum length: 10.

nullable

toDescription

toDescription: ProductDescription[]

One-to-many navigation property to the ProductDescription entity.

toProduct

toProduct: Product

One-to-one navigation property to the Product entity.

toProductPlant

toProductPlant: ProductPlant

One-to-one navigation property to the ProductPlant entity.

versionIdentifier

versionIdentifier: string

ETag version identifier accessor.

returns

The ETag version identifier of the retrieved entity, returns undefined if not retrieved

Static ALL_FIELDS

ALL_FIELDS: AllFields<SpecAssignedMatlForKeyDate> = new AllFields('*', SpecAssignedMatlForKeyDate)

All fields selector.

Static MATERIAL

MATERIAL: StringField<SpecAssignedMatlForKeyDate> = new StringField('Material', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the material property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PLANT

PLANT: StringField<SpecAssignedMatlForKeyDate> = new StringField('Plant', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the plant property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PLANT_NAME

PLANT_NAME: StringField<SpecAssignedMatlForKeyDate> = new StringField('PlantName', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the plantName property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPECIFICATION_AUTHZN_GROUP

SPECIFICATION_AUTHZN_GROUP: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecificationAuthznGroup', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specificationAuthznGroup property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPECIFICATION_INTERNAL_ID

SPECIFICATION_INTERNAL_ID: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecificationInternalID', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specificationInternalId property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPECIFICATION_TYPE

SPECIFICATION_TYPE: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecificationType', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specificationType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATERIAL_ASSGMT_CHANGE_DATE

SPEC_MATERIAL_ASSGMT_CHANGE_DATE: DateField<SpecAssignedMatlForKeyDate> = new DateField('SpecMaterialAssgmtChangeDate', SpecAssignedMatlForKeyDate, 'Edm.DateTime')

Static representation of the specMaterialAssgmtChangeDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATERIAL_ASSGMT_CHANGE_NUMBER

SPEC_MATERIAL_ASSGMT_CHANGE_NUMBER: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecMaterialAssgmtChangeNumber', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specMaterialAssgmtChangeNumber property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATERIAL_ASSGMT_CHANGE_STATE

SPEC_MATERIAL_ASSGMT_CHANGE_STATE: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecMaterialAssgmtChangeState', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specMaterialAssgmtChangeState property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATERIAL_ASSGMT_CREATED_BY_USR

SPEC_MATERIAL_ASSGMT_CREATED_BY_USR: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecMaterialAssgmtCreatedByUsr', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specMaterialAssgmtCreatedByUsr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATERIAL_ASSGMT_CREATION_DATE

SPEC_MATERIAL_ASSGMT_CREATION_DATE: DateField<SpecAssignedMatlForKeyDate> = new DateField('SpecMaterialAssgmtCreationDate', SpecAssignedMatlForKeyDate, 'Edm.DateTime')

Static representation of the specMaterialAssgmtCreationDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATERIAL_ASSGMT_INTERNAL_ID

SPEC_MATERIAL_ASSGMT_INTERNAL_ID: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecMaterialAssgmtInternalID', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specMaterialAssgmtInternalId property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATERIAL_ASSGMT_IS_DELETED

SPEC_MATERIAL_ASSGMT_IS_DELETED: BooleanField<SpecAssignedMatlForKeyDate> = new BooleanField('SpecMaterialAssgmtIsDeleted', SpecAssignedMatlForKeyDate, 'Edm.Boolean')

Static representation of the specMaterialAssgmtIsDeleted property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATL_ASSGMT_LAST_CHANGED_BY_USR

SPEC_MATL_ASSGMT_LAST_CHANGED_BY_USR: StringField<SpecAssignedMatlForKeyDate> = new StringField('SpecMatlAssgmtLastChangedByUsr', SpecAssignedMatlForKeyDate, 'Edm.String')

Static representation of the specMatlAssgmtLastChangedByUsr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATL_ASSGMT_VALDTY_END_DATE

SPEC_MATL_ASSGMT_VALDTY_END_DATE: DateField<SpecAssignedMatlForKeyDate> = new DateField('SpecMatlAssgmtValdtyEndDate', SpecAssignedMatlForKeyDate, 'Edm.DateTime')

Static representation of the specMatlAssgmtValdtyEndDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SPEC_MATL_ASSGMT_VALDTY_START_DATE

SPEC_MATL_ASSGMT_VALDTY_START_DATE: DateField<SpecAssignedMatlForKeyDate> = new DateField('SpecMatlAssgmtValdtyStartDate', SpecAssignedMatlForKeyDate, 'Edm.DateTime')

Static representation of the specMatlAssgmtValdtyStartDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_DESCRIPTION

TO_DESCRIPTION: Link<SpecAssignedMatlForKeyDate, ProductDescription> = new Link('to_Description', SpecAssignedMatlForKeyDate, ProductDescription)

Static representation of the one-to-many navigation property toDescription for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_PRODUCT

TO_PRODUCT: OneToOneLink<SpecAssignedMatlForKeyDate, Product> = new OneToOneLink('to_Product', SpecAssignedMatlForKeyDate, Product)

Static representation of the one-to-one navigation property toProduct for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_PRODUCT_PLANT

TO_PRODUCT_PLANT: OneToOneLink<SpecAssignedMatlForKeyDate, ProductPlant> = new OneToOneLink('to_ProductPlant', SpecAssignedMatlForKeyDate, ProductPlant)

Static representation of the one-to-one navigation property toProductPlant for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static _allFields

_allFields: Array<StringField<SpecAssignedMatlForKeyDate> | BooleanField<SpecAssignedMatlForKeyDate> | DateField<SpecAssignedMatlForKeyDate> | Link<SpecAssignedMatlForKeyDate, ProductDescription> | OneToOneLink<SpecAssignedMatlForKeyDate, Product> | OneToOneLink<SpecAssignedMatlForKeyDate, ProductPlant>> = [SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_INTERNAL_ID,SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_IS_DELETED,SpecAssignedMatlForKeyDate.SPEC_MATL_ASSGMT_LAST_CHANGED_BY_USR,SpecAssignedMatlForKeyDate.SPEC_MATL_ASSGMT_VALDTY_END_DATE,SpecAssignedMatlForKeyDate.SPEC_MATL_ASSGMT_VALDTY_START_DATE,SpecAssignedMatlForKeyDate.SPECIFICATION_INTERNAL_ID,SpecAssignedMatlForKeyDate.SPECIFICATION_AUTHZN_GROUP,SpecAssignedMatlForKeyDate.SPECIFICATION_TYPE,SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_CHANGE_STATE,SpecAssignedMatlForKeyDate.MATERIAL,SpecAssignedMatlForKeyDate.PLANT,SpecAssignedMatlForKeyDate.PLANT_NAME,SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_CHANGE_DATE,SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_CHANGE_NUMBER,SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_CREATED_BY_USR,SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_CREATION_DATE,SpecAssignedMatlForKeyDate.TO_DESCRIPTION,SpecAssignedMatlForKeyDate.TO_PRODUCT,SpecAssignedMatlForKeyDate.TO_PRODUCT_PLANT]

All fields of the SpecAssignedMatlForKeyDate entity.

Static _defaultServicePath

_defaultServicePath: string = "/sap/opu/odata/sap/API_REALSUBSTANCE"

Default url path for the according service.

Static _entityName

_entityName: string = "A_SpecAssignedMatlForKeyDate"

Technical entity name for SpecAssignedMatlForKeyDate.

Static _keyFields

_keyFields: Array<Selectable<SpecAssignedMatlForKeyDate>> = [SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_INTERNAL_ID, SpecAssignedMatlForKeyDate.SPEC_MATERIAL_ASSGMT_CHANGE_STATE]

All key fields of the SpecAssignedMatlForKeyDate entity.

Static _keys

_keys: object = SpecAssignedMatlForKeyDate._keyFields.reduce((acc: { [keys: string]: Selectable<SpecAssignedMatlForKeyDate> }, field: Selectable<SpecAssignedMatlForKeyDate>) => {acc[field.fieldName] = field;return acc;}, {})

Mapping of all key field names to the respective static field property SpecAssignedMatlForKeyDate.

Type declaration

Static _serviceName

_serviceName: string = "API_REALSUBSTANCE"
deprecated

Since v1.0.1 Use _defaultServicePath instead. Technical service name for SpecAssignedMatlForKeyDate.

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): Entity
  • Returns a map of all defined fields in entity to their current values.

    Returns Entity

    Entity with all defined entity fields

getCustomField

  • getCustomField(fieldName: string): any
  • Custom field value getter.

    Parameters

    • fieldName: string

      The name of the custom field

    Returns any

    The value of the corresponding custom field

getCustomFields

  • getCustomFields(): MapType<any>
  • Returns a map that contains all entity custom fields.

    Returns MapType<any>

    A map of all defined custom fields in the entity

getUpdatedCustomFields

  • getUpdatedCustomFields(): MapType<any>
  • Returns all updated custom field properties compared to the last known remote state.

    Returns MapType<any>

    A map containing all updated custom properties, with their new values

getUpdatedProperties

  • getUpdatedProperties(): Entity
  • Returns all changed properties compared to the last known remote state. The returned properties does not include custom fields. Use getUpdatedCustomFields, if updated custom fields are needed.

    Returns Entity

    Entity with all properties that changed

hasCustomField

  • hasCustomField(fieldName: string): boolean
  • Validates whether a custom field exists in the entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    Returns boolean

    A boolean value, that indicates whether a custom field is defined in entity

initializeCustomFields

  • initializeCustomFields(customFields: MapType<any>): this
  • Sets all retrieved custom fields in entity.

    Parameters

    • customFields: MapType<any>

      Extracted custom fields from a retrieved entity

    Returns this

    A boolean value, that indicates the existence of the field in entity

Protected isConflictingCustomField

  • isConflictingCustomField(customFieldName: string): boolean
  • Validates whether a field name does not conflict with an original field name and thus can be defined as custom fields.

    Parameters

    • customFieldName: string

      Field name to check

    Returns boolean

    Boolean value that describes whether a field name can be defined as custom field

setCustomField

  • setCustomField(fieldName: string, value: any): this
  • Sets a new custom field in the entity or updates it. Throws an error, if the provided custom field name is already defined by an original field in entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    • value: any

      The value of the field

    Returns this

    The entity itself, to facilitate method chaining

setOrInitializeRemoteState

  • setOrInitializeRemoteState(state?: MapType<any>): this
  • Initializes or sets the remoteState of the entity. This function is called on all read, create and update requests. This function should be called after initializeCustomFields, if custom fields are defined.

    Parameters

    • Optional state: MapType<any>

      State to be set as remote state

    Returns this

    The entity itself, to facilitate method chaining

setVersionIdentifier

  • setVersionIdentifier(etag: string): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string

      The returned ETag version of the entity

    Returns this

    The entity itself, to facilitate method chaining

toJSON

  • toJSON(): object
  • Overwrites the default toJSON method so that all instance variables as well as all custom fields of the entity are returned.

    Returns object

    An object containing all instance variables + custom fields.

    • [key: string]: any

Static builder

Static customField

  • Returns a selectable object that allows the selection of custom field in a get request for the entity SpecAssignedMatlForKeyDate.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<SpecAssignedMatlForKeyDate>

    A builder that constructs instances of entity type SpecAssignedMatlForKeyDate.

Static Protected customFieldSelector

  • customFieldSelector<EntityT>(fieldName: string, entityConstructor: Constructable<EntityT>): CustomField<EntityT>
  • Type parameters

    • EntityT: Entity

    Parameters

    • fieldName: string
    • entityConstructor: Constructable<EntityT>

    Returns CustomField<EntityT>

Static Protected entityBuilder

  • entityBuilder<EntityT, JsonT>(entityConstructor: Constructable<EntityT, JsonT>): EntityBuilderType<EntityT, JsonT>
  • Type parameters

    • EntityT: Entity

    • JsonT

    Parameters

    • entityConstructor: Constructable<EntityT, JsonT>

    Returns EntityBuilderType<EntityT, JsonT>

Static requestBuilder

  • Returns a request builder to construct requests for operations on the SpecAssignedMatlForKeyDate entity type.

    Returns SpecAssignedMatlForKeyDateRequestBuilder

    A SpecAssignedMatlForKeyDate request builder.