Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_PlannedOrderComponent" of service "API_PLANNED_ORDERS". This service is part of the following communication scenarios: Production Planning Integration (SAP_COM_0104). See https://api.sap.com/api/API_PLANNED_ORDERS for more information.

Hierarchy

  • Entity
    • PlannedOrderComponent

Implements

Index

Constructors

Properties

Methods

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 assembly

assembly: undefined | string

Higher-Level Assembly Material. Indicates the number of the assembly for which the component is required. Maximum length: 40.

nullable

Optional assemblyOrderLevelValue

assemblyOrderLevelValue: undefined | string

Assembly Order Level. Maximum length: 2.

nullable

Optional assemblyOrderPathValue

assemblyOrderPathValue: undefined | string

Assembly Order Path. Maximum length: 2.

nullable

Optional baseUnit

baseUnit: undefined | string

Base Unit of Measure. Unit of measure in which stocks of the material are managed. The system converts all the quantities you enter in other units of measure (alternative units of measure) to the base unit of measure. You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.Since all data is updated in the base unit of measure, your entry is particularly important for the conversion of alternative units of measure. A quantity in the alternative unit of measure can only be shown precisely if its value can be shown with the decimal places available. To ensure this, please note the following:The base unit of measure is the unit satisfying the highest necessary requirement for precision.The conversion of alternative units of measure to the base unit should result in simple decimal fractions (not, for example, 1/3 = 0.333...).Inventory ManagementIn Inventory Management, the base unit of measure is the same as the stockkeeping unit.ServicesServices have units of measure of their own, including the following:Service unitUnit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level.BlanketUnit of measure at service line level for services to be provided once only, and for which no precise quantities can or are to be specified. Maximum length: 3.

nullable

Optional billOfMaterialCategory

billOfMaterialCategory: undefined | string

Bill of Material Category Code. Maximum length: 1.

nullable

Optional billOfMaterialInternalId

billOfMaterialInternalId: undefined | string

Bill of Material. Number used in combination with the BOM category to uniquely identify a BOM or a BOM group. The system assigns this number internally. These numbers are irrelevant to the user. You access the BOM by entering the object (for example, material or equipment) to which the BOM belongs.The system stores the following information under this number:all alternatives in a multiple BOMall variants in a variant BOMBOMs that are allocated to more than one plant. Maximum length: 8.

nullable

Optional billOfMaterialItemNumber

billOfMaterialItemNumber: undefined | string

BOM item number. Item number of the BOM components copied into the order. Maximum length: 4.

nullable

Optional billOfMaterialVariant

billOfMaterialVariant: undefined | string

Alternative BOM. Identifies one BOM in a BOM group. One product or assembly can be described by a number of (alternative) BOMs that represent, for example, different manufacturing processes for different lot sizes. These alternative BOMs are grouped together as one multiple BOM.Alternatives are maintained separately for each BOM usage. Maximum length: 2.

nullable

Optional bomItem

bomItem: undefined | string

Bill of Material Item. Maximum length: 8.

nullable

Optional bomItemCategory

bomItemCategory: undefined | string

Bill of Material Item Category. Maximum length: 1.

nullable

Optional bomItemDescription

bomItemDescription: undefined | string

BOM Item Text (Line 1). Text of up to 40 characters, which forms the first of two lines of text describing the item. If this text length (two lines of 40 characters each) is not sufficient, you can also enter a long text by choosing menu option Extras -> Long text -> Item.When you create an item long text, the first 80 characters of the BOM item text are copied to the long text.If you change the BOM item text, the first 80 characters of long text are automatically changed, too. If you change the first two lines of the BOM item long text, the short text is automatically changed.Note:For text items, this text is copied to the component description field on the item overview. Maximum length: 40.

nullable

Optional componentScrapInPercent

componentScrapInPercent: BigNumber

Component Scrap in Percent. Percentage of scrap that occurs during production of the material if the material is a component. Component scrap is used in material requirements planning (MRP) to determine the quantities of components required. When exploding the bill of material (BOM), the system increases the required quantities of the components by the calculated scrap quantity.ExampleRequired quantity 200 piecesComponent scrap 10%Scrap quantity 20 piecesTherefore, 220 pieces are required.For examples of calculation in connection with the indicator for net scrap, see the documentation for this indicator.If there is also assembly scrap for a higher-level assembly, the system adds together the two types of scrap.If component scrap has been entered in the BOM, this value applies. Otherwise, the value specified in the material master record is used.

