Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "BatchPlant" of service "cds_api_batch_srv". This service is part of the following communication scenarios: Batch Management OData Integration (SAP_COM_0337). See https://api.sap.com/api/API_BATCH_SRV for more information.

Hierarchy

  • any
    • BatchPlant

Implements

Index

Properties

batch

batch: string

Batch Number. Assigns a material that is manufactured in batches or production lots to a specific batch. Maximum length: 10.

batchIdentifyingPlant

batchIdentifyingPlant: string

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

nullable

inventoryValuationType

inventoryValuationType: string

Valuation Type. Uniquely identifies separately valuated stocks of a material. The valuation types allowed for a material are determined by the valuation category.If a material is valuated according to its origin (valuation category H), you can define the possible countries of origin as valuation types. Maximum length: 10.

nullable

lastChangeDateTime

lastChangeDateTime: Moment

Last Change Timestamp.

nullable

material

material: string

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

plant

plant: string

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

toBatch

toBatch: Batch

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

Static ALL_FIELDS

ALL_FIELDS: any = new AllFields('*', BatchPlant)

All fields selector.

Static BATCH

BATCH: StringField<BatchPlant> = new StringField('Batch', BatchPlant, 'Edm.String')

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

Static BATCH_IDENTIFYING_PLANT

BATCH_IDENTIFYING_PLANT: StringField<BatchPlant> = new StringField('BatchIdentifyingPlant', BatchPlant, 'Edm.String')

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

Static INVENTORY_VALUATION_TYPE

INVENTORY_VALUATION_TYPE: StringField<BatchPlant> = new StringField('InventoryValuationType', BatchPlant, 'Edm.String')

Static representation of the inventoryValuationType 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<BatchPlant> = new DateField('LastChangeDateTime', BatchPlant, '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<BatchPlant> = new StringField('Material', BatchPlant, '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 PLANT

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

TO_BATCH: OneToOneLink<BatchPlant, Batch> = new OneToOneLink('to_Batch', BatchPlant, Batch)

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

Static _allFields

_allFields: any[] = [BatchPlant.MATERIAL,BatchPlant.BATCH,BatchPlant.PLANT,BatchPlant.BATCH_IDENTIFYING_PLANT,BatchPlant.INVENTORY_VALUATION_TYPE,BatchPlant.LAST_CHANGE_DATE_TIME,BatchPlant.TO_BATCH]

All fields of the BatchPlant entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "BatchPlant"

Technical entity name for BatchPlant.

Static _keyFields

_keyFields: Array<Selectable<BatchPlant>> = [BatchPlant.MATERIAL, BatchPlant.BATCH, BatchPlant.PLANT]

All key fields of the BatchPlant entity.

Static _keys

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

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

Static _serviceName

_serviceName: string = "cds_api_batch_srv"

Technical service name for BatchPlant.

Methods

Static builder

  • Returns an entity builder to construct instances BatchPlant.

    Returns EntityBuilderType<BatchPlant, BatchPlantType>

    A builder that constructs instances of entity type BatchPlant.

Static customField

  • Returns a selectable object that allows the selection of custom field in a get request for the entity BatchPlant.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<BatchPlant>

    A builder that constructs instances of entity type BatchPlant.

Static requestBuilder

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

    Returns BatchPlantRequestBuilder

    A BatchPlant request builder.