Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_PurCtrAccount" of service "API_PURCHASECONTRACT_PROCESS_SRV". This service is part of the following communication scenarios: Distributed Manufacturing Integration (SAP_COM_0077), Purchase Contract Integration (SAP_COM_0101). See https://api.sap.com/api/API_PURCHASECONTRACT_PROCESS_SRV for more information.

Hierarchy

  • Entity
    • PurCtrAccount

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Returns PurCtrAccount

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 "*".

accountAssignment

accountAssignment: string

Sequential Number of Account Assignment. Number uniquely defining the account assignment of a purchase document item. Maximum length: 2.

Optional budgetPeriod

budgetPeriod: string

Budget Period. Time frame of available budget authority. During the budget period, the organization may commit, obligate, and encumber funds (terminology varies). After it, the organization may only post follow-on documents.The budget period always works together with the fund account assignment element in Funds Management (FM).Budget Period A: 2000-2010Budget Period B: 2005-2015The actuals and commitments recorded then are differentiated by the period of time on which authority was granted to a particular fund.Fund F1 Budget Period: AFund F2 Budget Period: AFund F2 Budget Period: B. Maximum length: 10.

nullable

Optional businessArea

businessArea: string

Business Area. Key that uniquely identifies a business area. Maximum length: 4.

nullable

Optional businessProcess

businessProcess: string

Business Process. Key uniquely identifying a business process. Maximum length: 12.

nullable

Optional commitmentItem

commitmentItem: string

Commitment Item. Alphanumeric code of the commitment item you are creating, changing, displaying, or to which you are assigning budget. Maximum length: 24.

nullable

Optional controllingArea

controllingArea: string

Controlling Area. Uniquely identifies a controlling area. The controlling area is the highest organizational unit in Controlling.Whether controlling area and company code are in a 1:1 relationship or a 1:n relationship, the number of posting periods in both controlling area and company code(s) must be identical. However, special periods may vary. Maximum length: 4.

nullable

Optional costCenter

costCenter: string

Cost Center. A key that uniquely identifies a cost center. Maximum length: 10.

nullable

Optional costCtrActivityType

costCtrActivityType: string

Activity Type. Key uniquely identifying . Activity types describe the activity produced by a cost center and are measured in units of time or quantity.In activity type planning, control data determines whether the activity price for evaluation of the activity type is manually set or is derived iteratively through activity price calculation. Maximum length: 6.

nullable

Optional costObject

costObject: string

Cost Object. Term identifying the cost object ID. Cost objects are the activity units of business whose costs are assigned based on the cost origins. The R/3 System distinguishes between the following types of cost objects:Cost objects represented by a cost object IDCost objects represented by objects from other components, such as production orders or sales order itemsCost objects in the following areas are represented by cost object IDs:Activity-Based Costing (CO-OM-ABC)In Activity-Based Costing, overhead is first assigned to cost centers and then to business processes. From there, the overhead is assigned to cost objects as process costs.Costs for Intangible Goods and Services (CO-PC-OBJ)In Costs for Intangible Goods and Services, costs can be analyzed on general cost objects.Product Cost by Period (CO-PC-OBJ)In Product Cost by Period you can create a cost object hierarchy to record actual costs that cannot be recorded at the material or order level. You can distribute the costs assigned to the nodes of a cost object hierarchy directly to the individual objects in the lowest cost object nodes at period-end closing (for example, product cost collectors) or you can settle the costs directly from the cost object hierarchy to a price difference account.Product Cost Controlling Information System (CO-PC)You can create further cost object IDs in the Product Cost Controlling Information System for CO product groups. You can create a cost object ID for each group, and assign materials to the cost object ID. The costs of the assigned materials appear in summarized form in the information system by product group.You can use CO product groups for product drilldown reports.The cost object type determines which functions can be used with the cost object. Functions for cost object hierarchies are performed on the assumption that the given cost object indicates the top node of the hierarchy. Maximum length: 12.

nullable

Optional earmarkedFundsDocument

