Mass Runs

Use

You can use the mass run functionality to plan the creation or the processing of a preselected number of provider orders and contracts, ensure high-performance execution, track the progress and support monitoring of the results and further processing on the new or changed entities. You can trigger the mass run execution in the mass run maintenance or by planning appropriate jobs.

Prerequisites

Before you can create and process mass runs, make settings in Customizing for Customer Relationship Management underStart of the navigation pathCross-Industry Functions Next navigation step Provider Order and Contract ManagementEnd of the navigation path

  • Define Number Range for Mass Runs

    Mass run IDs are taken from an internal number range interval. You must set up an interval to create mass runs.

  • Define Settings for Mass Runs

    You use this Customizing activity to define mass run types. Mass run types define the following characteristics of a mass run:

    • Mass run category – new contracts can be created or existing contracts be changed.

    • Process - the process to be executed when contracts are changed.

    • Event handler implementation class – perform additional checks, enrich Application Programming Interface (API) calls or post process contracts

    • Execution profile – number of tasks that process the execution in parallel and number of elements in a processing block

    • Spreadsheet upload settings – field mapping when uploading element data from a spreadsheet.

    • Field settings – Define default values or switch fields to read-only.

      • Default values can be defined for header and element fields. They are defined when a new mass run header is created or when elements are added to the mass run. Values are defined regardless of whether they are displayed on the UI.

      • Read-only fields cannot be changed on the UI by the agent. The fields are either defined by the default value or by the event handler implementation class.

      • One example of using default values for elements is, if there are only a few exceptions to be adapted manually, such as when you create a set of contracts and the run time is only to be different for a small number. If the value for the element is always identical, it should be defined at header level.

Features

Structure

Mass runs consist of a header and two or more elements. Mass run headers contain generic data for the mass creation; contract-specific data has to be maintained with the elements. Every element represents exactly one contract to be created or to be processed and has its own execution status.

Mass Run Header

Mass run header data is divided into two assignment blocks on the UI. Administration data is found in the assignment block Mass Run and mass run category-dependent data in the second assignment block. Since the process data view is dependent on the mass run category, it appears once the mass run type has been selected in the Mass Run view.

Mass Run Administration Data–View “Mass Run”

  • Mass Run ID

    Identifies a mass run and is taken from a number range specified in the mass run Customizing settings 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 Number Range for Mass RunsEnd of the navigation path.

  • Description

    Descriptive text for the mass run.

  • Type

    The mass run type defines the behavior of the mass run. Starting from the type of activity to be processed (mass creation, mass change), the fields displayed on the maintenance UI, their default settings, the checks to be processed and the execution time (depending on how the execution jobs are planned). You can only define the type once in a mass run. It cannot be changed.

  • Status

    The status defines the next steps for a mass run. The following statuses are available:

    Header Status

    Description

    Allowed Activities

    Open

    Initial status of a mass run

    The mass run can be edited (with the exception of the ‘mass run type’ once it has been defined).

    The mass run is not observed by execution jobs.

    The mass run cannot be started.

    The mass run status can be manually switched to Released for Processing.

    Released for Processing

    This status can only be set manually. The setting can be reset by switching the status back to Open.

    The mass run can no longer be edited. The status can be switched back to Open.The mass run can be started by choosing Run. The mass run is observed by execution jobs.

    In Process

    This status is set automatically once the elements of a mass run are processed manually or by an automatic job.

    Mass run cannot be changed.

    This is a transient status. Once elements have been processed, the status switches to Processed Successfully or Processed with Errors, depending on the status of the elements.

    Since the processing of the elements happens asynchronously, the mass run display has to be refreshed by choosing Update to display the current status.

    Processed Successfully

    This status is set automatically once elements have been processed and all elements have the status Processed successfullyor Processed Manually.

    This is a final status.

    Processed with Errors

    This status is set automatically once elements have been processed and at least one element has the status Processed with Errors.

    Elements that have been processed with errors can be manually adjusted or transferred to a follow-up mass run.

    Once all elements have been manually adjusted to Processed Successfully or taken over into a new mass run, the status switches to Processed Successfully.

  • Changed by, changed on

    Displays the user and date for the last change of the mass run.

  • Planned execution

    The earliest execution date for this mass run. When processing mass runs in an automatic job, the execution report only observes mass runs that are planned to be executed on or before the current date. This date is not evaluated when you start the execution of a mass run by choosingRun.

  • Priority

    Additional parameter to provide a more detailed plan for the execution of mass runs. You can divide the mass runs of one type into five priorities and select these accordingly for execution. The priority has no effect on processing but is an additional selection option for the execution report.

Mass Run Elements

