Show TOC

Splitting a MULTI CATCH BlockLocate this document in the navigation structure

You can replace an existing MULTI CATCH block by individual CATCH blocks for each exception separately.

Prerequisites

This functionality is provided since SAP NetWeaver 7.5 SP00.

Context

Example

Before Execution After Execution

To copy the source code example, click here Code Example Before Execution

In the implementation of the drive method, a MULTI CATCH block handles the cx_no_fuel and cx_failure exceptions.

You now want the exceptions to be handled differently in their own CATCH block.

In the drive method, the MULTI CATCH block is divided into two new single CATCH blocks for each exception.

Procedure

  1. In the implementation part, select the MULTI CATCH block where you want to catch the exceptions separately.
  2. Get the quick assist proposals by choosing Quick Fix from the context menu (shortcut Ctrl 1) or by using the Quick Assist view.
  3. Apply Split Multi Catch.