earmarkedFundsDocument: string

Document Number for Earmarked Funds. Number uniquely identifying a document. Maximum length: 10.

nullable

Optional fixedAsset

fixedAsset: string

Asset Subnumber. This is the number which, together with the main asset number, uniquely identifies a fixed asset in Asset Accounting. Using the asset sub-number, you can:Provide for separate management of later acquisitions to assets.Represent complex fixed assets with their component parts.In contrast to the main asset number, the asset sub-number must be numerical. Maximum length: 4.

nullable

Optional functionalArea

functionalArea: string

Functional Area. Structure criterion for an enterprise or government based on functional aspects. Use for Cost-of-Sales AccountingThe functional area is required to create a profit and loss account in Financial Accounting using cost-of-sales accounting. The following are examples of structure criteria:ManufacturingAdministrationSalesResearch and developmentUse for GovernmentThe functional area is needed for Funds Management to meet legal requirements for reporting with functional aspects. You can use the functional area to represent the global targets and goals (such as public safety or city development), in particular the expenses of your organization.Use in cost-of-sales accountingSee the documentation on Filling the Functional Area Field.For comprehensive information on cost-of-sales accounting and on the functional area, see the SAP Library under Accounting -> Financial Accounting -> General Ledger -> Cost-of-Sales Accounting.Use in governmentFor more information on the functional area, see the implementation Guide for Funds Management Government in the section Activate Account Assignment Elements. Maximum length: 16.

nullable

Optional fundsCenter

fundsCenter: string

Funds Center. Alphanumeric code for the funds center, which you are creating, changing, or displaying, or to which you are assigning budget. Maximum length: 16.

nullable

Optional glAccount

glAccount: string

G/L Account Number. The G/L account number identifies the G/L account in a chart of accounts. Maximum length: 10.

nullable

Optional goodsRecipientName

goodsRecipientName: string

Goods Recipient/Ship-To Party. Specifies the recipient for whom the material or the service is destined. Maximum length: 12.

nullable

Optional grantId

grantId: string

Grant. Legal instrument used to establish a funding relationship between a sponsor (grantor) and grantee, in order to carry out a public purpose of support or stimulation in which the sponsor does not expect to be substantially involved. A grant may be for any purpose and cover all or only part of the costs of the project in question. You must enter a grant type for each grant you create in Grants Management (GM).The grant as an object has a finite lifecycle, divided into stages. Each stage is represented in the GM solution by a system status. The following are the stages of a grant's lifecycle:Initial DraftThis is the first stage of a grant. It is a working copy that can be modified as many times as needed.ProposalWhen the initial draft becomes a formal and complete document, it becomes a proposal.ApplicationWhen a proposal is routed to the sponsor for approval, it becomes an application. This application might contain changes in the budget or other adjustments.AwardIf the sponsor approves an application, an award is created. This is the real operative stage of a grant. The creation and consumption of the grant's budget occurs at this stage. This stage also represents the binding contract between the sponsor and the grantee.ClosingWhen an award is expiring, a phase of closing is established. Only restricted operations can be performed in this stage.ClosedThis stage defines an expired and closed grant. No further operations are allowed except archiving. Maximum length: 20.

nullable

Optional isDeleted

isDeleted: boolean

Deletion Indicator: Purchasing Document Account Assignment. Shows that the account assignment item has been deleted.

nullable

Optional jointVentureRecoveryCode

jointVentureRecoveryCode: string

Recovery Indicator. In global companies that belong to joint ventures, incurred costs are usually shared among different recovery indicators which can then be dealt with in different ways using the periodic settlement program. You can define recovery indicators at three different levels:o Document typeYou can assign a recovery indicator to each document type for thecredit side and for the debit side. These recovery indicators areinternal recovery indicators and are defined in a separate systemtable.o Cost element (primary and secondary)o Cost objectWhen you make a posting in one of the feeder systems of the Joint Venture Accounting System, all three levels are evaluated in the sequence defined. The first recovery indicator found is transferred to the Joint Venture Accounting System.o Costs that are 100% allocableo Costs borne 100% by the operatoro Overheads applied by the operatoro Costs which exceed a contractually agreed price and cannot thereforebe allocatedo Costs already allocated. Maximum length: 2.

