Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_ProductPlantMRPArea" of service "API_PRODUCT_SRV". This service is part of the following communication scenarios: Product Integration (SAP_COM_0009), Distributed Manufacturing Integration (SAP_COM_0077), SAP Analytics Cloud for Planning Integration (SAP_COM_0087). See https://api.sap.com/api/API_PRODUCT_SRV for more information.

Hierarchy

  • Entity
    • ProductPlantMrpArea

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Returns ProductPlantMrpArea

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 assemblyScrapPercent

assemblyScrapPercent: BigNumber

Assembly scrap in percent. Percentage scrap that occurs during production of the material if the material is an assembly. The assembly scrap is used in materials planning to calculate the lot size of the assembly. The system increases the quantity to be produced by the scrap quantity calculated.If the material is an assembly, specify the percentage scrap as required.If the quantity to be produced is 200 pieces and you specify an assembly scrap of 10%, you are reckoning with a scrap quantity of 20 pieces. As a result, 220 pieces are produced.The system increases the quantity to be produced for all of the assembly's components accordingly.

nullable

Optional dfltStorageLocationExtProcmt

dfltStorageLocationExtProcmt: string

Default storage location for external procurement. Key of the storage location that is proposed in the purchase requisition in materials planning for subsequent storage of the material. In the case of a material procured externally, this storage location is proposed in the planned order in materials planning. Maximum length: 4.

nullable

Optional fixedLotSizeQuantity

fixedLotSizeQuantity: BigNumber

Fixed lot size. Quantity that will be ordered or produced in the event of a shortage. If the amount of the shortage is less than the fixed lot size, it is the fixed lot size that is ordered or produced (and not the lesser quantity that is actually required).If the amount of the shortage is greater than the fixed lot size, a multiple of the fixed lot size is procured. The system creates several purchase order proposals for this purpose.

nullable

Optional isMarkedForDeletion

isMarkedForDeletion: boolean

Deletion Indicator. Indicator that allows you to flag a master record for deletion. A reorganization program deletes the master record from the system if you have entered a delete flag for it in the master record.You cannot delete master records online.

nullable

Optional isMrpDependentRqmt

isMrpDependentRqmt: string

MRP relevancy for dependent requirements. This indicator controls whether dependent requirements are relevant to MRP or not. Dependent requirements include dependent reservations and stock transfer requirements. You only use this indicator in connection with planning strategies for make-to-stock production, assembly planning. Note that the indicator Dependent requirements not relevant to MRP should only be used when, for example, planned independent requirements exist for an assembly. In this case, no receipt elements for the dependent requirements in MRP should be created as receipts have already been created for the planned independent requirements. Maximum length: 1.

nullable

Optional isPlannedDeliveryTime

isPlannedDeliveryTime: boolean

Data element for domain BOOLE: TRUE (='X') and FALSE (=' ').

nullable

Optional isSafetyTime

isSafetyTime: string

Safety time indicator (with or without safety time). You use this indicator to switch on the safety time actual range of coverage for a material in MRP. If you define a safety time, the requirements in MRP are brought forward on the time axis by the number of workdays you define here. The actual range of coverage corresponds to the number of days, by which the requirements are brought forward.Using this indicator you can activate the safety time and you can set whether all requirements or only independent requirements (sales order, planned independent requirements, and so on) are to be brought forward.The actual requirements dates are not changed. Maximum length: 1.

nullable

Optional isStorageCosts

isStorageCosts: string

Storage Costs Percentage Code. Indicator that specifies the storage costs percentage the system uses when calculating the lot size to determine storage costs. The storage costs percentage is based on the quantity stored and the unit price, and refers to the average value of the materials stored.The percentage is considered constant for the stocking-up period. It normally lies between 15 and 35%.The storage costs percentage is used by optimizing lot-sizing procedures to calculate the lot size, but not for any other purpose. Maximum length: 1.

nullable

Optional lotSizeIndependentCosts

lotSizeIndependentCosts: BigNumber

Lot-Size-Independent Costs. Costs that are incurred, irrespective of lot size, for each purchase order or production order over and above the purchase order price or production costs. The ordering costs are used only for calculating the lot size in optimum lot-sizing procedures. You must specify the ordering costs in the currency of the company code belonging to the plant.

nullable

Optional lotSizeRoundingQuantity

lotSizeRoundingQuantity: BigNumber

