biuan SAP® BUSINESS ONE SDK
API Employee Roles Setup Service

Description

The EmployeeRolesSetupService service enables you to add, look up and remove roles in the employee roles master data table.

To see the list of employee roles and create a new one, select Human Resources --> Employee Master Data, and select the Membership tab.

Source table: OHTY

Object Model

Remarks

This service affects the employee roles master data. The role for a specific employee can be retrieved from the EmployeeRolesInfo object of an employee's EmployeesInfo object.

System roles have their Locked field set to Y. System roles cannot be updated or deleted.

Example

See Also

SAP® B1 DI-API C# definition

public class EmployeeRolesSetupServiceClass : IEmployeeRolesSetupService, EmployeeRolesSetupService { public extern EmployeeRolesSetupServiceClass(); public virtual extern EmployeeRoleSetupParams AddEmployeeRoleSetup( EmployeeRoleSetup pIEmployeeRoleSetup); public virtual extern void DeleteEmployeeRoleSetup( EmployeeRoleSetupParams pIEmployeeRoleSetupParams); public virtual extern object GetDataInterface( EmployeeRolesSetupServiceDataInterfaces enumMSDI); public virtual extern object GetDataInterfaceFromXMLFile( string bstrFileName); public virtual extern object GetDataInterfaceFromXMLString( string bstrXMLString); public virtual extern EmployeeRoleSetup GetEmployeeRoleSetup( EmployeeRoleSetupParams pIEmployeeRoleSetupParams); public virtual extern EmployeeRoleSetupParamsCollection GetEmployeeRoleSetupList(); public virtual extern void UpdateEmployeeRoleSetup( EmployeeRoleSetup pIEmployeeRoleSetup); }

Related information


Employee Roles Setup Service Data Interfaces EmployeeRolesSetupServiceDataInterfaces Enumeration
EmployeeRolesSetupService data interfaces.
   Parent: Employee Roles Setup Service EmployeeRolesSetupService Service· Table: OHTY

Employee Role Setup EmployeeRoleSetup Object· Table: OHTY
Represents an employee role. Source table: OHTY Mandatory properties: Name and Description cannot both be blank.
   Parent: Employee Roles Setup Service EmployeeRolesSetupService Service· Table: OHTY

Employee Role Setup Params Collection EmployeeRoleSetupParamsCollection Collection
A collection of EmployeeRoleSetupParams objects.
   Parent: Employee Roles Setup Service EmployeeRolesSetupService Service· Table: OHTY


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