nullable

Optional debitCreditCode

debitCreditCode: undefined | string

Debit/Credit Code. Maximum length: 1.

nullable

Optional discontinuationGroup

discontinuationGroup: undefined | string

Discontinuation Group. Maximum length: 2.

nullable

Optional entryUnit

entryUnit: undefined | string

Unit of entry. Specifies the unit of measure in which the goods movement or inventory count is entered. Enter a unit of measure here only if it differs from the default unit of measure.There are the following default units of measure:the order unit for goods receipts with reference to purchase ordersthe production unit for goods receipts with reference to production ordersthe unit of issue for other goods movementsIf the default unit of measure has not been defined in the material master record, the system will suggest the stockkeeping unit. Maximum length: 3.

nullable

Optional followUpGroup

followUpGroup: undefined | string

Follow-up Group. Maximum length: 2.

nullable

Optional followUpMaterial

followUpMaterial: undefined | string

Follow-Up / Original Material. Maximum length: 40.

nullable

Optional followUpMaterialIsNotActive

followUpMaterialIsNotActive: undefined | false | true

Indicator: Follow-Up Material is Active.

nullable

Optional goodsMovementEntryQty

goodsMovementEntryQty: BigNumber

Quantity in Unit of Entry.

nullable

Optional lastChangeDateTime

lastChangeDateTime: Moment

Last Change to Planned Order: Time Stamp.

nullable

Optional material

material: undefined | string

Material Number. Alphanumeric key uniquely identifying the material. Maximum length: 40.

nullable

Optional materialComponentIsPhantomItem

materialComponentIsPhantomItem: undefined | false | true

Phantom Item Indicator.

nullable

Optional matlCompDiscontinuationType

matlCompDiscontinuationType: undefined | string

Discontinuation Type. This indicator is used to identify that the material is a part to be discontinued and it activates the discontinuation procedure during the planning run. If the indicator is set, the system passes on the dependent requirements that are no longer covered by the warehouse stock of the material to the follow-up material during the planning run.Prerequisites:Materials and follow-up materials must by planned using one of the MRP procedures.The base unit of measure of the follow-up material must be the same as the base unit of measure of the material to be discontinued. Maximum length: 1.

nullable

Optional matlCompIsFollowUpMaterial

matlCompIsFollowUpMaterial: undefined | false | true

Indicator: Component is Follow-Up Material.

nullable

Optional matlCompRequirementDate

matlCompRequirementDate: Moment

Material Component Requirement Date.

nullable

Optional mrpController

mrpController: undefined | string

MRP Controller. Maximum length: 3.

nullable

Optional orderLevelValue

orderLevelValue: undefined | string

Order level. The order level or the order path are only relevant to planning with phantom assemblies. Order level and order path together define the exact position of a phantom assembly within the bill of material structure.A bill of material contains the following phantom assemblies (PhanAS) and materials:Material'A'___PhantAS'B' PhantAS'C' Material'D'_____ ___PhantAS'E' Material'F' Material'G' Material'H'Material'J'To retrace the position of individual phantom assemblies within the BOM structure, the order levels and order paths are given according to the following logic:per BOM level, a number is given for the order levelper BOM branch, a number is given for the order pathIn the following BOM, the first character displays the order level, and the second character displays the order path. Here, the following is valid: If the material is not a phantom assembly, the system gives it the character '0' for both level and path. However, if a material is a component of a phantom assembly, then it also receives the level and path of the phantom assembly.Material'A'(0/0)___PhantAS'B' PhantAS'C' Material'D'(1/1) (1/2) (0/0)_____ ___PhantAS'E' Material'F' Material'G' Material'H'(2/1) (1/1) (1/2) (1/2)Material'J'(2/1). Maximum length: 2.

nullable

Optional orderPathValue

orderPathValue: undefined | string

