Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_ServiceQuotationItem" of service "API_SERVICE_QUOTATION_SRV". This service is part of the following communication scenarios: Service Quotation Integration (SAP_COM_0355). See https://api.sap.com/api/API_SERVICE_QUOTATION_SRV for more information.

Hierarchy

  • Entity
    • ServiceQuotationItem

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Returns ServiceQuotationItem

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 language

language: undefined | string

Short Text Language for an Item. Maximum length: 2.

nullable

Optional parentServiceQuotationItem

parentServiceQuotationItem: undefined | string

Shortened Item Number in Document. Maximum length: 6.

nullable

Optional personResponsible

personResponsible: undefined | string

Employee Responsible. Maximum length: 10.

nullable

Optional product

product: undefined | string

Product Name Entered. Product that the customer originally ordered. If, for whatever reason, you have to deliver a substitute product for the one originally required, you can see which product the customer originally ordered. Maximum length: 54.

nullable

Optional quantity

quantity: BigNumber

CRM: Order Quantity. Total (rounded) order quantity in sales units of measure for this item. This field is only filled for a sales or opportunity item. This field remains empty for other item object types.

nullable

Optional quantityUnit

quantityUnit: undefined | string

Unit of Measure in Which the Product Is Sold. Unit of measure in which the product is sold. Maximum length: 3.

nullable

Optional referenceServiceContract

referenceServiceContract: undefined | string

Transaction ID. Number that identifies the transaction document. It is unique for each business transaction category. Maximum length: 10.

nullable

Optional referenceServiceContractItem

referenceServiceContractItem: undefined | string

Shortened Item Number in Document. Maximum length: 6.

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 serviceDocItemCategory

serviceDocItemCategory: undefined | string

Item Category. Key that identifies an item category. An item category defines the characteristics and attributes of a transaction item and thus controls the processing of an item. Maximum length: 4.

nullable

Optional serviceDuration

serviceDuration: BigNumber

Duration. Estimated length of time required for the execution of a service.

nullable

Optional serviceDurationUnit

serviceDurationUnit: undefined | string

Unit for Duration of Work. Unit of time for the duration of a service. Maximum length: 3.

nullable

Optional serviceQtanItemDescription

serviceQtanItemDescription: undefined | string

Product Description. Maximum length: 40.

nullable

Optional serviceQtanItemExtReference

serviceQtanItemExtReference: undefined | string

External Reference Number. Maximum length: 80.

nullable

Optional serviceQtanSuccessorOrder

serviceQtanSuccessorOrder: undefined | string

Transaction ID. Number that identifies the transaction document. It is unique for each business transaction category. Maximum length: 10.

nullable

Optional serviceQtanSuccessorOrderItem

serviceQtanSuccessorOrderItem: undefined | string

Shortened Item Number in Document. Maximum length: 6.

nullable

serviceQuotation

serviceQuotation: string

Transaction ID. Number that identifies the transaction document. It is unique for each business transaction category. Maximum length: 10.

serviceQuotationItem

serviceQuotationItem: string

Shortened Item Number in Document. Maximum length: 6.

Optional serviceQuotationItemIsAccepted

serviceQuotationItemIsAccepted: undefined | string

Service Quotation Item Is Accepted. Maximum length: 1.

nullable

Optional serviceQuotationItemIsRejected

serviceQuotationItemIsRejected: undefined | string

Cancellation Status. Maximum length: 1.

nullable

Optional serviceQuotationItemUuid

serviceQuotationItemUuid: undefined | string

GUID of a CRM Order Object. The unique ID for an operation is a technical key by which the operation can be uniquely identified. This key is only used internally, and the operation number is always displayed on the interface. However, the operation number is not necessarily unique.

nullable

Optional shipToParty

shipToParty: undefined | string

Ship-To Party. Specifies the ship-to party as a 32-digit GUID. Maximum length: 10.

nullable

Optional soldToParty

soldToParty: undefined | string

Sold-To Party. The 32-digit GUID used to identify the sold-to party. Maximum length: 10.

nullable

Optional timeSheetOvertimeCategory

timeSheetOvertimeCategory: undefined | string

Overtime Category. Overtime is defined as the time an employee works outside the regular working times. Overtime Category is the classification of the overtime hours. It is used in the Manage My Timesheet app to efficiently create time entries. Maximum length: 4.

nullable

toPricingElement

toPricingElement: ServiceQtanItemPriceElement[]

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

toReferenceObject

toReferenceObject: ServiceQtanItemRefObject[]

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

toServiceQuotation

toServiceQuotation: ServiceQuotation

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

toText

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

Static ALL_FIELDS

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

All fields selector.

Static LANGUAGE

