The steps below guide you through the steps required to configure the ERP MA to delete users in SAP. The ERP MA Configuration Tool is used to create the configuration. Depending on your SAP environment, you may be able to use the default template instead of following these steps. If possible, it is recommended to either use or start with the default template. The steps outlined in this section, describe the process for creating a new Delete operation for the User Object Type.

The approach

The default configuration is to first flow the anchor attribute (username) onto the corresponding function/parameters for the function (BAPI_USRE_DELETE) and then execute the function. changes.

The default functions used for adding user(s) to SAP are:

  • BAPI_USER_DELETE - this will remove a user and associated data from SAP.

For this example, we'll configure the minimum set of attributes:

  • username - anchor attribute (defines the user)

To configure an add user operation
  1. To begin, start the ERP Configuration Tool. This will bring you to the main window. Click the connect button to connect to your SAP server.

  2. Click the Add ObjectType action button. Enter the name of the CS object to be deleted in FIM (i.e. users, employee, etc). Click Next to move to the 'Add Operations for ObjectType' form.

  3. Click the Add button to add new operations for this object type. Doing so will start the "Define Operation" wizard. Select Remove for the operation by clicking and selecting from the standard FIM operations in the drop-down combo box.

    Note
    Define the functions to execute for this operation. Click Add button to find and add functions to this operation. When the search dialog box is shown, search for and add the function BAPI_USER_DELETE to add to this operation.
  4. We now need to edit the configure populating the username parameter from and predefined alias for the anchor attribute. Select the BAPI_USER_DELETE function and click the 'edit' button at the bottom of the form.

  5. In the alias reference drop-down box, select the user.anchor alias from the list.

  6. Click OK and complete the wizard by clicking Next until you are back at the main screen.

Adding attribute 'username'

  1. Click the Add Attribute action button on the main window. This will start the 'Add New Attribute' wizard.When prompted enter a name='username' then click Next. Remember to make this a required attribute.

  2. Map this attribute the function/parameters

    • BAPI_USER_DELETE.USERNAME

This will flow data from attribute 'username' to the username parameter on the function.

Define an anchor attribute

  • You will need to set an anchor attribute if one has not yet defined for this object-type. Consult the related topics below for details on how to do this.