12 Replies Latest reply: Dec 27, 2005 6:29 PM by Naren Someneni RSS

OSS notes for CNTL_ERROR dump

Naren Someneni
Currently Being Moderated

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,

  • Re: OSS notes for CNTL_ERROR dump
    Vijay Dudla
    Currently Being Moderated

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

     

    i think some thing wrong with your code...

     

    reagrds

    vijay

  • Re: OSS notes for CNTL_ERROR dump
    Srinivas Adavi
    Currently Being Moderated

    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

  • Re: OSS notes for CNTL_ERROR dump
    Vijay Dudla
    Currently Being Moderated

    Hi

     

    check this oss notes 844207.

    it is related to your dump..

     

    regards

    vijay

  • Re: OSS notes for CNTL_ERROR dump
    Sharad Agrawal
    Currently Being Moderated

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

    • Re: OSS notes for CNTL_ERROR dump
      Naren Someneni
      Currently Being Moderated

      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

       

      • Re: OSS notes for CNTL_ERROR dump
        Srinivas Adavi
        Currently Being Moderated

        Which transaction is this?

        • Re: OSS notes for CNTL_ERROR dump
          Naren Someneni
          Currently Being Moderated

          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

          • Re: OSS notes for CNTL_ERROR dump
            Srinivas Adavi
            Currently Being Moderated

            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

  • Re: OSS notes for CNTL_ERROR dump
    Currently Being Moderated

    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.

    • Re: OSS notes for CNTL_ERROR dump
      Naren Someneni
      Currently Being Moderated

      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.

Actions