Show TOC

Using the Exit Feature for Confirmation DialogLocate this document in the navigation structure

Use

The exit class is specified in the FBI view. This document describes how you can use an exit class to customize a message that appears in the dialog box. For example, if you try to delete an object, a confirmation message box appears with basic text and with Yes, No, and Cancel pushbuttons.

Prerequisites

In the SAP development system, you have created a Web Dynpro application and an application Business Object. For more information, see:

Procedure

Creating an Exit Interface Class

  1. In an SAP development system, enter the transaction SE24. The Class Builder:Initial Screen appears.

  2. Enter the class name in the Object Type field.

  3. Choose Create. The Object Type Entries dialog box appears.

  4. Select the Class radio button.

  5. Choose OK. The Create Class screen appears.

  6. Enter the description.

  7. Choose Public from the Instantiation field.

  8. Under Class Type, select the Usual ABAP Class radio button.

  9. Select the Final checkbox.

  10. Save your entries.

  11. Enter the package name.

  12. Save your entries.

Implementing the Exit Interface

  1. Choose the Interfaces tab.

  2. Enter the first interface as /BOFU/IF_FBI_VIEW_EXITINTF_RUN in the Interface column.

  3. Enter the second interface as /BOFU/IF_FBI_VIEW_EXIT_INTF in the Interface column.

  4. Choose the Methods tab.

  5. Under the Method column, double-click the /BOFU/IF_FBI_VIEW_EXITINTF_RUN~ADAPT_NEEDS_CONFIRMATION method.

  6. Implement the logic for customizing the message that appears on the UI in this method.

  7. Save and activate your class.

Maintaining the FBI VIEW

  1. Navigate to your FBI view that is used in the UIBB on which the BO action is configured. For more information on the FBI view, see Configuring an FBI View.

  2. Under the Header tab, enter the exit interface class name in the Exit Interface Class field as created in the Creating an Exit Interface Class section.

  3. Save your FBI view.