Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_InspLotUsageDecision" of service "API_INSPECTIONLOT_SRV". This service is part of the following communication scenarios: Quality Inspection Process Integration (SAP_COM_0318). See https://api.sap.com/api/API_INSPECTIONLOT_SRV for more information.

Hierarchy

  • Entity
    • InspLotUsageDecision

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Returns InspLotUsageDecision

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 changedDateTime

changedDateTime: Moment

UTC Time Stamp in Short Form (YYYYMMDDhhmmss). The UTC time stamp is the date and time relative to UTC (Universal Coordinated Time). To standardize local times in a UTC time stamp and thus make them comparable with other times, these local times need to be converted using your time zone and the ABAP command convert.Even if the system is able to determine the time zone from Customizing or master data, you shoul save the time zone redundantly here.The internal structure of the UTC time stamp is subdivided into a date part and a time part in packed number format <YYYYMMDDhhmmss>. You can also use the high resolution UTC time stamp (10^-7 seconds).

nullable

Optional inspLotUsageDecisionCatalog

inspLotUsageDecisionCatalog: string

Catalog. Main category by which code groups and codes are classified according to their contents (e.g. characteristic attributes, defect types, usage decisions). The meaning of catalogs 0 through 9 and A through O is assigned by SAP. However you can freely define catalog types P through Z. Maximum length: 1.

nullable

Optional inspLotUsageDecisionChangedBy

inspLotUsageDecisionChangedBy: string

Usage Decision Changed By. Maximum length: 12.

nullable

Optional inspLotUsageDecisionChangedOn

inspLotUsageDecisionChangedOn: Moment

Date When Usage Decision Was Changed.

nullable

Optional inspLotUsageDecisionCodeGroup

inspLotUsageDecisionCodeGroup: string

Usage Decision Code Group. Maximum length: 8.

nullable

Optional inspLotUsageDecisionLevel

inspLotUsageDecisionLevel: string

Inspection Lot, Partial Lot, Single Unit, Interval. You can make the usage decision for a quality inspection at different levels. For example, you can make usage decisions at the level of the inspection lot, partial lot, interval, and single unit. Each level is designated by a code and stored in the data base. Maximum length: 1.

nullable

Optional inspLotUsageDecisionTime

inspLotUsageDecisionTime: Time

Time when Usage Decision Was Recorded. Time of when the usage decision was recorded. The system enters the current system time.

nullable

Optional inspLotUsageDecisionValuation

inspLotUsageDecisionValuation: string

Code Valuation. Specifies the valuation of a code from the inspection catalog. Maximum length: 1.

nullable

Optional inspLotUsgeDcsnChangedTime

inspLotUsgeDcsnChangedTime: Time

Time when Usage Decision Changed. Time when the usage decision was changed. The system enters the current system time.

nullable

Optional inspLotUsgeDcsnDynValuation

inspLotUsgeDcsnDynValuation: string

Dynamic Modif. Valuation According to Worst Case Principle. Determines that if one characteristic is rejected, then the entire lot must be rejected. The system sets this indicator when the valuation rule in the sampling procedure stipulates that the valuation is carried out according to the worst-case principle. Maximum length: 1.

nullable

Optional inspLotUsgeDcsnFollowUpAction

inspLotUsgeDcsnFollowUpAction: string

Follow-Up Action. Specifies the follow-up action that is performed when the related usage decision code is selected. This field is only relevant in the context of quality inspections with warehouse management. In this case you use follow-up actions to trigger stock postings. Maximum length: 8.

nullable

Optional inspLotUsgeDcsnHasLongText

inspLotUsgeDcsnHasLongText: boolean

Usage Decision Has Long Text.

nullable

Optional inspLotUsgeDcsnSelectedSet

inspLotUsgeDcsnSelectedSet: string

Selected Set of the Usage Decision. Selected set of the usage decision. Maximum length: 8.

nullable

inspectionLot

inspectionLot: string

Inspection Lot Number. Number that uniquely identifies an inspection lot. The inspection lot number is assigned by the system. Maximum length: 12.

Optional inspectionLotQualityScore

inspectionLotQualityScore: BigNumber

Quality Score. Standard statistical value for valuating the quality of an inspection lot. The quality score provides input, along with other factors, to the vendor evaluation.

