There is a report which call a screen and it added the CustomControl to it and used the class cl_gui_custom_container, cl_gui_alv_grid, lcl_event_receiver .
Actually this report has the facility to enter the data in the output and save it and when the user enter the data in the field and the class CL_GUI_CFW=>UPDATE_VIEW is getting triggered and error is coming here.
Exception condition "CNTL_ERROR" raised.
A RAISE statement in the program "CL_GUI_CFW====================CP" raised the
exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior
program, processing was terminated.
and this issue is coming some times only and not every time.
1
2 METHOD UPDATE_VIEW.
3 * ...
4 CALL FUNCTION 'AC_SYSTEM_FLUSH'
5 exporting CALLED_BY_SYSTEM = called_by_system
6 EXCEPTIONS
7 CNTL_SYSTEM_ERROR = 1
8 CNTL_ERROR = 2
9 OTHERS = 3.
10
11 CASE SY-SUBRC.
12 WHEN 0.
13 WHEN 1. "// system_error
14 RAISE CNTL_SYSTEM_ERROR.
15 WHEN 2. "// method_call_error
>>>>> RAISE CNTL_ERROR.
17 WHEN 3. "// property_set_error
18 RAISE CNTL_ERROR.
19 WHEN 4. "// property_get_error
20 RAISE CNTL_ERROR.
21 WHEN OTHERS.
22 RAISE CNTL_ERROR.
23 ENDCASE.
24
25 ENDMETHOD.