Mass Changes to Provider Contracts

Use

Various business processes often require a mass change to be made to contracts. A typical business scenario in the provider area is to change the legal entity for provider contracts. You can schedule a mass run to adapt the payer of pre-selected contracts at a certain point of time.

Mass changes use the mass run framework to implement bulk execution of the Business Transactions Maintenance Framework (BTMF) change process on existing provider contracts. For more information, see Maintenance Framework for Business Transactions.

A specific set of changes is usually only intended to be made for execution for existing contracts. This set must first be modeled as change processes in the BTMF framework.

Processes modeled in the BTMF framework can be executed from the UI of a single document or for multiple documents by applying a mass run (mass change). To make the process work in the context of a mass run, the implementation of a change process has to fulfill specific requirements. For more information, see Extensibility of Mass Runs.

For details about process provider contract change processes, see Contract Changes.

Prerequisites

You have defined the mass run type and the BTMF change process in Customizing for Customer Relationship Management under Start of the navigation pathCross-Industry Functions Next navigation step Provider Order and Contract Management Next navigation step Mass Runs Next navigation step Define Settings for Mass RunsEnd of the navigation path. The event handler class used in the mass run type has to implement an appropriate ABAP interface for mass changes (IF_CRM_ISX_MR_B_EVENT_HANDLER). The default class is CL_CRM_ISX_ MR_B_EVENT_DFLT_HDL.

You have configured the BTMF framework. For more information, see Maintenance Framework for Business Transactions.

Features

Structure

According to the general structure of a mass run, data for a mass change is divided into three parts:

  • Administration data

  • Process data (such as the activation date of the mass run or the change process that is executed within the mass run)

  • Element data

Elements in a mass change reference the contracts to be changed. This often applies to an extremely large number of contracts. The element data is shown in a summary view that displays the number of elements with the following statuses:

  • Total number of elements

  • Number of elements successfully processed

  • Number of elements not successfully processed

Process Data

A mass run has the following specific data:

  • The BTMF change process, which is taken from the assigned mass run process type.

  • The activation date of the change.

A set of specific data is also displayed for each change process to be used as input for the change to be executed.

Displaying Detailed Data of Elements

To display detailed data for elements, you have to navigate to the details screen where a subset of all elements is displayed. Enter the search criteria to define the result set according to your requirements.

The element data for a mass contains the following specific fields:

  • Contract ID

    The ID of the contract to be changed during a mass run.

  • Change Order

    The change of the provider contract is triggered by a change order. The ID of this change order is available once an element has been successfully executed.

Adding Elements to a Mass Run

You can add the contracts to be changed in the mass run using the following actions:

  • Search

    The standard search for provider contracts opens. Create new elements by selecting entries in the result set.

  • Upload

    For more information, see Mass Runs.

  • Predefined selection

Predefined Selections

A predefined selection defines the set of contracts to be changed by the mass run. When creating a mass run, a list of all predefined selections is available for adding contracts to be changed. Predefined selections available with a mass run are defined in Customizing for Customer Relationship Management under Start of the navigation pathCross-Industry Functions Next navigation step Provider Order and Contract Management Next navigation step Mass Runs Next navigation step Define Predefined SelectionsEnd of the navigation path.

A set of predefined selections is available by default. You can use it as an example to implement a customer-specific predefined selection:

  • CL_CRM_ISX_MR_PS_MASS

    Selects all provider contracts in the system.

  • CL_CRM_ISX_MR_PS_MY_THIS_MON

    Selects all provider contracts created within the current month.

  • CL_CRM_ISX_MR_PS_TODAY

    Selects all provider contracts created on the current day.

  • CL_CRM_ISX_MR_PS_CCM_VERSION

    Selects all provider contracts with a specified cross-catalog mapping version.

You add a customer-specific predefined selection by implementing the ABAP interface IF_CRM_ISX_MR_PRED_SELECTION. The method GET_CONTRACTS defines the set of contracts to be changed by the mass run that returns a list of corresponding contract GUIDs (GUID of the main rate plan item). Finally, create a new entry in Customizing for the predefined selections and assign the name of the implementing ABAP class.

Example

  1. You want to cancel all related provider contracts for an expiring master agreement using a mass run and the BTMF change process CANCEL.

    Preparation of the Mass Run

    Make sure that the required input fields in the change process are available in the mass run data. When cancelling a contract, the reason and the requested date of cancellation must be provided. Fields CANC_REASON, CANC_REQUEST_DATE and CANC_REQUEST_TIME are already part of the header structure.

    Create a new mass run type in Customizing and assign the change process CANCEL. Assign the handler class CL_CRM_ISX_MR_B_CANCEL_HDL. The handler provides data required by the cancellation process, for example the date when the cancellation was received and the procedure to be used.

    To make the new fields visible in the maintenance UI for your mass run, maintain the header view by creating a new configuration for the mass run type. For more information, see Extensibility of Mass Runs.

    Execution of the Mass Run

    When creating a mass run for this new mass run type, additional input fields are displayed on the process data screen. Provide a cancellation reason and a requested date for cancellation. To apply the change to the relevant contracts, add elements by using the Search function. Use the master agreement ID as a search criterion. After entering all of the required data, release the mass run for processing by setting the header status.

    Execute the mass change directly by using the run function or use the scheduled processing function.

  2. You want to change the configuration of all related provider contracts containing a specific product using a mass run and the BTMF configuration change processes. This can be used for the IPC and simplified configuration.

    Preparation of the Mass Run

    Make sure that the required input fields in the change process are available in the mass run data. When you change the configuration of contracts, the following fields are required:

    • Activation Date (START_CHANGE_DATE)

    • Product (PRODUCT_ID_B)

    • Sold-To Partner(SOLD_TO)

    • Transaction Type (BT_PROCESS_TYPE)

    • Link to the configuration data (CONFIG_LINK)

    Create a new mass run type in Customizing and assign the change process CONFIG_CHANGE to use IPC configuration.

    If you want to use the simplified configuration, assign the change process SIMPLE_CONFIG_CHANGE and assign the handler class CL_CRM_ISX_MR_B_CONFIG_HDL. The handler provides data required by the configuration change process. To make the new fields visible in the maintenance UI for your mass run, maintain the header view by creating a new configuration for the mass run type.

    For more information, see Extensibility of Mass Runs.

    Execution of the Mass Run

    When creating a mass run for this new mass run type, additional input fields are displayed on the process data screen. Provide an activation date for the configuration change and a product. To choose the configuration data to be changed, you must create a temporary order. This requires you to make entries in the Transaction Type and Sold-to Party fields.

    Having done so, choose Configuration. A dialog box appears that contains the default configuration of the specified product. Change the configuration values in the dialog box and choose Back. The configuration values are transferred to the Configuration Attributes view where you can specify which values should be changed in the related contracts.

    To apply the change to the relevant contracts, add elements using the Search function. After entering all required data, release the mass run for processing by setting the header status. Execute the mass change directly by using the Run function or use the scheduled processing function.