nullable

Optional inspectionLotUsageDecidedBy

inspectionLotUsageDecidedBy: string

Usage Decision Made By. Maximum length: 12.

nullable

Optional inspectionLotUsageDecidedOn

inspectionLotUsageDecidedOn: Moment

Date When Usage Decision Was Made.

nullable

Optional inspectionLotUsageDecisionCode

inspectionLotUsageDecisionCode: string

Usage Decision Code. Code of the usage decision. 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 selectedCodeSetPlant

selectedCodeSetPlant: string

Plant. Key uniquely identifying a plant. Maximum length: 4.

nullable

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

All fields selector.

Static CHANGED_DATE_TIME

CHANGED_DATE_TIME: DateField<InspLotUsageDecision> = new DateField('ChangedDateTime', InspLotUsageDecision, 'Edm.DateTimeOffset')

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

Static INSPECTION_LOT

INSPECTION_LOT: StringField<InspLotUsageDecision> = new StringField('InspectionLot', InspLotUsageDecision, 'Edm.String')

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

Static INSPECTION_LOT_QUALITY_SCORE

INSPECTION_LOT_QUALITY_SCORE: BigNumberField<InspLotUsageDecision> = new BigNumberField('InspectionLotQualityScore', InspLotUsageDecision, 'Edm.Decimal')

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

Static INSPECTION_LOT_USAGE_DECIDED_BY

INSPECTION_LOT_USAGE_DECIDED_BY: StringField<InspLotUsageDecision> = new StringField('InspectionLotUsageDecidedBy', InspLotUsageDecision, 'Edm.String')

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

Static INSPECTION_LOT_USAGE_DECIDED_ON

INSPECTION_LOT_USAGE_DECIDED_ON: DateField<InspLotUsageDecision> = new DateField('InspectionLotUsageDecidedOn', InspLotUsageDecision, 'Edm.DateTime')

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

Static INSPECTION_LOT_USAGE_DECISION_CODE