nullable

Optional masterFixedAsset

masterFixedAsset: string

Main Asset Number. This is the number which, together with the asset sub-number, identifies a fixed asset in Asset Accounting. Maximum length: 12.

nullable

Optional multipleAcctAssgmtDistrPercent

multipleAcctAssgmtDistrPercent: BigNumber

Distribution Percentage in Case of Multiple Account Assgt. Percentage of the total order quantity that you want to allocate to this account assignment item. The percentage entered determines what percentage of the costs are to be distributed to this account assignment item.The total of the percentages must equal 100%.

nullable

Optional nonDeductibleInputTaxAmount

nonDeductibleInputTaxAmount: BigNumber

Non-deductible input tax.

nullable

Optional orderId

orderId: string

Order Number. Key that uniquely identifies an order within a client. Maximum length: 12.

nullable

Optional partnerAccountNumber

partnerAccountNumber: string

Partner Account Number. Maximum length: 10.

nullable

Optional profitCenter

profitCenter: string

Profit Center. Key which together with the controlling area uniquely identifies a profit center. Maximum length: 10.

nullable

Optional projectNetwork

projectNetwork: string

Network Number for Account Assignment. A network can structure an entire project or a task within a project. Numbers are used to differentiate these project structures.When you specify a network, for example, when you are entering attendances, you can define that the network is debited when the sender cost center is credited.Use the possible entries pushbutton to select the network number for the required project structure. Maximum length: 12.

nullable

purchaseContract

purchaseContract: string

Purchasing Document Number. Alphanumeric key uniquely identifying the document. Maximum length: 10.

purchaseContractItem

purchaseContractItem: string

Item Number of Purchasing Document. Specifies the number that uniquely identifies an item in . Maximum length: 5.

Optional purgDocNetAmount

purgDocNetAmount: BigNumber

Net Order Value in PO Currency. Value of the purchase order (including discounts and surcharges) Order value = order quantity X order price.

nullable

Optional quantity

quantity: BigNumber

Quantity. Portion of total purchase order quantity that you wish to allocate to this account assignment item. The quantity entered determines which portion of the costs you wish to distribute to this account assignment item.

nullable

Optional realEstateObject

realEstateObject: string

Internal Key for Real Estate Object. Maximum length: 40.

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 salesOrder

salesOrder: string

Sales and Distribution Document Number. The number that uniquely identifies the sales, delivery, or billing document. Maximum length: 10.

nullable

Optional salesOrderItem

salesOrderItem: string

Sales Document Item. The number that uniquely identifies the item in the sales document. Maximum length: 6.

nullable

Optional salesOrderScheduleLine

salesOrderScheduleLine: string

Schedule Line Number. The number that uniquely identifies the schedule line in the sales document. When an item has more than one schedule line, the system automatically assigns a unique number to each line. The number is displayed in the details screens for schedule lines.The schedule line number serves internal purposes and does not, for example, determine the sequence of schedule lines in the overview screen. The schedule lines on the overview screen are sorted by date. Maximum length: 4.

nullable

Optional settlementReferenceDate

settlementReferenceDate: Moment

Reference date for settlement. The reference date is used to identify the settlement period for invoice account assignment. You always have to enter the reference date when making postings on settlement units.

nullable

Optional taxCode

taxCode: string

Tax on Sales/Purchases Code. The tax code represents a tax category which must be taken into consideration when making a tax return to the tax authorities. Tax codes are unique per country. The tax rate calculation rules and further features are stored in a table for each tax code.For tax-exempt or non-taxable transactions, you should use tax codes with a 0 percentage rate if the corresponding transactions are to be displayed in the tax returns.You must define new tax codes if tax rates are changed by the state. The old codes with the old tax rates must remain in the system until no more open items which use this tax code exist. Maximum length: 2.