Rounding value for purchase order quantity. Value to a multiple of which the system rounds up the procurement quantity. The rounding value is used in the planning run if no rounding profile has been specified in the material master record.

nullable

Optional lotSizingProcedure

lotSizingProcedure: string

Lot Sizing Procedure within Materials Planning. Key that determines which lot-sizing procedure the system uses within materials planning to calculate the quantity to be procured or produced. Maximum length: 2.

nullable

Optional maximumLotSizeQuantity

maximumLotSizeQuantity: BigNumber

Maximum Lot Size. Quantity that is not allowed to be exceeded during procurement. The system takes this value into account during the automatic lot size calculation for planned orders and production orders. The lot size of the individual orders cannot exceed this value.

nullable

Optional maximumStockQuantity

maximumStockQuantity: BigNumber

Maximum Stock Level. Quantity of the material in this plant that may not be exceeded. In materials planning, the maximum stock level is used only if you have chosen Replenish to maximum stock level as the lot-sizing procedure; that is, you have entered HB as the lot size key.Enter a value if you have chosen Replenish to maximum stock level as the lot-sizing procedure.

nullable

Optional minimumLotSizeQuantity

minimumLotSizeQuantity: BigNumber

Minimum Lot Size. Minimum procurement quantity.

nullable

mrpArea

mrpArea: string

MRP Area. Number of the MRP area for which material requirements planning should be carried out separately. Maximum length: 10.

Optional mrpGroup

mrpGroup: string

MRP Group. The MRP group contains all the materials from the point of view of MRP for assigning special control parameters for the total planning run. These control parameters include, for example, the strategy group, the consumption mode, and the planning horizon. Maximum length: 4.

nullable

Optional mrpPlanningCalendar

mrpPlanningCalendar: string

PPC Planning Calendar. Three character number (numeric or using letters) that specifically identifies a PPS-planning calendar. Maximum length: 3.

nullable

Optional mrpResponsible

mrpResponsible: string

MRP Controller. Specifies the number of the MRP controller or group of MRP controllers responsible for material planning for the material. Maximum length: 3.

nullable

Optional mrpType

mrpType: string

MRP Type. Key that determines whether and how the material is planned. You have the following options: Manual reorder point planningAutomatic reorder point planningForecast-based planningMaterial requirements planning with forecasts for unplanned consumptionMaster production scheduling (MPS)Demand-driven replenishment. Maximum length: 2.

nullable

Optional perdPrflForSftyTme

perdPrflForSftyTme: string

Period Profile for Safety Time. The period profile for the safety time / actual range of coverage contains the periods (stating to/from date) with the safety time/actual range of coverage that is valid for each period. In order to smooth out seasonal fluctuations, for any definable period you can define a safety time/actual range of coverage that varies from what you have maintained in the material master in the field safety time/actual range of coverage. If, for example, a higher actual range of coverage than usual is required due to higher demand during the Christmas period, you can define the period with the desired actual range of coverage in the period profile.You can also use the period profile to represent a safety time of less than one day. You do this by entering a safety time % in addition to the safety time. Maximum length: 3.

nullable

Optional plannedDeliveryDurationInDays

plannedDeliveryDurationInDays: BigNumber

Planned Delivery Time in Days. Number of calendar days needed to obtain the material or service if it is procured externally. If you have different vendors for a material, you must specify an average value. The same applies if you order the material from a fixed vendor that has varying delivery times.If you use the SAP Retail System, the planned delivery time can be suggested from the vendor sub-range in the vendor master record.

nullable

Optional planningTimeFence

planningTimeFence: string

Planning time fence. The planning time fence specifies a period within which no automatic changes are to be made to the master plan. The planning time fence is maintained in workdays.It is only used for materials that are planned using an MRP type which includes a firming type.The firming type determines how order proposlas are to be created or scheduled within the planning time fence. Maximum length: 3.

nullable

plant

plant: string

MRP area: Plant. Maximum length: 4.

Optional procurementSubType

procurementSubType: string

Special procurement type. Allows you to define the procurement type more exactly. The system determines the procurement type from the material type. You use special procurement when you want to be able to override the procurement type in the material master or define the procurement type more precisely.If the procurement type is in-house, you can nevertheless force the system to ignore the BOM and routing, and process the material as if it were externally procured, by specifying the special procurement as external.Enter the special procurement type to which you want to restrict the selection.If you procure a material externally, you may want to choose the special procurement type Consignment. If you produce the material in-house, it may be appropriate to choose Production in other plant.If a material has a routing but no BOM, it is treated as an externally procured material even if the procurement type is in-house. Both the BOM and the routing are ignored.However, if you specify the special procurement type as in-house, the routing is included even if the material has no BOM. Maximum length: 2.