INSPECTION_LOT_USAGE_DECISION_CODE: StringField<InspLotUsageDecision> = new StringField('InspectionLotUsageDecisionCode', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USAGE_DECISION_CATALOG

INSP_LOT_USAGE_DECISION_CATALOG: StringField<InspLotUsageDecision> = new StringField('InspLotUsageDecisionCatalog', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USAGE_DECISION_CHANGED_BY

INSP_LOT_USAGE_DECISION_CHANGED_BY: StringField<InspLotUsageDecision> = new StringField('InspLotUsageDecisionChangedBy', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USAGE_DECISION_CHANGED_ON

INSP_LOT_USAGE_DECISION_CHANGED_ON: DateField<InspLotUsageDecision> = new DateField('InspLotUsageDecisionChangedOn', InspLotUsageDecision, 'Edm.DateTime')

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

Static INSP_LOT_USAGE_DECISION_CODE_GROUP

INSP_LOT_USAGE_DECISION_CODE_GROUP: StringField<InspLotUsageDecision> = new StringField('InspLotUsageDecisionCodeGroup', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USAGE_DECISION_LEVEL

INSP_LOT_USAGE_DECISION_LEVEL: StringField<InspLotUsageDecision> = new StringField('InspLotUsageDecisionLevel', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USAGE_DECISION_TIME

INSP_LOT_USAGE_DECISION_TIME: TimeField<InspLotUsageDecision> = new TimeField('InspLotUsageDecisionTime', InspLotUsageDecision, 'Edm.Time')

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

Static INSP_LOT_USAGE_DECISION_VALUATION

INSP_LOT_USAGE_DECISION_VALUATION: StringField<InspLotUsageDecision> = new StringField('InspLotUsageDecisionValuation', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USGE_DCSN_CHANGED_TIME

INSP_LOT_USGE_DCSN_CHANGED_TIME: TimeField<InspLotUsageDecision> = new TimeField('InspLotUsgeDcsnChangedTime', InspLotUsageDecision, 'Edm.Time')

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

Static INSP_LOT_USGE_DCSN_DYN_VALUATION

INSP_LOT_USGE_DCSN_DYN_VALUATION: StringField<InspLotUsageDecision> = new StringField('InspLotUsgeDcsnDynValuation', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USGE_DCSN_FOLLOW_UP_ACTION

INSP_LOT_USGE_DCSN_FOLLOW_UP_ACTION: StringField<InspLotUsageDecision> = new StringField('InspLotUsgeDcsnFollowUpAction', InspLotUsageDecision, 'Edm.String')

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

Static INSP_LOT_USGE_DCSN_HAS_LONG_TEXT

INSP_LOT_USGE_DCSN_HAS_LONG_TEXT: BooleanField<InspLotUsageDecision> = new BooleanField('InspLotUsgeDcsnHasLongText', InspLotUsageDecision, 'Edm.Boolean')

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

Static INSP_LOT_USGE_DCSN_SELECTED_SET

INSP_LOT_USGE_DCSN_SELECTED_SET: StringField<InspLotUsageDecision> = new StringField('InspLotUsgeDcsnSelectedSet', InspLotUsageDecision, 'Edm.String')

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

Static SELECTED_CODE_SET_PLANT

SELECTED_CODE_SET_PLANT: StringField<InspLotUsageDecision> = new StringField('SelectedCodeSetPlant', InspLotUsageDecision, 'Edm.String')

Static representation of the selectedCodeSetPlant 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<InspLotUsageDecision> | BigNumberField<InspLotUsageDecision> | DateField<InspLotUsageDecision> | TimeField<InspLotUsageDecision> | BooleanField<InspLotUsageDecision>> = [InspLotUsageDecision.INSPECTION_LOT,InspLotUsageDecision.INSP_LOT_USAGE_DECISION_LEVEL,InspLotUsageDecision.INSPECTION_LOT_QUALITY_SCORE,InspLotUsageDecision.INSP_LOT_USAGE_DECISION_CATALOG,InspLotUsageDecision.SELECTED_CODE_SET_PLANT,InspLotUsageDecision.INSP_LOT_USGE_DCSN_SELECTED_SET,InspLotUsageDecision.INSP_LOT_USAGE_DECISION_CODE_GROUP,InspLotUsageDecision.INSPECTION_LOT_USAGE_DECISION_CODE,InspLotUsageDecision.INSP_LOT_USGE_DCSN_DYN_VALUATION,InspLotUsageDecision.INSP_LOT_USAGE_DECISION_VALUATION,InspLotUsageDecision.INSP_LOT_USGE_DCSN_FOLLOW_UP_ACTION,InspLotUsageDecision.INSPECTION_LOT_USAGE_DECIDED_BY,InspLotUsageDecision.INSPECTION_LOT_USAGE_DECIDED_ON,InspLotUsageDecision.INSP_LOT_USAGE_DECISION_TIME,InspLotUsageDecision.INSP_LOT_USAGE_DECISION_CHANGED_BY,InspLotUsageDecision.INSP_LOT_USAGE_DECISION_CHANGED_ON,InspLotUsageDecision.INSP_LOT_USGE_DCSN_CHANGED_TIME,InspLotUsageDecision.INSP_LOT_USGE_DCSN_HAS_LONG_TEXT,InspLotUsageDecision.CHANGED_DATE_TIME]

All fields of the InspLotUsageDecision entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_InspLotUsageDecision"

Technical entity name for InspLotUsageDecision.

Static _keyFields

_keyFields: Array<Selectable<InspLotUsageDecision>> = [InspLotUsageDecision.INSPECTION_LOT]

All key fields of the InspLotUsageDecision entity.

Static _keys

_keys: any = InspLotUsageDecision._keyFields.reduce((acc: any, field) => {acc[field.fieldName] = field;return acc;}, {})

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

Static _serviceName

_serviceName: string = "API_INSPECTIONLOT_SRV"
deprecated

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

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

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<InspLotUsageDecision>

    A builder that constructs instances of entity type InspLotUsageDecision.

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>): EntityBuilderType<EntityT, JsonT>
  • Type parameters

    • EntityT: Entity

    • JsonT

    Parameters

    • entityConstructor: Constructable<EntityT>

    Returns EntityBuilderType<EntityT, JsonT>

Static requestBuilder

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

    Returns InspLotUsageDecisionRequestBuilder

    A InspLotUsageDecision request builder.