nullable

Optional taxJurisdiction

taxJurisdiction: string

Tax Jurisdiction. The tax jurisdiction is used for determining the tax rates in the USA. It defines to which tax authorities you must pay your taxes. It is always the city to which the goods are supplied. Maximum length: 15.

nullable

Optional unloadingPointName

unloadingPointName: string

Unloading Point. Specifies the point at which the material is to be unloaded (for example, ramp 1). Maximum length: 25.

nullable

versionIdentifier

versionIdentifier: string

ETag version identifier accessor.

returns

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

Optional wbsElement

wbsElement: string

Work Breakdown Structure Element (WBS Element). Key identifying a WBS element. Maximum length: 24.

nullable

Static ACCOUNT_ASSIGNMENT

ACCOUNT_ASSIGNMENT: StringField<PurCtrAccount> = new StringField('AccountAssignment', PurCtrAccount, 'Edm.String')

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

Static ALL_FIELDS

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

All fields selector.

Static BUDGET_PERIOD

BUDGET_PERIOD: StringField<PurCtrAccount> = new StringField('BudgetPeriod', PurCtrAccount, 'Edm.String')

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

Static BUSINESS_AREA

BUSINESS_AREA: StringField<PurCtrAccount> = new StringField('BusinessArea', PurCtrAccount, 'Edm.String')

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

Static BUSINESS_PROCESS

BUSINESS_PROCESS: StringField<PurCtrAccount> = new StringField('BusinessProcess', PurCtrAccount, 'Edm.String')

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

Static COMMITMENT_ITEM

COMMITMENT_ITEM: StringField<PurCtrAccount> = new StringField('CommitmentItem', PurCtrAccount, 'Edm.String')

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

Static CONTROLLING_AREA

CONTROLLING_AREA: StringField<PurCtrAccount> = new StringField('ControllingArea', PurCtrAccount, 'Edm.String')

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

Static COST_CENTER

COST_CENTER: StringField<PurCtrAccount> = new StringField('CostCenter', PurCtrAccount, 'Edm.String')

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

Static COST_CTR_ACTIVITY_TYPE

COST_CTR_ACTIVITY_TYPE: StringField<PurCtrAccount> = new StringField('CostCtrActivityType', PurCtrAccount, 'Edm.String')

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

Static COST_OBJECT

COST_OBJECT: StringField<PurCtrAccount> = new StringField('CostObject', PurCtrAccount, 'Edm.String')

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

Static EARMARKED_FUNDS_DOCUMENT

EARMARKED_FUNDS_DOCUMENT: StringField<PurCtrAccount> = new StringField('EarmarkedFundsDocument', PurCtrAccount, 'Edm.String')

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

Static FIXED_ASSET

FIXED_ASSET: StringField<PurCtrAccount> = new StringField('FixedAsset', PurCtrAccount, 'Edm.String')

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

Static FUNCTIONAL_AREA

FUNCTIONAL_AREA: StringField<PurCtrAccount> = new StringField('FunctionalArea', PurCtrAccount, 'Edm.String')

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

Static FUNDS_CENTER

FUNDS_CENTER: StringField<PurCtrAccount> = new StringField('FundsCenter', PurCtrAccount, 'Edm.String')

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

Static GL_ACCOUNT

GL_ACCOUNT: StringField<PurCtrAccount> = new StringField('GLAccount', PurCtrAccount, 'Edm.String')

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

Static GOODS_RECIPIENT_NAME

GOODS_RECIPIENT_NAME: StringField<PurCtrAccount> = new StringField('GoodsRecipientName', PurCtrAccount, 'Edm.String')

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

Static GRANT_ID

GRANT_ID: StringField<PurCtrAccount> = new StringField('GrantID', PurCtrAccount, 'Edm.String')

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

Static IS_DELETED

IS_DELETED: BooleanField<PurCtrAccount> = new BooleanField('IsDeleted', PurCtrAccount, 'Edm.Boolean')

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