Order path. The order level or the order path are only relevant for planning with phantom assemblies. Order levels and order paths together indicate the exact item of a phantom assembly within a bill of material.A bill of material contains the following phantom assemblies (PhantAs) and materials:Material'A'___PhantAs'B' PhantAs'C' Material'D'_____ ___PhantAs'E' Material'F' Material'G' Material'H'Material'J'To be able to trace individual phantom assemblies through the BOM structure, the order levels and paths are given according to the following logic:One number for the order level is given per BOM levelOne number for the order path is given per BOM pathIn the following BOM, the first number shows the order level and the second number shows the order path. Here, the following is valid: If a material is not a phantom assembly, the number '0' is given as level and path. However, if a material is a component of a phantom assembly, then the phantom assembly passes its level and path on to this component.Material'A'(0/0)___PhantAs'B' PhantAs'C' Material'D'(1/1) (1/2) (0/0)_____ ___PhantAs'E' Material'F' Material'G' Material'H'(2/1) (1/1) (1/2) (1/2)Material'J'(2/1). Maximum length: 2.

nullable

Optional plannedOrder

plannedOrder: undefined | string

Planned Order. Number that specifically identifies a planned order for a material. Maximum length: 10.

nullable

Optional plant

plant: undefined | string

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

nullable

Optional quantityIsFixed

quantityIsFixed: undefined | false | true

Quantity is fixed. Determines that the quantity of an item is constant. Set this indicator if the quantity in a relational system does not change.If an item of a BOM is marked as being fixed and the quantity of the finished product to be manufactured is changed, the quantity of this item does not change.If a "materials to be provided" item is not marked as being fixed, and the quantity of the subcontracted item is changed, the quantity of the material to be provided to the subcontractor changes proportionately.

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 requirements. Alphanumeric key uniquely identifying the document. Maximum length: 10.

reservationItem

reservationItem: string

Reservation Item. Maximum length: 4.

Optional sortField

sortField: undefined | string

Sort String. String which can be defined as required for sorting components for display. Maximum length: 10.

nullable

Optional storageLocation

storageLocation: undefined | string

Storage Location. Maximum length: 4.

nullable

Optional supplyArea

supplyArea: undefined | 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<PlannedOrderComponent> = new AllFields('*', PlannedOrderComponent)

All fields selector.

Static ASSEMBLY

ASSEMBLY: StringField<PlannedOrderComponent> = new StringField('Assembly', PlannedOrderComponent, 'Edm.String')

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

Static ASSEMBLY_ORDER_LEVEL_VALUE

ASSEMBLY_ORDER_LEVEL_VALUE: StringField<PlannedOrderComponent> = new StringField('AssemblyOrderLevelValue', PlannedOrderComponent, 'Edm.String')

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

Static ASSEMBLY_ORDER_PATH_VALUE

ASSEMBLY_ORDER_PATH_VALUE: StringField<PlannedOrderComponent> = new StringField('AssemblyOrderPathValue', PlannedOrderComponent, 'Edm.String')

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

Static BASE_UNIT

