Skip to main content

Cost centers

Dimension type KPL

Find

Web service type: Method driven

Resource location: /webservices/finder.asmx?wsdl

Method

public Message[] Search(
string type, // Finder type, See Finder type.
string pattern, // The search pattern. May contain wildcards * and ?
int field, // Fields to search through, see Search fields.
int firstRow, // First row to return, usefull for paging
int maxRows, // Maximum number of rows to return, usefull for paging
string[][] options, // See options below
out FinderData data) // Search results

Finder type

DIM

Search fields

Field IDFields searched
0code and name
1code
2name

The method will return an array containing validation messages. If there are no errors, then the data parameter will contain the actual search result.

Options

OptionTypeDescription
office«office code»Restricts to the office.
levelenumeration: 1, 2, 3, 4, 5, 6Specifies the dimension level. Normally the level of cost centers is level 2.
sectionfinancialsRestricts to financial or time & expenses dimensions.
dimtypeKPLShows the cost center dimensions.
modifiedsincestring yyyyMMddHHmmss or yyyyMMddRestricts to dimensions modified after, on or at the specified date (and time).
group«group code»Specifies the dimension group (wildcards allowed).
includehidden0 (false) or 1 (true)If set to 1, the response will include a status column (active/hidden) and both active and hidden dimensions will be included.

Read

Web service type: XML Web Services

XML

Below example reads the settings of the cost center (KPL) dimension EXAMPLE.

<read>
<type>dimensions</type>
<office>001</office>
<dimtype>KPL</dimtype>
<code>EXAMPLE</code>
</read>

Create/Update/Delete

If the dimension is not found it will be automatically created, otherwise it is updated. Set dimension/header/@status to deleted for deleting a dimension.

Root

XML structure
<dimension>
<financials>
<banks>
</dimension>

Element name: dimension

NameDescription
dimensionContains information general to the dimension.
financialsNot in use.
banksNot in use.

Dimension

XML structure
<dimension>
<office></office>
<type></type>
<code></code>
<name></name>
</dimension>

Element name: dimension

Property nameValueDescription
@statusactive
deleted
hide
For creating and updating status may be left empty. For deleting deleted should be used. In case a dimension that is used in a transaction is deleted, its status has been changed into hide. Hidden dimensions can be activated by using active.
officecodeOffice code.
typecodeDimension type. See Dimension type.
Dimension type of cost centers is KPL.
codecodeDimension code, must be compliant with the mask of the KPL Dimension type.
uidstringUnique identification of the dimension.
Read-only attribute.
namestring(80)Name of the dimension.
shortnameNot in use.
inusetrue
false
Indicates whether the cost center is used in a financial transaction or not.
Read-only attribute.
behaviournormal
system
template
Determines the behaviour of dimensions.
Read-only attribute.
touchedintegerCount of the number of times the dimension settings are changed.
Read-only attribute.
beginperiodNot in use.
beginyearNot in use.
endperiodNot in use.
endyearNot in use.
websiteNot in use.
cocnumberNot in use.
vatnumberNot in use.
editdimensionnameNot in use.

Example

<dimension>
<office>001</office>
<type>KPL</type>
<code>00000</code>
<name>Marketing</name>
</dimension>