Selecting Objects from the Organizational Plan

Use

As well as defining agent determination rules, it can be necessary to describe certain relationships between employees and areas of responsibility or the borders between areas of responsibility in system tables. This information is then available for rule resolution.

Create a table by assigning certain companies and invoice amounts to administrators via their positions.

Position

Company

Amount ($)

50001234

A - H

0 – 50,000.-

50001235

A - H

> 50,000.-

50001236

I - Z

0 – 60,000.-

50001237

I - Z

> 60,000.-

If the name of the company and the invoice amount are known, the details in this table are used for rule resolution, in order to find an administrator.

The following function modules are available, to ensure that you have access to objects from Organizational Management that you need to fill the table and that you can program possible entries.

Features

RH_DETERMINE_ORG_OBJECT

Determines the ID of any Organizational Management object.

Interface

Import Parameter

  • ORG_OBJECT , Reference structure SWHACTOR

Exceptions

  • NO_ACTIVE_PLVAR
  • NO_OBJECT_ID_SELECTED
  • NO_OBJECT_TYPE_SELECTED

This function module can be called without transfer parameters.

When you access this function module, a dialog box is displayed from which you can select an object type from Organizational Management.

Once you have selected an object type from Organizational Management, one of the Organizational Management objects stored for this type can be selected and displayed using the search function.

The object type and ID of this Organizational Management object are returned as an export parameter in the SWHACTOR structure and can be used in your application.

RH_DETERMINE_ORG_OBJID

Determines the ID of an Organizational Management object from a predefined Organizational Management object type.

Interface

Export Parameters

  • ORG_OBJECT_TYPE , Reference field OBJEC-OTYPE

Import Parameter

  • ORG_OBJECT_OBJID , Reference field SWHACTOR-OBJID

Exceptions

  • NO_ACTIVE_PLVAR
  • NO_OBJECT_ID_SELECTED

This function module forms only the "second half" of the function module described above.

When you access it, you transfer the Organizational Management object type whose possible values you want to display using the possible entries function. You transfer this Organizational Management object type as a one- or two-character ID.

Using the search function, you can select and display one of the entries stored for the Organizational Management object type.

The ID of this Organizational Management object is returned as an export parameter in the variable ORG_OBJECT_OBJID and can be used in your application.