Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Entity
    • ProcessOrderComponent

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 baseUnit

baseUnit: string

Base Unit of Measure. Maximum length: 3.

nullable

Optional billOfMaterialItemNumber

billOfMaterialItemNumber: string

BOM item number. Maximum length: 4.

nullable

Optional bomItem

bomItem: string

Bill of Material Item. Maximum length: 8.

nullable

Optional bomItemDescription

bomItemDescription: string

BOM Item Text (Line 1). Maximum length: 40.

nullable

Optional manufacturingOrder

manufacturingOrder: string

Manufacturing Order ID. Maximum length: 12.

nullable

Optional manufacturingOrderCategory

manufacturingOrderCategory: string

Manufacturing Order Category. Maximum length: 2.

nullable

Optional manufacturingOrderOperation

manufacturingOrderOperation: string

Manufacturing Order Operation. Maximum length: 4.

nullable

Optional manufacturingOrderSequence

manufacturingOrderSequence: string

Sequence. Maximum length: 6.

nullable

Optional manufacturingOrderType

manufacturingOrderType: string

Manufacturing Order Type. Maximum length: 4.

nullable

Optional material

material: string

Material Number. Maximum length: 40.

nullable

Optional matlCompRequirementDate

matlCompRequirementDate: Moment

Material Component Requirement Date.

nullable

Optional orderInternalBillOfOperations

orderInternalBillOfOperations: string

Order Internal Bill of Operations ID. Maximum length: 10.

nullable

Optional plant

plant: string

Plant. Maximum length: 4.

nullable

Optional productionPlant

productionPlant: string

Production Plant in Planned Order. Maximum length: 4.

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 requiredQuantity

requiredQuantity: BigNumber

Requirement Quantity.

nullable

reservation

reservation: string

Number of Reservation/Dependent Requirement. Maximum length: 10.

reservationItem

reservationItem: string

Reservation Item. Maximum length: 4.

Optional storageLocation

storageLocation: string

Storage Location. Maximum length: 4.

nullable

Optional supplyArea

supplyArea: string

Production Supply Area. Maximum length: 10.

nullable

versionIdentifier

versionIdentifier: string

ETag version identifier accessor.

returns

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

Optional withdrawnQuantity

withdrawnQuantity: BigNumber

Withdrawn Quantity.

nullable

Static ALL_FIELDS

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

All fields selector.

Static BASE_UNIT

BASE_UNIT: StringField<ProcessOrderComponent> = new StringField('BaseUnit', ProcessOrderComponent, 'Edm.String')

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

Static BILL_OF_MATERIAL_ITEM_NUMBER

BILL_OF_MATERIAL_ITEM_NUMBER: StringField<ProcessOrderComponent> = new StringField('BillOfMaterialItemNumber', ProcessOrderComponent, 'Edm.String')

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

Static BOM_ITEM

BOM_ITEM: StringField<ProcessOrderComponent> = new StringField('BOMItem', ProcessOrderComponent, 'Edm.String')

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

Static BOM_ITEM_DESCRIPTION

BOM_ITEM_DESCRIPTION: StringField<ProcessOrderComponent> = new StringField('BOMItemDescription', ProcessOrderComponent, 'Edm.String')

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

Static MANUFACTURING_ORDER

MANUFACTURING_ORDER: StringField<ProcessOrderComponent> = new StringField('ManufacturingOrder', ProcessOrderComponent, 'Edm.String')

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

Static MANUFACTURING_ORDER_CATEGORY

MANUFACTURING_ORDER_CATEGORY: StringField<ProcessOrderComponent> = new StringField('ManufacturingOrderCategory', ProcessOrderComponent, 'Edm.String')

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

Static MANUFACTURING_ORDER_OPERATION

MANUFACTURING_ORDER_OPERATION: StringField<ProcessOrderComponent> = new StringField('ManufacturingOrderOperation', ProcessOrderComponent, 'Edm.String')

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

Static MANUFACTURING_ORDER_SEQUENCE

MANUFACTURING_ORDER_SEQUENCE: StringField<ProcessOrderComponent> = new StringField('ManufacturingOrderSequence', ProcessOrderComponent, 'Edm.String')

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

Static MANUFACTURING_ORDER_TYPE

MANUFACTURING_ORDER_TYPE: StringField<ProcessOrderComponent> = new StringField('ManufacturingOrderType', ProcessOrderComponent, 'Edm.String')

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