Each mass run element represents a single contract to be processed. Depending on the category of the mass run, different fields are available for maintenance and for result-tracking after processing. The following fields are available in every mass run category:

  • Actions

    Contains a Show Messages link once messages are available after an element check or element processing. Use this action to open a dialog box showing the messages that have been reported during checking or processing of the element.

  • Last changed by/on

    Shows user, date and time of the last change of the element.

  • Status

    The status shows the processing status of the element. The following statuses exist:

    Element Status

    Description

    Allowed Activities

    Open

    Initial status of an element.

    The element can be edited (according to the field settings), but the status cannot be changed.

    The element can be deleted.

    The element can be checked.

    The element will be processed when the mass run is processed.

    Successfully Processed

    The element has been successfully processed without any errors being reported.

    This is a final status.

    Processed with Errors

    Errors occurred during processing of the element.

    Messages can be displayed choosing Show Messages in the Actions column. The element can be reprocessed, transferred to a new mass run or the status can be set to Processed Manually.

    Processed Manually

    This status is a final status that can only be set manually.

    You can set this status when the contract of an element, processed with errors, has been corrected manually .

  • Verification

    The Verification status shows whether the element has been checked for validity and the check result.

    The check implementation can be defined at mass run type level. It is available as input help. Therefore, the verification status does not affect processing of the mass run.

    • Not checked: the check has not yet been processed.

    • Successfully: the check has been successfully processed.

    • Erroneous: the check reported errors. Display the errors choosing Show Messages in the Actions column.

In the standard configuration, elements do not have any process fields and therefore only allow a number of contracts to be processed according to the settings made in the header. Once you have adding elements, you can no longer make entries in any column. All these fields are filled automatically after checks have been made or after processing. You can easily add additional fields to the element data. For more information, see Extensibility of Mass Runs.

Activities

Scheduled Processing of Mass Runs

In addition to running a mass run from the SAP CRM UI directly, you can also schedule a mass run to be executed at a certain point of time. This requires a report to be scheduled periodically as a background job (transaction SM36). The report CRM_ISX_MR_PROCESSING selects the relevant mass runs according to the selection parameters specified and triggers execution in each case. The selected set is sorted by the priority from the mass run header data. The mass run with the highest priority is executed first.

A mass run is selected, when the planned execution date is the earlier or the same as the time at which the report is executed and the current status is Released for Processing.

Filtering is applied by using parameters in the report. The system only selects the specified mass run types or observes the specified range of priorities.

Mass Run Reprocessing

Once a mass run has been processed, several options are available for reprocessing elements with the status Processed with Errors.

Reprocessing of Elements

.

Reprocessing of Elements

If you have chosen Edit, you can change the input fields for the mass run element and correct invalid values. Once you have done so, select the elements that contain errors and are to be reprocessed. Choose Reprocess and Save to process the selected elements again.

Elements with the status Successfully Processed cannot be reprocessed. Successfully processed elements that are selected for reprocessing are skipped during reprocessing and an appropriate message is displayed on the UI. In this case, only the elements that contain errors are reprocessed. When all selected elements are reprocessed, the corresponding status is set at element and header level.

Manual Processing of Elements

You can mark erroneous elements for manual processing. This can be done in the Status column of the element assignment block. You can change the status from Processed with Errors to Processed Manually. The user must then ensure that the corresponding mass run element is corrected in another way.

Create Follow-up Mass Run

The elements that contain errors in a mass run with the status Processed with Errors can be copied into a new mass run by choosing Follow Up. In this case, all elements with the status Processed with Errors are then transferred to a new mass run.

When the new mass run is saved, all elements that have been copied have the status Taken Over. The status of the old mass run is switched to Successfully processed.

Upload data to mass run

In the mass run process, you can add the elements to the mass run object by uploading files. This file can be created in a spreadsheet with the CSV format.

Customizing Settings for the Upload

You make the settings for this 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.

Two fields can be defined:

  • Row Nr at mass run type level. This field identifies the row of the spreadsheet from which the relevant data for the upload starts.

  • Column Nr at field settings level. This field identifies which column of the spreadsheet includes the value for the corresponding element field.



Spreadsheet File for Upload

Upload the Spreadsheet File to the UI

You can either call the existing mass run or create a new one. In both cases, there is only one way to add the data using the file-upload. The creation process is described here. Choose Mass Run.

On the next view that appears, choose the mass run type. Choose Upload. On the next dialog box that appears, select the corresponding spreadsheet file by choosing Browse. Choose Upload to upload the data and add it to the elements. After maintaining the data, save the mass run.

You can manipulate the uploading process according to customer requirements, for example you can provide conversions and calculations of the original data in the file before the data is added to the mass run. You must format a technical resource ID here. For more information, see Extensibility of Mass Runs.

Example

By now, mass runs are used for

  • Executing provider order mass creation from the Master Agreement.

  • Executing mass changes for existing Provider Contracts

    .