nullable

product

product: string

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

Optional rangeOfCvrgPrflCode

rangeOfCvrgPrflCode: string

Range of coverage profile. The range of coverage profile contains the parameters for calculating the dynamic safety stock. This is a statistical calculation on the basis of average daily requirements. Maximum length: 3.

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 reorderThresholdQuantity

reorderThresholdQuantity: BigNumber

Reorder Point. If the stock falls below this quantity, the system flags the material for requirements planning by creating a planning file entry.

nullable

Optional rqmtQtyRcptTaktTmeInWrkgDays

rqmtQtyRcptTaktTmeInWrkgDays: BigNumber

Takt time. If a requirement quantity (for example, for capacity reasons) cannot be procured in a single lot, you have to schedule several receipts. In conjunction with the overlap indicator in the lot size, you can use the takt time to specify that these receipts are offset, that is, that they are delayed by the takt time. You enter the takt time in workdays.The system uses the takt time if a requirement is covered by several receipt elements due to restrictions on lot size such as maximum lot size (with all lot-sizing procedures) or rounding value (with fixed lot size with splitting).

nullable

Optional safetyDuration

safetyDuration: string

Safety time (in workdays). In this field, you define the number of workdays for the safety time/actual range of coverage. If you define a safety time, the requirements in MRP are brought forward on the time axis by the number of workdays you define here.This does not change the actual requirements dates. However, as the requirements have technically been brought forward, receipts are created for the earlier dates in MRP.Time-phased materials planning is based on the interval between the MRP date and the availabilty date of the next MRP date. By using the safety time/ actual range of coverage, the number of days to the interval are included in the calculation. Maximum length: 2.

nullable

Optional safetyStockQuantity

safetyStockQuantity: BigNumber

Safety Stock. Specifies the quantity whose purpose is to satisfy unexpectedly high demand in the coverage period. The risk of shortfalls is reduced by having a safety stock.

nullable

Optional srvcLvl

srvcLvl: BigNumber

Service level. Percentage specifying what proportion of the requirement is to be covered by the warehouse stock. The system uses the service level to calculate the safety stock.The higher the service level, the higher will be the safety stock calculated by the system to compensate for additional consumption or delays in delivery.

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

All fields selector.

Static ASSEMBLY_SCRAP_PERCENT

ASSEMBLY_SCRAP_PERCENT: BigNumberField<ProductPlantMrpArea> = new BigNumberField('AssemblyScrapPercent', ProductPlantMrpArea, 'Edm.Decimal')

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

Static DFLT_STORAGE_LOCATION_EXT_PROCMT

DFLT_STORAGE_LOCATION_EXT_PROCMT: StringField<ProductPlantMrpArea> = new StringField('DfltStorageLocationExtProcmt', ProductPlantMrpArea, 'Edm.String')

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

Static FIXED_LOT_SIZE_QUANTITY

FIXED_LOT_SIZE_QUANTITY: BigNumberField<ProductPlantMrpArea> = new BigNumberField('FixedLotSizeQuantity', ProductPlantMrpArea, 'Edm.Decimal')

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

Static IS_MARKED_FOR_DELETION

IS_MARKED_FOR_DELETION: BooleanField<ProductPlantMrpArea> = new BooleanField('IsMarkedForDeletion', ProductPlantMrpArea, 'Edm.Boolean')

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

Static IS_MRP_DEPENDENT_RQMT

IS_MRP_DEPENDENT_RQMT: StringField<ProductPlantMrpArea> = new StringField('IsMRPDependentRqmt', ProductPlantMrpArea, 'Edm.String')

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

Static IS_PLANNED_DELIVERY_TIME

IS_PLANNED_DELIVERY_TIME: BooleanField<ProductPlantMrpArea> = new BooleanField('IsPlannedDeliveryTime', ProductPlantMrpArea, 'Edm.Boolean')

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

Static IS_SAFETY_TIME

IS_SAFETY_TIME: StringField<ProductPlantMrpArea> = new StringField('IsSafetyTime', ProductPlantMrpArea, 'Edm.String')

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

