biuan SAP® BUSINESS ONE SDK
API Departments Service

Description

The DepartmentsService service enables you to add, look up and remove departments in the departments master data table. Users and employees can be assigned to departments.

To see the list of departments, do one of the following:

  • Select Administration --> Setup --> General --> Users, and then select Define New from the Department list.
  • Select Human Resources --> Employee Master Data, and then select Define New from the Department list.

Source table: OUDP

Object Model

Example

See Also

SAP® B1 DI-API C# definition

public class DepartmentsServiceClass : IDepartmentsService, DepartmentsService { public extern DepartmentsServiceClass(); public virtual extern DepartmentParams AddDepartment( Department pIDepartment); public virtual extern void DeleteDepartment( DepartmentParams pIDepartmentParams); public virtual extern object GetDataInterface( DepartmentsServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern Department GetDepartment( DepartmentParams pIDepartmentParams); public virtual extern DepartmentsParams GetDepartmentList(); public virtual extern void UpdateDepartment( Department pIDepartment); }

Related information


Departments Service Data Interfaces DepartmentsServiceDataInterfaces Enumeration
DepartmentsService data interfaces.
   Parent: Departments Service DepartmentsService Service· Table: OUDP

Department Department Object· Table: OUDP
Represents a department that can be assigned to a user or employee. Source table: OUDP Mandatory properties: Name
   Parent: Departments Service DepartmentsService Service· Table: OUDP

Departments Params DepartmentsParams Collection
A collection of DepartmentParams objects.
   Parent: Departments Service DepartmentsService Service· Table: OUDP


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates