Entering content frame

Process documentationError Handling in Synchronization Locate the document in its SAP Library structure

Purpose

You cannot analyze an error in an automation call until after the synchronization point. The following example illustrates the problems that this can cause:

Example

  1. Suppose you call the methods set_registered_events , add_column , add_nodes_and_items , and expand_nodes one after the other.
    The method call for
    add_nodes_and_items contains an error.
  2. Now you synchronize the automation queue using the method cl_gui_cfw=>flush .
    This sends the automation queue to the frontend and processes it.
  3. The first two methods are processed with no problems.
  4. However, in the third method, an error occurs. Once the error occurs, the automation queue processing is terminated, and an error is returned to the backend.
  5. The exception cntl_error of method cl_gui_cfw=>flush is triggered.
    Consequently, you cannot immediately identify the method in which the error occurred.

This graphic is explained in the accompanying text

In this case, you should use the Debugger and select the setting Automation Controller: Always process requests synchronously. You will then be able to see that the error is triggered in the method add_nodes_and_items .

 

 

Leaving content frame