Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_ProductCharcValue" of service "API_CLFN_PRODUCT_SRV". This service is part of the following communication scenarios: Product Classification Integration (SAP_COM_0309). See https://api.sap.com/api/API_CLFN_PRODUCT_SRV for more information.

Hierarchy

  • Entity
    • ProductCharcValue

Implements

Index

Constructors

constructor

  • Returns ProductCharcValue

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 changeNumber

changeNumber: string

Change Number. Number used to uniquely identify a change master record. If you make a change with reference to a change number, or create an object with a change number, the following functions are at your disposal: The system determines the validity conditions The conditions that the change is effective under can be defined in the change master record as follows: Changes with a date validity (valid-from date) Changes with parameter effectivity (for example: serial no. effectivity) Log of the changes made Documentation of the changes Assignment of a revision level to a change state of a material or document Release of changes for the different areas in the company. Maximum length: 12.

nullable

Optional characteristicAuthor

characteristicAuthor: string

Classification: Author. Maximum length: 1.

nullable

Optional charcFromAmount

charcFromAmount: BigNumber

Lower Boundary for Currency Field.

nullable

Optional charcFromDate

charcFromDate: Moment

Lower Boundary for Date-Interval.

nullable

Optional charcFromDecimalValue

charcFromDecimalValue: BigNumber

Lower Boundary for Numeric Field.

nullable

Optional charcFromNumericValue

charcFromNumericValue: number

Internal floating point from.

nullable

Optional charcFromNumericValueUnit

charcFromNumericValueUnit: string

Unit of Measurement. Internal, language-independent, measurement unit format. This format is used for internal processing. The internal format is automatically replaced by either the external commercial (three-character) or technical (six-character) format before output to the screen. Maximum length: 3.

nullable

Optional charcFromTime

charcFromTime: Time

Lower Boundary for Time-Interval.

nullable

charcInternalId

charcInternalId: string

Internal characteristic number without conversion routine. Maximum length: 10.

Optional charcToAmount

charcToAmount: BigNumber

Upper Boundary for Currency Field.

nullable

Optional charcToDate

charcToDate: Moment

Upper Boundary for Date-Interval.

nullable

Optional charcToDecimalValue

charcToDecimalValue: BigNumber

Upper Boundary for Numeric Field.

nullable

Optional charcToNumericValue

charcToNumericValue: number

Internal floating point value to.

nullable

Optional charcToNumericValueUnit

charcToNumericValueUnit: string

Unit of Measurement. Internal, language-independent, measurement unit format. This format is used for internal processing. The internal format is automatically replaced by either the external commercial (three-character) or technical (six-character) format before output to the screen. Maximum length: 3.

nullable

Optional charcToTime

charcToTime: Time

Upper Boundary for Time-Interval.

nullable

Optional charcValue

charcValue: string

Characteristic Value. Value of a characteristic. If the characteristic has character format (CHAR), this field contains a single character string. Values in time format (TIME) must have the format HH:MM:SS. The separators are set automatically. Example: 112855 --> 11:28:55 The values in date format (DATE) must have the format DD.MM.YYYY. The separators are set automatically. Example: 110100 --> 11.01.2000 Note If you valuate validity parameters, you cannot specify intervals. You can only specify individual values. The following description does not apply to the valuation of validity parameters: If the characteristic format is numeric (NUM), time (TIME), or date (DATE), you can enter a number or (if allowed) an interval. Intervals are written in the following format: Value1 - Value2 (from Value1 to Value2) >Value1 (greater than Value1) >=Value1 (greater than or equal to Value1) <Value2 (less than Value2) <=Value2 (less than or equal to Value2) >Value1 - <Value2 (greater than Value1 and less than Value2) Value1 - <Value2 (greater than or equal to Value1 and less than Value2) >Value1 - Value2 (greater than Value1 and less than or equal to Value2) If the characteristic has more than one value, you can enter multiple values separated by semicolons. If you have maintained a unit of measure for numeric values in the formatting data of the characteristic, the unit is displayed automatically when you confirm. Note If you want to define intervals as allowed values of a characteristic, you must define the characteristic as "multiple-value" when you maintain the characteristic in the Classification System. This also allows you to enter more than one interval. However, if you assign more than one interval to a characteristic of a class during configuration (for example, 1-2 and 5-6 for characteristic LENGTH), the system only reads one of the intervals when generating an inspection lot in QM. To avoid this problem, do NOT assign more than one interval to a characteristic. Maximum length: 70.

nullable

Optional charcValueDependency

charcValueDependency: string

Code for value dependency. When defining values, intervals can be defined such that the FROM value or TO value is given an operator. Example: 1.54>-<2.088 The coding of the individual possible entries is described below. Code Operator Value1 Operator Value2 1 EQ 2 GE LT 3 GE LE 4 GT LT 5 GT LE 6 LT 7 LE 8 GT 9 GE. Maximum length: 1.

nullable

charcValuePositionNumber

charcValuePositionNumber: string

Characteristic value counter. Maximum length: 3.

classType

classType: string

Class Type. Uniquely identifies the class type. Maximum length: 3.

Optional currency

currency: string

Currency Key. Key for the currency in which the amounts are managed in the system. Maximum length: 5.

nullable

Optional keyDate

keyDate: Moment

Key Date.

nullable

product

product: string

Key of Object to be Classified. Maximum length: 90.

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

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<ProductCharcValue> = new AllFields('*', ProductCharcValue)

All fields selector.

Static CHANGE_NUMBER

CHANGE_NUMBER: StringField<ProductCharcValue> = new StringField('ChangeNumber', ProductCharcValue, 'Edm.String')

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

Static CHARACTERISTIC_AUTHOR

CHARACTERISTIC_AUTHOR: StringField<ProductCharcValue> = new StringField('CharacteristicAuthor', ProductCharcValue, 'Edm.String')

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

Static CHARC_FROM_AMOUNT

CHARC_FROM_AMOUNT: BigNumberField<ProductCharcValue> = new BigNumberField('CharcFromAmount', ProductCharcValue, 'Edm.Decimal')

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

Static CHARC_FROM_DATE

CHARC_FROM_DATE: DateField<ProductCharcValue> = new DateField('CharcFromDate', ProductCharcValue, 'Edm.DateTime')

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

Static CHARC_FROM_DECIMAL_VALUE

CHARC_FROM_DECIMAL_VALUE: BigNumberField<ProductCharcValue> = new BigNumberField('CharcFromDecimalValue', ProductCharcValue, 'Edm.Decimal')

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

Static CHARC_FROM_NUMERIC_VALUE

CHARC_FROM_NUMERIC_VALUE: NumberField<ProductCharcValue> = new NumberField('CharcFromNumericValue', ProductCharcValue, 'Edm.Double')

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

Static CHARC_FROM_NUMERIC_VALUE_UNIT

CHARC_FROM_NUMERIC_VALUE_UNIT: StringField<ProductCharcValue> = new StringField('CharcFromNumericValueUnit', ProductCharcValue, 'Edm.String')

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

Static CHARC_FROM_TIME

CHARC_FROM_TIME: TimeField<ProductCharcValue> = new TimeField('CharcFromTime', ProductCharcValue, 'Edm.Time')

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

Static CHARC_INTERNAL_ID

CHARC_INTERNAL_ID: StringField<ProductCharcValue> = new StringField('CharcInternalID', ProductCharcValue, 'Edm.String')

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

Static CHARC_TO_AMOUNT

CHARC_TO_AMOUNT: BigNumberField<ProductCharcValue> = new BigNumberField('CharcToAmount', ProductCharcValue, 'Edm.Decimal')

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

Static CHARC_TO_DATE

CHARC_TO_DATE: DateField<ProductCharcValue> = new DateField('CharcToDate', ProductCharcValue, 'Edm.DateTime')

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

Static CHARC_TO_DECIMAL_VALUE

CHARC_TO_DECIMAL_VALUE: BigNumberField<ProductCharcValue> = new BigNumberField('CharcToDecimalValue', ProductCharcValue, 'Edm.Decimal')

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

Static CHARC_TO_NUMERIC_VALUE

CHARC_TO_NUMERIC_VALUE: NumberField<ProductCharcValue> = new NumberField('CharcToNumericValue', ProductCharcValue, 'Edm.Double')

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

Static CHARC_TO_NUMERIC_VALUE_UNIT