Static JOINT_VENTURE_RECOVERY_CODE

JOINT_VENTURE_RECOVERY_CODE: StringField<PurCtrAccount> = new StringField('JointVentureRecoveryCode', PurCtrAccount, 'Edm.String')

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

Static MASTER_FIXED_ASSET

MASTER_FIXED_ASSET: StringField<PurCtrAccount> = new StringField('MasterFixedAsset', PurCtrAccount, 'Edm.String')

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

Static MULTIPLE_ACCT_ASSGMT_DISTR_PERCENT

MULTIPLE_ACCT_ASSGMT_DISTR_PERCENT: BigNumberField<PurCtrAccount> = new BigNumberField('MultipleAcctAssgmtDistrPercent', PurCtrAccount, 'Edm.Decimal')

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

Static NON_DEDUCTIBLE_INPUT_TAX_AMOUNT

NON_DEDUCTIBLE_INPUT_TAX_AMOUNT: BigNumberField<PurCtrAccount> = new BigNumberField('NonDeductibleInputTaxAmount', PurCtrAccount, 'Edm.Decimal')

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

Static ORDER_ID

ORDER_ID: StringField<PurCtrAccount> = new StringField('OrderID', PurCtrAccount, 'Edm.String')

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

Static PARTNER_ACCOUNT_NUMBER

PARTNER_ACCOUNT_NUMBER: StringField<PurCtrAccount> = new StringField('PartnerAccountNumber', PurCtrAccount, 'Edm.String')

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

Static PROFIT_CENTER

PROFIT_CENTER: StringField<PurCtrAccount> = new StringField('ProfitCenter', PurCtrAccount, 'Edm.String')

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

Static PROJECT_NETWORK

PROJECT_NETWORK: StringField<PurCtrAccount> = new StringField('ProjectNetwork', PurCtrAccount, 'Edm.String')

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

Static PURCHASE_CONTRACT

PURCHASE_CONTRACT: StringField<PurCtrAccount> = new StringField('PurchaseContract', PurCtrAccount, 'Edm.String')

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

Static PURCHASE_CONTRACT_ITEM

PURCHASE_CONTRACT_ITEM: StringField<PurCtrAccount> = new StringField('PurchaseContractItem', PurCtrAccount, 'Edm.String')

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

Static PURG_DOC_NET_AMOUNT

PURG_DOC_NET_AMOUNT: BigNumberField<PurCtrAccount> = new BigNumberField('PurgDocNetAmount', PurCtrAccount, 'Edm.Decimal')

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

Static QUANTITY

QUANTITY: BigNumberField<PurCtrAccount> = new BigNumberField('Quantity', PurCtrAccount, 'Edm.Decimal')

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

Static REAL_ESTATE_OBJECT

REAL_ESTATE_OBJECT: StringField<PurCtrAccount> = new StringField('RealEstateObject', PurCtrAccount, 'Edm.String')

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

Static SALES_ORDER

SALES_ORDER: StringField<PurCtrAccount> = new StringField('SalesOrder', PurCtrAccount, 'Edm.String')

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

Static SALES_ORDER_ITEM

SALES_ORDER_ITEM: StringField<PurCtrAccount> = new StringField('SalesOrderItem', PurCtrAccount, 'Edm.String')

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

Static SALES_ORDER_SCHEDULE_LINE

SALES_ORDER_SCHEDULE_LINE: StringField<PurCtrAccount> = new StringField('SalesOrderScheduleLine', PurCtrAccount, 'Edm.String')

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

Static SETTLEMENT_REFERENCE_DATE

SETTLEMENT_REFERENCE_DATE: DateField<PurCtrAccount> = new DateField('SettlementReferenceDate', PurCtrAccount, 'Edm.DateTime')

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

Static TAX_CODE

TAX_CODE: StringField<PurCtrAccount> = new StringField('TaxCode', PurCtrAccount, 'Edm.String')

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

Static TAX_JURISDICTION