Static IS_STORAGE_COSTS

IS_STORAGE_COSTS: StringField<ProductPlantMrpArea> = new StringField('IsStorageCosts', ProductPlantMrpArea, 'Edm.String')

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

Static LOT_SIZE_INDEPENDENT_COSTS

LOT_SIZE_INDEPENDENT_COSTS: BigNumberField<ProductPlantMrpArea> = new BigNumberField('LotSizeIndependentCosts', ProductPlantMrpArea, 'Edm.Decimal')

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

Static LOT_SIZE_ROUNDING_QUANTITY

LOT_SIZE_ROUNDING_QUANTITY: BigNumberField<ProductPlantMrpArea> = new BigNumberField('LotSizeRoundingQuantity', ProductPlantMrpArea, 'Edm.Decimal')

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

Static LOT_SIZING_PROCEDURE

LOT_SIZING_PROCEDURE: StringField<ProductPlantMrpArea> = new StringField('LotSizingProcedure', ProductPlantMrpArea, 'Edm.String')

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

Static MAXIMUM_LOT_SIZE_QUANTITY

MAXIMUM_LOT_SIZE_QUANTITY: BigNumberField<ProductPlantMrpArea> = new BigNumberField('MaximumLotSizeQuantity', ProductPlantMrpArea, 'Edm.Decimal')

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

Static MAXIMUM_STOCK_QUANTITY

MAXIMUM_STOCK_QUANTITY: BigNumberField<ProductPlantMrpArea> = new BigNumberField('MaximumStockQuantity', ProductPlantMrpArea, 'Edm.Decimal')

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

Static MINIMUM_LOT_SIZE_QUANTITY

MINIMUM_LOT_SIZE_QUANTITY: BigNumberField<ProductPlantMrpArea> = new BigNumberField('MinimumLotSizeQuantity', ProductPlantMrpArea, 'Edm.Decimal')

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

Static MRP_AREA

MRP_AREA: StringField<ProductPlantMrpArea> = new StringField('MRPArea', ProductPlantMrpArea, 'Edm.String')

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

Static MRP_GROUP

MRP_GROUP: StringField<ProductPlantMrpArea> = new StringField('MRPGroup', ProductPlantMrpArea, 'Edm.String')

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

Static MRP_PLANNING_CALENDAR

MRP_PLANNING_CALENDAR: StringField<ProductPlantMrpArea> = new StringField('MRPPlanningCalendar', ProductPlantMrpArea, 'Edm.String')

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

Static MRP_RESPONSIBLE

MRP_RESPONSIBLE: StringField<ProductPlantMrpArea> = new StringField('MRPResponsible', ProductPlantMrpArea, 'Edm.String')

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

Static MRP_TYPE

MRP_TYPE: StringField<ProductPlantMrpArea> = new StringField('MRPType', ProductPlantMrpArea, 'Edm.String')

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

Static PERD_PRFL_FOR_SFTY_TME

PERD_PRFL_FOR_SFTY_TME: StringField<ProductPlantMrpArea> = new StringField('PerdPrflForSftyTme', ProductPlantMrpArea, 'Edm.String')

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

Static PLANNED_DELIVERY_DURATION_IN_DAYS

PLANNED_DELIVERY_DURATION_IN_DAYS: BigNumberField<ProductPlantMrpArea> = new BigNumberField('PlannedDeliveryDurationInDays', ProductPlantMrpArea, 'Edm.Decimal')

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

Static PLANNING_TIME_FENCE

PLANNING_TIME_FENCE: StringField<ProductPlantMrpArea> = new StringField('PlanningTimeFence', ProductPlantMrpArea, 'Edm.String')

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

Static PLANT

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

PROCUREMENT_SUB_TYPE: StringField<ProductPlantMrpArea> = new StringField('ProcurementSubType', ProductPlantMrpArea, 'Edm.String')

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

Static PRODUCT

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

RANGE_OF_CVRG_PRFL_CODE: StringField<ProductPlantMrpArea> = new StringField('RangeOfCvrgPrflCode', ProductPlantMrpArea, 'Edm.String')

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

Static REORDER_THRESHOLD_QUANTITY

REORDER_THRESHOLD_QUANTITY: BigNumberField<ProductPlantMrpArea> = new BigNumberField('ReorderThresholdQuantity', ProductPlantMrpArea, 'Edm.Decimal')

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

