Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

OSS notes for CNTL_ERROR dump

Former Member
0 Kudos

Hello folks,

I am getting a short dump at the below RASIE CNTL_ERROR statement in the METHOD FREE.

I am just wondering there should be some OSS notes available for this. If somebody came across this issue...please help me with the SAP notes.

METHOD FREE.

  • ...

CALL METHOD ME->FINALIZE.

  • TODO: Must call control_detroy (method of H_GUI)

IF H_CONTROL IS INITIAL.

<b>RAISE CNTL_ERROR.</b> "dump occurs at this line

ENDIF.

Thanks,

12 REPLIES 12

former_member188685
Active Contributor
0 Kudos

hi can you paste the full code where it is giving dump.

i think some thing wrong with your code...

reagrds

vijay

0 Kudos

Vijay,

The short dump is not part of my application. It is occuring in the standard application and in the <b>METHOD FREE</b>.

This short dump occurs when I click 'Reset' button on the standard SAP screen of an SAP transaction.

Should you require any more details please let me know.

Thanks,

0 Kudos

hi

naren,

check this oss notes 844207.

regards

vijay

Former Member
0 Kudos

This error typically comes when you are doing call transactions or BDCs for enjoy transactions which involve controls. For a control to be active, system needs access to the desktop(basically the GUI environment), where the controls are created and destroyed). But if you are doing a call transaction in no-display mode or BDC in no-display mode, the system cannot create these controls and as a result this dump occurs. You have to find alternatives to the call transaction that you are doing.

What are doing that is resulting in this error?

Srinivas

former_member188685
Active Contributor
0 Kudos

Hi

check this oss notes 844207.

it is related to your dump..

regards

vijay

Former Member
0 Kudos

This error also occurs when a variable ( type ref to <object>) that is not assigned to any actual object is referenced.

0 Kudos

Srinivas,

This short dump occurs when I click 'Reset' button (2nd time) on the standard SAP screen of an SAP transaction.

It is not related to any of my development. It is a standard application.

Thanks,

Message was edited by: Naren Somen

0 Kudos

Which transaction is this?

0 Kudos

Vijay,

The OSS note which you have mentioned is related to

<b>"CL_GUI_FRONTEND_SERVICES======CP " or "CL_GUI_FRONTEND_SERVICES======CM

"FILE_EXIST" or

"CL_GUI_FRONTEND_SERVICES======CP " "CNTL_ERROR"</b>. But mine is different.

If the error occurred in a non-modified SAP program, you may be

able to find a solution in the SAP note system.

If you have access to the note system yourself, use the following

search criteria:

<b>"RAISE_EXCEPTION"

"CL_GUI_CONTROL================CP " or "CL_GUI_CONTROL================CM00C "

"FREE"

or

"CL_GUI_CONTROL================CP " "CNTL_ERROR"

or

"/IRM/SAPLIPCIM " "CNTL_ERROR"

</b>

Srinivas, I am working with a third party product (Sales Commissions) marketed by SAP. The standard transaction details

<i>User, transaction...

Client.............. 120

Language key........ "E"

Transaction......... "/IRM/IPSICCP "

Program............. "CL_GUI_CONTROL================CP "

Screen.............. "/IRM/SAPLIPCIM 0200"

Screen line......... 16 </i>

Any guesses??

Message was edited by: Naren Somen

0 Kudos

Sorry Naren, cannot help much in there as I don't have access to this third party product.

But as I mentioned, you need to verify the different possibilities with which this error can occur and see if any of those possibilities are applicable to your case. It is also sometimes data specific. Are you getting this error all the time or with certain data only? If it is only with certain data, then I guess, there is something missing in that data that is causing a null object reference in the control and so it dumps. So first check if it is data related. Then you can identify what piece of the data is which is missing or causing the problem and take corrective action.

Srinivas

Former Member
0 Kudos

Hi Naren,

We have the following code in our system.(in METHOD

FREE.)

Hope this should be the coding.

<b> IF H_CONTROL IS INITIAL.

EXIT. "// its already free

  • RAISE CNTL_ERROR. "This line is commented in our

" system

ENDIF.</b>

Regards,

GSR.

0 Kudos

Hello folks,

Thanks a lot for all your replies. I found out the problem from the OSS note 833845.

The control is not been cleared. Here is the code.

IF NOT ref_user_fcodes_custom IS INITIAL. 
        CALL METHOD ref_user_fcodes_toolbar->free. 
        CALL METHOD ref_user_fcodes_custom->free. 
*{   INSERT         RDDK921247                                        1 
clear ref_user_fcodes_custom. 
*}   INSERT

Srinivas, your solution may also work but I thought instead of making changes in the method free, it is better to make change in the application.

Thanks for all your replies.