CHARC_TO_NUMERIC_VALUE_UNIT: StringField<ProductCharcValue> = new StringField('CharcToNumericValueUnit', ProductCharcValue, 'Edm.String')

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

Static CHARC_TO_TIME

CHARC_TO_TIME: TimeField<ProductCharcValue> = new TimeField('CharcToTime', ProductCharcValue, 'Edm.Time')

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

Static CHARC_VALUE

CHARC_VALUE: StringField<ProductCharcValue> = new StringField('CharcValue', ProductCharcValue, 'Edm.String')

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

Static CHARC_VALUE_DEPENDENCY

CHARC_VALUE_DEPENDENCY: StringField<ProductCharcValue> = new StringField('CharcValueDependency', ProductCharcValue, 'Edm.String')

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

Static CHARC_VALUE_POSITION_NUMBER

CHARC_VALUE_POSITION_NUMBER: StringField<ProductCharcValue> = new StringField('CharcValuePositionNumber', ProductCharcValue, 'Edm.String')

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

Static CLASS_TYPE

CLASS_TYPE: StringField<ProductCharcValue> = new StringField('ClassType', ProductCharcValue, 'Edm.String')

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

Static CURRENCY

CURRENCY: StringField<ProductCharcValue> = new StringField('Currency', ProductCharcValue, 'Edm.String')

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

Static KEY_DATE

KEY_DATE: DateField<ProductCharcValue> = new DateField('KeyDate', ProductCharcValue, 'Edm.DateTime')

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

Static PRODUCT

PRODUCT: StringField<ProductCharcValue> = new StringField('Product', ProductCharcValue, 'Edm.String')

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

Static _allFields

_allFields: Array<StringField<ProductCharcValue> | DateField<ProductCharcValue> | NumberField<ProductCharcValue> | BigNumberField<ProductCharcValue> | TimeField<ProductCharcValue>> = [ProductCharcValue.PRODUCT,ProductCharcValue.CLASS_TYPE,ProductCharcValue.CHARC_INTERNAL_ID,ProductCharcValue.CHARC_VALUE_POSITION_NUMBER,ProductCharcValue.KEY_DATE,ProductCharcValue.CHANGE_NUMBER,ProductCharcValue.CHARC_VALUE_DEPENDENCY,ProductCharcValue.CHARC_VALUE,ProductCharcValue.CHARC_FROM_NUMERIC_VALUE,ProductCharcValue.CHARC_FROM_NUMERIC_VALUE_UNIT,ProductCharcValue.CHARC_TO_NUMERIC_VALUE,ProductCharcValue.CHARC_TO_NUMERIC_VALUE_UNIT,ProductCharcValue.CHARC_FROM_DECIMAL_VALUE,ProductCharcValue.CHARC_TO_DECIMAL_VALUE,ProductCharcValue.CHARC_FROM_AMOUNT,ProductCharcValue.CHARC_TO_AMOUNT,ProductCharcValue.CURRENCY,ProductCharcValue.CHARC_FROM_DATE,ProductCharcValue.CHARC_TO_DATE,ProductCharcValue.CHARC_FROM_TIME,ProductCharcValue.CHARC_TO_TIME,ProductCharcValue.CHARACTERISTIC_AUTHOR]

All fields of the ProductCharcValue entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_ProductCharcValue"

Technical entity name for ProductCharcValue.

Static _keyFields

_keyFields: Array<Selectable<ProductCharcValue>> = [ProductCharcValue.PRODUCT, ProductCharcValue.CLASS_TYPE, ProductCharcValue.CHARC_INTERNAL_ID, ProductCharcValue.CHARC_VALUE_POSITION_NUMBER]

All key fields of the ProductCharcValue entity.

Static _keys

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

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

Type declaration

Static _serviceName

_serviceName: string = "API_CLFN_PRODUCT_SRV"
deprecated

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

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

  • Returns an entity builder to construct instances ProductCharcValue.

    Returns EntityBuilderType<ProductCharcValue, ProductCharcValueType>

    A builder that constructs instances of entity type ProductCharcValue.

Static customField

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

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<ProductCharcValue>

    A builder that constructs instances of entity type ProductCharcValue.

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 ProductCharcValue entity type.

    Returns ProductCharcValueRequestBuilder

    A ProductCharcValue request builder.