Static RQMT_QTY_RCPT_TAKT_TME_IN_WRKG_DAYS

RQMT_QTY_RCPT_TAKT_TME_IN_WRKG_DAYS: BigNumberField<ProductPlantMrpArea> = new BigNumberField('RqmtQtyRcptTaktTmeInWrkgDays', ProductPlantMrpArea, 'Edm.Decimal')

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

Static SAFETY_DURATION

SAFETY_DURATION: StringField<ProductPlantMrpArea> = new StringField('SafetyDuration', ProductPlantMrpArea, 'Edm.String')

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

Static SAFETY_STOCK_QUANTITY

SAFETY_STOCK_QUANTITY: BigNumberField<ProductPlantMrpArea> = new BigNumberField('SafetyStockQuantity', ProductPlantMrpArea, 'Edm.Decimal')

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

Static SRVC_LVL

SRVC_LVL: BigNumberField<ProductPlantMrpArea> = new BigNumberField('SrvcLvl', ProductPlantMrpArea, 'Edm.Decimal')

Static representation of the srvcLvl 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<ProductPlantMrpArea> | BigNumberField<ProductPlantMrpArea> | BooleanField<ProductPlantMrpArea>> = [ProductPlantMrpArea.PRODUCT,ProductPlantMrpArea.PLANT,ProductPlantMrpArea.MRP_AREA,ProductPlantMrpArea.MRP_TYPE,ProductPlantMrpArea.MRP_RESPONSIBLE,ProductPlantMrpArea.MRP_GROUP,ProductPlantMrpArea.REORDER_THRESHOLD_QUANTITY,ProductPlantMrpArea.PLANNING_TIME_FENCE,ProductPlantMrpArea.LOT_SIZING_PROCEDURE,ProductPlantMrpArea.LOT_SIZE_ROUNDING_QUANTITY,ProductPlantMrpArea.MINIMUM_LOT_SIZE_QUANTITY,ProductPlantMrpArea.MAXIMUM_LOT_SIZE_QUANTITY,ProductPlantMrpArea.MAXIMUM_STOCK_QUANTITY,ProductPlantMrpArea.ASSEMBLY_SCRAP_PERCENT,ProductPlantMrpArea.PROCUREMENT_SUB_TYPE,ProductPlantMrpArea.DFLT_STORAGE_LOCATION_EXT_PROCMT,ProductPlantMrpArea.MRP_PLANNING_CALENDAR,ProductPlantMrpArea.SAFETY_STOCK_QUANTITY,ProductPlantMrpArea.RANGE_OF_CVRG_PRFL_CODE,ProductPlantMrpArea.SAFETY_DURATION,ProductPlantMrpArea.FIXED_LOT_SIZE_QUANTITY,ProductPlantMrpArea.LOT_SIZE_INDEPENDENT_COSTS,ProductPlantMrpArea.IS_STORAGE_COSTS,ProductPlantMrpArea.RQMT_QTY_RCPT_TAKT_TME_IN_WRKG_DAYS,ProductPlantMrpArea.SRVC_LVL,ProductPlantMrpArea.IS_MARKED_FOR_DELETION,ProductPlantMrpArea.PERD_PRFL_FOR_SFTY_TME,ProductPlantMrpArea.IS_MRP_DEPENDENT_RQMT,ProductPlantMrpArea.IS_SAFETY_TIME,ProductPlantMrpArea.PLANNED_DELIVERY_DURATION_IN_DAYS,ProductPlantMrpArea.IS_PLANNED_DELIVERY_TIME]

All fields of the ProductPlantMrpArea entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_ProductPlantMRPArea"

Technical entity name for ProductPlantMrpArea.

Static _keyFields

_keyFields: Array<Selectable<ProductPlantMrpArea>> = [ProductPlantMrpArea.PRODUCT, ProductPlantMrpArea.PLANT, ProductPlantMrpArea.MRP_AREA]

All key fields of the ProductPlantMrpArea entity.

Static _keys

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

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

Type declaration

Static _serviceName

_serviceName: string = "API_PRODUCT_SRV"
deprecated

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

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

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<ProductPlantMrpArea>

    A builder that constructs instances of entity type ProductPlantMrpArea.

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

    Returns ProductPlantMrpAreaRequestBuilder

    A ProductPlantMrpArea request builder.