TAX_JURISDICTION: StringField<PurCtrAccount> = new StringField('TaxJurisdiction', PurCtrAccount, 'Edm.String')

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

Static UNLOADING_POINT_NAME

UNLOADING_POINT_NAME: StringField<PurCtrAccount> = new StringField('UnloadingPointName', PurCtrAccount, 'Edm.String')

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

Static WBS_ELEMENT

WBS_ELEMENT: StringField<PurCtrAccount> = new StringField('WBSElement', PurCtrAccount, 'Edm.String')

Static representation of the wbsElement 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<PurCtrAccount> | BooleanField<PurCtrAccount> | BigNumberField<PurCtrAccount> | DateField<PurCtrAccount>> = [PurCtrAccount.ACCOUNT_ASSIGNMENT,PurCtrAccount.PURCHASE_CONTRACT_ITEM,PurCtrAccount.PURCHASE_CONTRACT,PurCtrAccount.IS_DELETED,PurCtrAccount.QUANTITY,PurCtrAccount.MULTIPLE_ACCT_ASSGMT_DISTR_PERCENT,PurCtrAccount.PURG_DOC_NET_AMOUNT,PurCtrAccount.GL_ACCOUNT,PurCtrAccount.BUSINESS_AREA,PurCtrAccount.COST_CENTER,PurCtrAccount.SALES_ORDER,PurCtrAccount.SALES_ORDER_ITEM,PurCtrAccount.SALES_ORDER_SCHEDULE_LINE,PurCtrAccount.MASTER_FIXED_ASSET,PurCtrAccount.FIXED_ASSET,PurCtrAccount.ORDER_ID,PurCtrAccount.GOODS_RECIPIENT_NAME,PurCtrAccount.UNLOADING_POINT_NAME,PurCtrAccount.CONTROLLING_AREA,PurCtrAccount.COST_OBJECT,PurCtrAccount.PROFIT_CENTER,PurCtrAccount.PROJECT_NETWORK,PurCtrAccount.REAL_ESTATE_OBJECT,PurCtrAccount.PARTNER_ACCOUNT_NUMBER,PurCtrAccount.COMMITMENT_ITEM,PurCtrAccount.JOINT_VENTURE_RECOVERY_CODE,PurCtrAccount.FUNDS_CENTER,PurCtrAccount.FUNCTIONAL_AREA,PurCtrAccount.SETTLEMENT_REFERENCE_DATE,PurCtrAccount.TAX_CODE,PurCtrAccount.TAX_JURISDICTION,PurCtrAccount.NON_DEDUCTIBLE_INPUT_TAX_AMOUNT,PurCtrAccount.COST_CTR_ACTIVITY_TYPE,PurCtrAccount.BUSINESS_PROCESS,PurCtrAccount.EARMARKED_FUNDS_DOCUMENT,PurCtrAccount.GRANT_ID,PurCtrAccount.BUDGET_PERIOD,PurCtrAccount.WBS_ELEMENT]

All fields of the PurCtrAccount entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_PurCtrAccount"

Technical entity name for PurCtrAccount.

Static _keyFields

_keyFields: Array<Selectable<PurCtrAccount>> = [PurCtrAccount.ACCOUNT_ASSIGNMENT, PurCtrAccount.PURCHASE_CONTRACT_ITEM, PurCtrAccount.PURCHASE_CONTRACT]

All key fields of the PurCtrAccount entity.

Static _keys

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

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

Static _serviceName

_serviceName: string = "API_PURCHASECONTRACT_PROCESS_SRV"
deprecated

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

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

  • Returns an entity builder to construct instances PurCtrAccount.

    Returns EntityBuilderType<PurCtrAccount, PurCtrAccountType>

    A builder that constructs instances of entity type PurCtrAccount.

Static customField

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

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<PurCtrAccount>

    A builder that constructs instances of entity type PurCtrAccount.

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

    Returns PurCtrAccountRequestBuilder

    A PurCtrAccount request builder.