LANGUAGE: StringField<ServiceQuotationItem> = new StringField('Language', ServiceQuotationItem, 'Edm.String')

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

Static PARENT_SERVICE_QUOTATION_ITEM

PARENT_SERVICE_QUOTATION_ITEM: StringField<ServiceQuotationItem> = new StringField('ParentServiceQuotationItem', ServiceQuotationItem, 'Edm.String')

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

Static PERSON_RESPONSIBLE

PERSON_RESPONSIBLE: StringField<ServiceQuotationItem> = new StringField('PersonResponsible', ServiceQuotationItem, 'Edm.String')

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

Static PRODUCT

PRODUCT: StringField<ServiceQuotationItem> = new StringField('Product', ServiceQuotationItem, '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 QUANTITY

QUANTITY: BigNumberField<ServiceQuotationItem> = new BigNumberField('Quantity', ServiceQuotationItem, 'Edm.Decimal')

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

Static QUANTITY_UNIT

QUANTITY_UNIT: StringField<ServiceQuotationItem> = new StringField('QuantityUnit', ServiceQuotationItem, 'Edm.String')

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

Static REFERENCE_SERVICE_CONTRACT

REFERENCE_SERVICE_CONTRACT: StringField<ServiceQuotationItem> = new StringField('ReferenceServiceContract', ServiceQuotationItem, 'Edm.String')

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

Static REFERENCE_SERVICE_CONTRACT_ITEM

REFERENCE_SERVICE_CONTRACT_ITEM: StringField<ServiceQuotationItem> = new StringField('ReferenceServiceContractItem', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_DOC_ITEM_CATEGORY

SERVICE_DOC_ITEM_CATEGORY: StringField<ServiceQuotationItem> = new StringField('ServiceDocItemCategory', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_DURATION

SERVICE_DURATION: BigNumberField<ServiceQuotationItem> = new BigNumberField('ServiceDuration', ServiceQuotationItem, 'Edm.Decimal')

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

Static SERVICE_DURATION_UNIT

SERVICE_DURATION_UNIT: StringField<ServiceQuotationItem> = new StringField('ServiceDurationUnit', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QTAN_ITEM_DESCRIPTION

SERVICE_QTAN_ITEM_DESCRIPTION: StringField<ServiceQuotationItem> = new StringField('ServiceQtanItemDescription', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QTAN_ITEM_EXT_REFERENCE

SERVICE_QTAN_ITEM_EXT_REFERENCE: StringField<ServiceQuotationItem> = new StringField('ServiceQtanItemExtReference', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QTAN_SUCCESSOR_ORDER

SERVICE_QTAN_SUCCESSOR_ORDER: StringField<ServiceQuotationItem> = new StringField('ServiceQtanSuccessorOrder', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QTAN_SUCCESSOR_ORDER_ITEM

SERVICE_QTAN_SUCCESSOR_ORDER_ITEM: StringField<ServiceQuotationItem> = new StringField('ServiceQtanSuccessorOrderItem', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QUOTATION

SERVICE_QUOTATION: StringField<ServiceQuotationItem> = new StringField('ServiceQuotation', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QUOTATION_ITEM

SERVICE_QUOTATION_ITEM: StringField<ServiceQuotationItem> = new StringField('ServiceQuotationItem', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QUOTATION_ITEM_IS_ACCEPTED

SERVICE_QUOTATION_ITEM_IS_ACCEPTED: StringField<ServiceQuotationItem> = new StringField('ServiceQuotationItemIsAccepted', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QUOTATION_ITEM_IS_REJECTED

SERVICE_QUOTATION_ITEM_IS_REJECTED: StringField<ServiceQuotationItem> = new StringField('ServiceQuotationItemIsRejected', ServiceQuotationItem, 'Edm.String')

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

Static SERVICE_QUOTATION_ITEM_UUID

SERVICE_QUOTATION_ITEM_UUID: StringField<ServiceQuotationItem> = new StringField('ServiceQuotationItemUUID', ServiceQuotationItem, 'Edm.Guid')

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

Static SHIP_TO_PARTY

SHIP_TO_PARTY: StringField<ServiceQuotationItem> = new StringField('ShipToParty', ServiceQuotationItem, 'Edm.String')

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

Static SOLD_TO_PARTY

SOLD_TO_PARTY: StringField<ServiceQuotationItem> = new StringField('SoldToParty', ServiceQuotationItem, 'Edm.String')

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

Static TIME_SHEET_OVERTIME_CATEGORY

TIME_SHEET_OVERTIME_CATEGORY: StringField<ServiceQuotationItem> = new StringField('TimeSheetOvertimeCategory', ServiceQuotationItem, 'Edm.String')

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

Static TO_PRICING_ELEMENT

TO_PRICING_ELEMENT: Link<ServiceQuotationItem, ServiceQtanItemPriceElement> = new Link('to_PricingElement', ServiceQuotationItem, ServiceQtanItemPriceElement)

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

Static TO_REFERENCE_OBJECT

TO_REFERENCE_OBJECT: Link<ServiceQuotationItem, ServiceQtanItemRefObject> = new Link('to_ReferenceObject', ServiceQuotationItem, ServiceQtanItemRefObject)

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

Static TO_SERVICE_QUOTATION

TO_SERVICE_QUOTATION: OneToOneLink<ServiceQuotationItem, ServiceQuotation> = new OneToOneLink('to_ServiceQuotation', ServiceQuotationItem, ServiceQuotation)

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

Static TO_TEXT

TO_TEXT: Link<ServiceQuotationItem, ServiceQuotationItemText> = new Link('to_Text', ServiceQuotationItem, ServiceQuotationItemText)

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

Static _allFields

_allFields: Array<StringField<ServiceQuotationItem> | BigNumberField<ServiceQuotationItem> | Link<ServiceQuotationItem, ServiceQtanItemPriceElement> | Link<ServiceQuotationItem, ServiceQtanItemRefObject> | OneToOneLink<ServiceQuotationItem, ServiceQuotation> | Link<ServiceQuotationItem, ServiceQuotationItemText>> = [ServiceQuotationItem.SERVICE_QUOTATION,ServiceQuotationItem.SERVICE_QUOTATION_ITEM,ServiceQuotationItem.SERVICE_QUOTATION_ITEM_UUID,ServiceQuotationItem.SERVICE_QTAN_ITEM_DESCRIPTION,ServiceQuotationItem.LANGUAGE,ServiceQuotationItem.PRODUCT,ServiceQuotationItem.QUANTITY_UNIT,ServiceQuotationItem.QUANTITY,ServiceQuotationItem.SERVICE_DURATION,ServiceQuotationItem.SERVICE_DURATION_UNIT,ServiceQuotationItem.SERVICE_DOC_ITEM_CATEGORY,ServiceQuotationItem.SERVICE_QTAN_ITEM_EXT_REFERENCE,ServiceQuotationItem.SOLD_TO_PARTY,ServiceQuotationItem.SHIP_TO_PARTY,ServiceQuotationItem.PERSON_RESPONSIBLE,ServiceQuotationItem.SERVICE_QUOTATION_ITEM_IS_ACCEPTED,ServiceQuotationItem.SERVICE_QUOTATION_ITEM_IS_REJECTED,ServiceQuotationItem.TIME_SHEET_OVERTIME_CATEGORY,ServiceQuotationItem.REFERENCE_SERVICE_CONTRACT,ServiceQuotationItem.REFERENCE_SERVICE_CONTRACT_ITEM,ServiceQuotationItem.SERVICE_QTAN_SUCCESSOR_ORDER,ServiceQuotationItem.SERVICE_QTAN_SUCCESSOR_ORDER_ITEM,ServiceQuotationItem.PARENT_SERVICE_QUOTATION_ITEM,ServiceQuotationItem.TO_PRICING_ELEMENT,ServiceQuotationItem.TO_REFERENCE_OBJECT,ServiceQuotationItem.TO_SERVICE_QUOTATION,ServiceQuotationItem.TO_TEXT]

All fields of the ServiceQuotationItem entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_ServiceQuotationItem"

Technical entity name for ServiceQuotationItem.

Static _keyFields

_keyFields: Array<Selectable<ServiceQuotationItem>> = [ServiceQuotationItem.SERVICE_QUOTATION, ServiceQuotationItem.SERVICE_QUOTATION_ITEM]

All key fields of the ServiceQuotationItem entity.

Static _keys

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

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

Type declaration

Static _serviceName

_serviceName: string = "API_SERVICE_QUOTATION_SRV"
deprecated

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

Accessors

versionIdentifier

  • get versionIdentifier(): string
  • ETag version identifier accessor.

    Returns string

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

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.

    deprecated

    Since 1.12.0. Will be removed in version 2.0.

    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 | undefined): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string | undefined

      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 ServiceQuotationItem.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<ServiceQuotationItem>

    A builder that constructs instances of entity type ServiceQuotationItem.

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, EntityTypeForceMandatoryT>(entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>): EntityBuilderType<EntityT, EntityTypeForceMandatoryT>
  • Type parameters

    • EntityT: Entity

    • EntityTypeForceMandatoryT

    Parameters

    • entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>

    Returns EntityBuilderType<EntityT, EntityTypeForceMandatoryT>

Static requestBuilder

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

    Returns ServiceQuotationItemRequestBuilder

    A ServiceQuotationItem request builder.