Symptom
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Short dump "CNTL_ERROR" is generated in interactive demand planning transaction (/n/sapapo/sdp94).
Runtime Errors RAISE_EXCEPTION
Short text |
Exception condition "CNTL_ERROR" raised. |
What happened? |
The current ABAP/4 program encountered an unexpected |
situation. |
What can you do? |
Note down which actions and inputs caused the error. |
To process the problem further, contact you SAP system |
administrator. |
Using Transaction ST22 for ABAP Dump Analysis, you can look |
at and manage termination messages, and you can also |
keep them for a long time. |
Error analysis |
A RAISE statement in the program "CL_GUI_RESOURCES==============CP" raised the |
exception |
condition "CNTL_ERROR". |
Since the exception was not intercepted by a superior |
program, processing was terminated. |
Short description of exception condition: |
For detailed documentation of the exception condition, use |
Transaction SE37 (Function Library). You can take the called |
function module from the display of active calls. |
How to correct the error |
If the error occures in a non-modified SAP program, you may be able to |
find an interim solution in an SAP Note. |
If you have access to SAP Notes, carry out a search with the following |
keywords: |
"RAISE_EXCEPTION" " " |
"CL_GUI_RESOURCES==============CP" or "CL_GUI_RESOURCES==============CM00B" |
"GET_FONT_INFOS" |
or |
"CL_GUI_RESOURCES==============CP" "CNTL_ERROR" |
or |
"/SAPAPO/SAPMMSDP " "CNTL_ERROR" |
If you cannot solve the problem yourself and want to send an error |
notification to SAP, include the following information: |
1. The description of the current problem (short dump) |
To save the description, choose "System->List->Save->Local File |
(Unconverted)". |
2. Corresponding system log |
Display the system log by calling transaction SM21. |
Restrict the time interval to 10 minutes before and five minutes |
after the short dump. Then choose "System->List->Save->Local File |
(Unconverted)". |
3. If the problem occurs in a problem of your own or a modified SAP |
program: The source code of the program |
In the editor, choose "Utilities->More |
Utilities->Upload/Download->Download". |
4. Details about the conditions under which the error occurred or which |
actions and input led to the error. |
Information on where terminated |
Termination occurred in the ABAP program "CL_GUI_RESOURCES==============CP" - |
in "GET_FONT_INFOS". |
The main program was "/SAPAPO/SAPMMSDP ". |
In the source code you have the termination point in line 40 |
of the (Include) program "CL_GUI_RESOURCES==============CM00B". |
Source Code Extract | |
Line | SourceCde |
10 | CALL METHOD OF hguiservices-obj 'GetServiceByName' = hservice |
11 | NO FLUSH |
12 | EXPORTING #1 = 'SAPGUIResources.1'. |
13 | IF sy-subrc <> 0. RAISE error_get_obj. ENDIF. |
14 | GET PROPERTY OF hservice-obj 'Fonts' = hfonts-obj no flush. |
15 | IF sy-subrc <> 0. RAISE cntl_error. ENDIF. |
16 | |
17 | *** fontsize |
18 | GET PROPERTY OF hfonts-obj 'FontSize' = fontsize no flush |
19 | exporting #1 = '0'. |
20 | IF sy-subrc <> 0. RAISE cntl_error. ENDIF. |
21 | *** fontname |
22 | GET PROPERTY OF hfonts-obj 'FontName' = fontname no flush |
23 | exporting #1 = '0'. |
24 | IF sy-subrc <> 0. RAISE cntl_error. ENDIF. |
25 | |
26 | * free objects |
27 | FREE OBJECT hfonts-obj no flush. |
28 | IF sy-subrc <> 0. RAISE cntl_error. ENDIF. |
29 | FREE OBJECT hservice-obj no flush. |
30 | IF sy-subrc <> 0. RAISE cntl_error. ENDIF. |
31 | FREE OBJECT hguiservices-obj no flush. |
32 | IF sy-subrc <> 0. RAISE cntl_error. ENDIF. |
33 | * flush now ? |
34 | IF NOT with_flush IS INITIAL. |
35 | CALL FUNCTION 'CONTROL_FLUSH' |
36 | EXCEPTIONS |
37 | cntl_system_error = 1 |
38 | cntl_error = 2 |
39 | OTHERS = 3. |
>>>>> | IF sy-subrc <> 0. RAISE cntl_error. ENDIF. |
41 | ENDIF. |
42 | |
43 | endmethod. |
Active Calls/Events |
No. Ty. Program Include Line |
Name |
8 METHOD CL_GUI_RESOURCES==============CP CL_GUI_RESOURCES==============CM00B 40 |
CL_GUI_RESOURCES=>GET_FONT_INFOS |
7 METHOD /SAPAPO/CL_AGC================CP /SAPAPO/CL_AGC================CM002 11 |
/SAPAPO/CL_AGC=>CREATE |
6 METHOD /SAPAPO/CL_GUI_SDP============CP /SAPAPO/CL_GUI_SDP============CM001 257 |
/SAPAPO/CL_GUI_SDP=>CONSTRUCTOR |
5 FUNCTION /SAPAPO/SAPLMSDP_PI /SAPAPO/LMSDP_PIU04 74 |
/SAPAPO/PI_SDP_CREATE |
4 FORM /SAPAPO/SAPLMSDP_SDP /SAPAPO/LMSDP_SDPFC1 36 |
CONTROLS_CREATE |
3 MODULE (PBO) /SAPAPO/SAPLMSDP_SDP /SAPAPO/LMSDP_SDPO01 35 |
OCX_CONTROLS_CREATE |
2 FORM /SAPAPO/SAPMMSDP /SAPAPO/MMSDPFI0 223 |
INTERACTIVE_PLANNING |
1 MODULE (PAI) /SAPAPO/SAPMMSDP /SAPAPO/MMSDPI01 550 |
USER_COMMAND_0001 |
Read more...
Environment
- SAP Supply Chain Management (SCM)
- SAP Advanced Planning and Optimization (SCM-APO)
- SAP enhancement package for SAP Supply Chain Management
- SAP Supply Chain Management Demand Planning (SCM-APO-FCS)
- SAP Supply Chain Management Supply Network Planning (SCM-APO-SNP)
Product
SAP Supply Chain Management all versions ; SAP enhancement package for SAP Supply Chain Management all versions
Keywords
RAISE_EXCEPTION, CL_GUI_RESOURCES, /SAPAPO/SDP94, grid, control, ocx , KBA , SCM-APO-FCS-INF , Interactive Forecasting , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.