Static MATERIAL

MATERIAL: StringField<ProcessOrderComponent> = new StringField('Material', ProcessOrderComponent, '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 MATL_COMP_REQUIREMENT_DATE

MATL_COMP_REQUIREMENT_DATE: DateField<ProcessOrderComponent> = new DateField('MatlCompRequirementDate', ProcessOrderComponent, 'Edm.DateTime')

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

Static ORDER_INTERNAL_BILL_OF_OPERATIONS

ORDER_INTERNAL_BILL_OF_OPERATIONS: StringField<ProcessOrderComponent> = new StringField('OrderInternalBillOfOperations', ProcessOrderComponent, 'Edm.String')

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

Static PLANT

PLANT: StringField<ProcessOrderComponent> = new StringField('Plant', ProcessOrderComponent, '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 PRODUCTION_PLANT

PRODUCTION_PLANT: StringField<ProcessOrderComponent> = new StringField('ProductionPlant', ProcessOrderComponent, 'Edm.String')

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

Static REQUIRED_QUANTITY

REQUIRED_QUANTITY: BigNumberField<ProcessOrderComponent> = new BigNumberField('RequiredQuantity', ProcessOrderComponent, 'Edm.Decimal')

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

Static RESERVATION

RESERVATION: StringField<ProcessOrderComponent> = new StringField('Reservation', ProcessOrderComponent, 'Edm.String')

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

Static RESERVATION_ITEM

RESERVATION_ITEM: StringField<ProcessOrderComponent> = new StringField('ReservationItem', ProcessOrderComponent, 'Edm.String')

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

Static STORAGE_LOCATION

STORAGE_LOCATION: StringField<ProcessOrderComponent> = new StringField('StorageLocation', ProcessOrderComponent, 'Edm.String')

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

Static SUPPLY_AREA

SUPPLY_AREA: StringField<ProcessOrderComponent> = new StringField('SupplyArea', ProcessOrderComponent, 'Edm.String')

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

Static WITHDRAWN_QUANTITY

WITHDRAWN_QUANTITY: BigNumberField<ProcessOrderComponent> = new BigNumberField('WithdrawnQuantity', ProcessOrderComponent, 'Edm.Decimal')

Static representation of the withdrawnQuantity 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<ProcessOrderComponent> | BigNumberField<ProcessOrderComponent> | DateField<ProcessOrderComponent>> = [ProcessOrderComponent.RESERVATION,ProcessOrderComponent.REQUIRED_QUANTITY,ProcessOrderComponent.WITHDRAWN_QUANTITY,ProcessOrderComponent.BOM_ITEM,ProcessOrderComponent.STORAGE_LOCATION,ProcessOrderComponent.SUPPLY_AREA,ProcessOrderComponent.MANUFACTURING_ORDER_SEQUENCE,ProcessOrderComponent.MANUFACTURING_ORDER,ProcessOrderComponent.MANUFACTURING_ORDER_OPERATION,ProcessOrderComponent.MANUFACTURING_ORDER_CATEGORY,ProcessOrderComponent.MANUFACTURING_ORDER_TYPE,ProcessOrderComponent.RESERVATION_ITEM,ProcessOrderComponent.ORDER_INTERNAL_BILL_OF_OPERATIONS,ProcessOrderComponent.BILL_OF_MATERIAL_ITEM_NUMBER,ProcessOrderComponent.BOM_ITEM_DESCRIPTION,ProcessOrderComponent.MATERIAL,ProcessOrderComponent.PLANT,ProcessOrderComponent.PRODUCTION_PLANT,ProcessOrderComponent.MATL_COMP_REQUIREMENT_DATE,ProcessOrderComponent.BASE_UNIT]

All fields of the ProcessOrderComponent entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_ProcessOrderComponent"

Technical entity name for ProcessOrderComponent.

Static _keyFields

_keyFields: Array<Selectable<ProcessOrderComponent>> = [ProcessOrderComponent.RESERVATION, ProcessOrderComponent.RESERVATION_ITEM]

All key fields of the ProcessOrderComponent entity.

Static _keys

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

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

Type declaration

Static _serviceName

_serviceName: string = "API_PROCESS_ORDERS"
deprecated

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

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

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<ProcessOrderComponent>

    A builder that constructs instances of entity type ProcessOrderComponent.

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

    Returns ProcessOrderComponentRequestBuilder

    A ProcessOrderComponent request builder.