BASE_UNIT: StringField<PlannedOrderComponent> = new StringField('BaseUnit', PlannedOrderComponent, '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_CATEGORY

BILL_OF_MATERIAL_CATEGORY: StringField<PlannedOrderComponent> = new StringField('BillOfMaterialCategory', PlannedOrderComponent, 'Edm.String')

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

Static BILL_OF_MATERIAL_INTERNAL_ID

BILL_OF_MATERIAL_INTERNAL_ID: StringField<PlannedOrderComponent> = new StringField('BillOfMaterialInternalID', PlannedOrderComponent, 'Edm.String')

Static representation of the billOfMaterialInternalId 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<PlannedOrderComponent> = new StringField('BillOfMaterialItemNumber', PlannedOrderComponent, '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 BILL_OF_MATERIAL_VARIANT

BILL_OF_MATERIAL_VARIANT: StringField<PlannedOrderComponent> = new StringField('BillOfMaterialVariant', PlannedOrderComponent, 'Edm.String')

Static representation of the billOfMaterialVariant 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<PlannedOrderComponent> = new StringField('BOMItem', PlannedOrderComponent, '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_CATEGORY

BOM_ITEM_CATEGORY: StringField<PlannedOrderComponent> = new StringField('BOMItemCategory', PlannedOrderComponent, 'Edm.String')

Static representation of the bomItemCategory 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<PlannedOrderComponent> = new StringField('BOMItemDescription', PlannedOrderComponent, '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 COMPONENT_SCRAP_IN_PERCENT

COMPONENT_SCRAP_IN_PERCENT: BigNumberField<PlannedOrderComponent> = new BigNumberField('ComponentScrapInPercent', PlannedOrderComponent, 'Edm.Decimal')

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

Static DEBIT_CREDIT_CODE

DEBIT_CREDIT_CODE: StringField<PlannedOrderComponent> = new StringField('DebitCreditCode', PlannedOrderComponent, 'Edm.String')

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

Static DISCONTINUATION_GROUP

DISCONTINUATION_GROUP: StringField<PlannedOrderComponent> = new StringField('DiscontinuationGroup', PlannedOrderComponent, 'Edm.String')

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

Static ENTRY_UNIT

ENTRY_UNIT: StringField<PlannedOrderComponent> = new StringField('EntryUnit', PlannedOrderComponent, 'Edm.String')

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

Static FOLLOW_UP_GROUP

FOLLOW_UP_GROUP: StringField<PlannedOrderComponent> = new StringField('FollowUpGroup', PlannedOrderComponent, 'Edm.String')

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

Static FOLLOW_UP_MATERIAL

FOLLOW_UP_MATERIAL: StringField<PlannedOrderComponent> = new StringField('FollowUpMaterial', PlannedOrderComponent, 'Edm.String')

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

Static FOLLOW_UP_MATERIAL_IS_NOT_ACTIVE

FOLLOW_UP_MATERIAL_IS_NOT_ACTIVE: BooleanField<PlannedOrderComponent> = new BooleanField('FollowUpMaterialIsNotActive', PlannedOrderComponent, 'Edm.Boolean')

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

Static GOODS_MOVEMENT_ENTRY_QTY

GOODS_MOVEMENT_ENTRY_QTY: BigNumberField<PlannedOrderComponent> = new BigNumberField('GoodsMovementEntryQty', PlannedOrderComponent, 'Edm.Decimal')

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

Static LAST_CHANGE_DATE_TIME

LAST_CHANGE_DATE_TIME: DateField<PlannedOrderComponent> = new DateField('LastChangeDateTime', PlannedOrderComponent, 'Edm.DateTimeOffset')

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

Static MATERIAL

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

MATERIAL_COMPONENT_IS_PHANTOM_ITEM: BooleanField<PlannedOrderComponent> = new BooleanField('MaterialComponentIsPhantomItem', PlannedOrderComponent, 'Edm.Boolean')

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

Static MATL_COMP_DISCONTINUATION_TYPE

MATL_COMP_DISCONTINUATION_TYPE: StringField<PlannedOrderComponent> = new StringField('MatlCompDiscontinuationType', PlannedOrderComponent, 'Edm.String')

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

Static MATL_COMP_IS_FOLLOW_UP_MATERIAL

MATL_COMP_IS_FOLLOW_UP_MATERIAL: BooleanField<PlannedOrderComponent> = new BooleanField('MatlCompIsFollowUpMaterial', PlannedOrderComponent, 'Edm.Boolean')

Static representation of the matlCompIsFollowUpMaterial 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<PlannedOrderComponent> = new DateField('MatlCompRequirementDate', PlannedOrderComponent, '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 MRP_CONTROLLER

MRP_CONTROLLER: StringField<PlannedOrderComponent> = new StringField('MRPController', PlannedOrderComponent, 'Edm.String')

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

Static ORDER_LEVEL_VALUE

ORDER_LEVEL_VALUE: StringField<PlannedOrderComponent> = new StringField('OrderLevelValue', PlannedOrderComponent, 'Edm.String')

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

Static ORDER_PATH_VALUE

ORDER_PATH_VALUE: StringField<PlannedOrderComponent> = new StringField('OrderPathValue', PlannedOrderComponent, 'Edm.String')

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

Static PLANNED_ORDER

PLANNED_ORDER: StringField<PlannedOrderComponent> = new StringField('PlannedOrder', PlannedOrderComponent, 'Edm.String')

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

Static PLANT

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

QUANTITY_IS_FIXED: BooleanField<PlannedOrderComponent> = new BooleanField('QuantityIsFixed', PlannedOrderComponent, 'Edm.Boolean')

Static representation of the quantityIsFixed 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<PlannedOrderComponent> = new BigNumberField('RequiredQuantity', PlannedOrderComponent, '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<PlannedOrderComponent> = new StringField('Reservation', PlannedOrderComponent, '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<PlannedOrderComponent> = new StringField('ReservationItem', PlannedOrderComponent, '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 SORT_FIELD

SORT_FIELD: StringField<PlannedOrderComponent> = new StringField('SortField', PlannedOrderComponent, 'Edm.String')

Static representation of the sortField 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<PlannedOrderComponent> = new StringField('StorageLocation', PlannedOrderComponent, '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<PlannedOrderComponent> = new StringField('SupplyArea', PlannedOrderComponent, '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<PlannedOrderComponent> = new BigNumberField('WithdrawnQuantity', PlannedOrderComponent, '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<PlannedOrderComponent> | DateField<PlannedOrderComponent> | BigNumberField<PlannedOrderComponent> | BooleanField<PlannedOrderComponent>> = [PlannedOrderComponent.RESERVATION,PlannedOrderComponent.RESERVATION_ITEM,PlannedOrderComponent.PLANNED_ORDER,PlannedOrderComponent.BOM_ITEM,PlannedOrderComponent.BOM_ITEM_DESCRIPTION,PlannedOrderComponent.BILL_OF_MATERIAL_CATEGORY,PlannedOrderComponent.SORT_FIELD,PlannedOrderComponent.BILL_OF_MATERIAL_ITEM_NUMBER,PlannedOrderComponent.BILL_OF_MATERIAL_INTERNAL_ID,PlannedOrderComponent.BILL_OF_MATERIAL_VARIANT,PlannedOrderComponent.BOM_ITEM_CATEGORY,PlannedOrderComponent.MATERIAL,PlannedOrderComponent.MATL_COMP_REQUIREMENT_DATE,PlannedOrderComponent.GOODS_MOVEMENT_ENTRY_QTY,PlannedOrderComponent.ENTRY_UNIT,PlannedOrderComponent.REQUIRED_QUANTITY,PlannedOrderComponent.BASE_UNIT,PlannedOrderComponent.WITHDRAWN_QUANTITY,PlannedOrderComponent.DEBIT_CREDIT_CODE,PlannedOrderComponent.COMPONENT_SCRAP_IN_PERCENT,PlannedOrderComponent.QUANTITY_IS_FIXED,PlannedOrderComponent.MATERIAL_COMPONENT_IS_PHANTOM_ITEM,PlannedOrderComponent.PLANT,PlannedOrderComponent.STORAGE_LOCATION,PlannedOrderComponent.SUPPLY_AREA,PlannedOrderComponent.MRP_CONTROLLER,PlannedOrderComponent.ORDER_PATH_VALUE,PlannedOrderComponent.ORDER_LEVEL_VALUE,PlannedOrderComponent.ASSEMBLY,PlannedOrderComponent.ASSEMBLY_ORDER_PATH_VALUE,PlannedOrderComponent.ASSEMBLY_ORDER_LEVEL_VALUE,PlannedOrderComponent.DISCONTINUATION_GROUP,PlannedOrderComponent.MATL_COMP_DISCONTINUATION_TYPE,PlannedOrderComponent.MATL_COMP_IS_FOLLOW_UP_MATERIAL,PlannedOrderComponent.FOLLOW_UP_GROUP,PlannedOrderComponent.FOLLOW_UP_MATERIAL,PlannedOrderComponent.FOLLOW_UP_MATERIAL_IS_NOT_ACTIVE,PlannedOrderComponent.LAST_CHANGE_DATE_TIME]

All fields of the PlannedOrderComponent entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_PlannedOrderComponent"

Technical entity name for PlannedOrderComponent.

Static _keyFields

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

All key fields of the PlannedOrderComponent entity.

Static _keys

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

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

Type declaration

Static _serviceName

_serviceName: string = "API_PLANNED_ORDERS"
deprecated

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

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

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<PlannedOrderComponent>

    A builder that constructs instances of entity type PlannedOrderComponent.

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

    Returns PlannedOrderComponentRequestBuilder

    A PlannedOrderComponent request builder.