Please enable JavaScript to view this site.

Error itgendoc001X

xMsg javascript has not been loaded.

Twinfield API Data Model

Navigation: Schema: Twinfield > Tables

BudgetByCostCenter: Twinfield Budget by Cost Center

Contents Previous Home Next More

Catalog: Twinfield

Schema: Twinfield

Label: Budget by Cost Center

The data in this table is partitioned per value of the COMPANY_CODE column.

This is a read-only table function. The Twinfield API may not support changing the data or the Invantive SQL driver for Twinfield does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Twinfield API.

Action: GetBudgetByCostCenter

Twinfield API URL: webservices/BudgetService.svc

Topic: http://www.twinfield.com/BudgetService/Query

Table Function Parameters

The following parameters can be used to control the behaviour of the table function BudgetByCostCenter. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be treated using their default values.

Value specification by position is done by listing all values from the first to the last needed value. For example with `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.

Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.

Name

Data Type

Required

Default Value

Documentation

Code

string

 

Code of the budget to be retrieved.

COMPANY_CODE

string

 

Code of company.

Dim1From

string

 

General ledger start code.

Dim1To

string

 

General ledger end code.

Dim2From

string

 

Cost center start code.

Dim2To

string

 

Cost center end code.

Dim3From

string

 

Project start code.

Dim3To

string

 

Project end code.

IncludeFinal

boolean

True

Include final transactions.

IncludeProvisional

boolean

 

Include provisional transactions.

PeriodFrom

int32

 

Start period to be retrieved.

PeriodTo

int32

 

End period to be retrieved.

Year

int32

 

Year to be retrieved.

 

Table Function Columns

The columns of the table function BudgetByCostCenter are shown below. Each column has an SQL data type.

Name

Data Type

Label

Required

Documentation

ACTUALCREDIT

decimal

 

 

ACTUALDEBIT

decimal

 

 

ACTUALTOTAL

decimal

 

 

BUDGETCREDIT

decimal

 

 

BUDGETDEBIT

decimal

 

 

BUDGETTOTAL

decimal

 

 

COMPANY_CODE

string

Company ID

 

COMPANY_NAME

string

Company Name

 

DIM1

string

 

 

DIM2

string

 

 

DIM3

string

 

 

GROUP1

string

 

 

GROUP2

string

 

 

GROUP3

string

 

 

PERIOD

int32

 

 

YEAR

int32

 

 

 

25-10-2021 14:28 Version 20.2.72-PROD+3482