Exception condition "CNTL_ERROR WD-abap Smartform to pdf

Hii, 
I am using a webdynpro - abap application. I am showing  a smartform as a pdf in one on the windows.
When the link in the main window is clicked, a secondary window. Instead of the pdf, I get following exception.Kindly help me understand, where would I be going wrong. Let me know if more details required.
**Exception condition "CNTL_ERROR" raised. **
Form: PBO_HTML_CONTROL of program SAPLSTXBC
Module: HTML_CONTROL of program SAPLSTXBC
Function: SSFCOMP_PDF_PREVIEW of program SAPLSTXBC
Method: DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: IF_COMPONENTCONTROLLER~DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: ONACTIONPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
The code in the DISPLAYPDF method is as follows:
method DISPLAYPDF .
DATA: I_RS38L_FNAM TYPE  RS38L_FNAM.
DATA: CTRL TYPE SSFCTRLOP.
DATA: OUT TYPE  SSFCOMPOP.
DATA: I_SSFCRESCL TYPE SSFCRESCL.
DATA: LT_OTFDATA TYPE TABLE OF ITCOO.
CTRL-GETOTF = 'X'.
CTRL-NO_DIALOG = 'X'.
CTRL-PREVIEW = 'X'.
OUT-TDNEWID = 'X'.
OUT-TDDELETE = ' '.
data: i_tsp03 type tsp03.
clear i_tsp03.
select single * from tsp03 into i_tsp03.
*OUT-TDDEST = i_tsp03-PADEST.
OUT-TDDEST = 'TEP1'.
********get context data
  DATA lo_nd_zwebquestionaire TYPE REF TO if_wd_context_node.
  DATA lo_el_zwebquestionaire TYPE REF TO if_wd_context_element.
  DATA ls_zwebquestionaire TYPE wd_this->element_zwebquestionaire.
* navigate from <CONTEXT> to <ZWEBQUESTIONAIRE> via lead selection
  lo_nd_zwebquestionaire = wd_context->get_child_node( name = wd_this->wdctx_zwebquestionaire ).
* get element via lead selection
  lo_el_zwebquestionaire = lo_nd_zwebquestionaire->get_element(  ).
* get all declared attributes
  lo_el_zwebquestionaire->get_static_attributes(
    IMPORTING
      static_attributes = ls_zwebquestionaire ).
********get context data ends
data: itab1 type TCHAR255.
data: itab2 type TCHAR255.
data: itab type zprint. "addition by chandani
data fm_name type rs38l_fnam..
clear fm_name.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME             = 'ZCPESMARTFORM'
  IMPORTING
    FM_NAME              = fm_name
  EXCEPTIONS
    NO_FORM              = 1
    NO_FUNCTION_MODULE   = 2
    OTHERS               = 3.
CALL FUNCTION fm_name
EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
   CONTROL_PARAMETERS         = CTRL
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
   OUTPUT_OPTIONS             = OUT
   USER_SETTINGS              = ' '
   NAME                       = 'test'
   ZWEBQUESTIONAIRE           = ls_ZWEBQUESTIONAIRE
IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
   JOB_OUTPUT_INFO            = I_SSFCRESCL
*   JOB_OUTPUT_OPTIONS         =
TABLES                                  "addition by chandani
  itab                         = itab   "addition by chandani
* EXCEPTIONS
*   FORMATTING_ERROR           = 1
*   INTERNAL_ERROR             = 2
*   SEND_ERROR                 = 3
*   USER_CANCELED              = 4
*   OTHERS                     = 5
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH LT_OTFDATA.
LT_OTFDATA[] = I_SSFCRESCL-OTFDATA[].
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
  EXPORTING
    I_OTF                          = LT_OTFDATA
* EXCEPTIONS
*   CONVERT_OTF_TO_PDF_ERROR       = 1
*   CNTL_ERROR                     = 2
*   OTHERS                         = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: PDF_DATA TYPE XSTRING,
      PDF_SIZE TYPE I.
DATA: L_DUMMY TYPE STANDARD TABLE OF TLINE.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
   FORMAT                      = 'PDF'
*   MAX_LINEWIDTH               = 132
*   ARCHIVE_INDEX               = ' '
*   COPYNUMBER                  = 0
*   ASCII_BIDI_VIS2LOG          = ' '
*   PDF_DELETE_OTFTAB           = ' '
IMPORTING
   BIN_FILESIZE                = PDF_SIZE
   BIN_FILE                    = PDF_DATA
  TABLES
    OTF                         = LT_OTFDATA
    LINES                       = L_DUMMY
* EXCEPTIONS
*   ERR_MAX_LINEWIDTH           = 1
*   ERR_FORMAT                  = 2
*   ERR_CONV_NOT_POSSIBLE       = 3
*   ERR_BAD_OTF                 = 4
*   OTHERS                      = 5
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
  DATA lo_nd_pdf TYPE REF TO if_wd_context_node.
  DATA lo_el_pdf TYPE REF TO if_wd_context_element.
  DATA ls_pdf TYPE wd_this->element_pdf.
  DATA lv_sources LIKE ls_pdf-sources.
* navigate from <CONTEXT> to <PDF> via lead selection
  lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
* get element via lead selection
  lo_el_pdf = lo_nd_pdf->get_element(  ).
* get single attribute
  lo_el_pdf->Set_attribute(
    EXPORTING
      name =  `SOURCES`
      value = PDF_DATA ).
endmethod.

Use -  with gui_download
call method cl_gui_frontend_services=>environment_get_variable
exporting
variable = p_envir_name
changing
value = ls_envir_path
exceptions
cntl_error = 1
error_no_gui = 2
others = 3.
call method cl_gui_cfw=>flush
exceptions
cntl_system_error = 1
cntl_error = 2
others = 3.
And refer the below notes: 972762
ITS 620 Patch 23 and SAPKB62061
ITS 640 Kernel Patch 148 and SAPKB64019
ITS 700 Kernel Patch 77 and SAPKB70010
and also refer the link below to get more info
http://www.sapfans.com/forums/viewtopic.php?f=13&t=325628&start=15
thanx
suriya

Similar Messages

  • Exception condition "CNTL_ERROR" raised.  in WDA :  smartform to pdf

    Hii, 
    I am using a webdynpro - abap application. I am showing  a smartform as a pdf in one on the windows.
    When the link in the main window is clicked, a secondary window. Instead of the pdf, I get following exception.Kindly help me understand, where would I be going wrong. Let me know if more details required.
    *Exception condition "CNTL_ERROR" raised. *
    Form: PBO_HTML_CONTROL of program SAPLSTXBC
    Module: HTML_CONTROL of program SAPLSTXBC
    Function: SSFCOMP_PDF_PREVIEW of program SAPLSTXBC
    Method: DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
    Method: IF_COMPONENTCONTROLLER~DISPLAYPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
    Method: ONACTIONPDF of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/2TKFRFPNZA4CZYBGEB8F==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
    Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    The code in the DISPLAYPDF method is as follows:
    method DISPLAYPDF .
    DATA: I_RS38L_FNAM TYPE  RS38L_FNAM.
    DATA: CTRL TYPE SSFCTRLOP.
    DATA: OUT TYPE  SSFCOMPOP.
    DATA: I_SSFCRESCL TYPE SSFCRESCL.
    DATA: LT_OTFDATA TYPE TABLE OF ITCOO.
    CTRL-GETOTF = 'X'.
    CTRL-NO_DIALOG = 'X'.
    CTRL-PREVIEW = 'X'.
    OUT-TDNEWID = 'X'.
    OUT-TDDELETE = ' '.
    data: i_tsp03 type tsp03.
    clear i_tsp03.
    select single * from tsp03 into i_tsp03.
    *OUT-TDDEST = i_tsp03-PADEST.
    OUT-TDDEST = 'TEP1'.
    ********get context data
      DATA lo_nd_zwebquestionaire TYPE REF TO if_wd_context_node.
      DATA lo_el_zwebquestionaire TYPE REF TO if_wd_context_element.
      DATA ls_zwebquestionaire TYPE wd_this->element_zwebquestionaire.
    * navigate from <CONTEXT> to <ZWEBQUESTIONAIRE> via lead selection
      lo_nd_zwebquestionaire = wd_context->get_child_node( name = wd_this->wdctx_zwebquestionaire ).
    * get element via lead selection
      lo_el_zwebquestionaire = lo_nd_zwebquestionaire->get_element(  ).
    * get all declared attributes
      lo_el_zwebquestionaire->get_static_attributes(
        IMPORTING
          static_attributes = ls_zwebquestionaire ).
    ********get context data ends
    data: itab1 type TCHAR255.
    data: itab2 type TCHAR255.
    data: itab type zprint. "addition by chandani
    data fm_name type rs38l_fnam..
    clear fm_name.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME             = 'ZCPESMARTFORM'
      IMPORTING
        FM_NAME              = fm_name
      EXCEPTIONS
        NO_FORM              = 1
        NO_FUNCTION_MODULE   = 2
        OTHERS               = 3.
    CALL FUNCTION fm_name
    EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = CTRL
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       OUTPUT_OPTIONS             = OUT
       USER_SETTINGS              = ' '
       NAME                       = 'test'
       ZWEBQUESTIONAIRE           = ls_ZWEBQUESTIONAIRE
    IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = I_SSFCRESCL
    *   JOB_OUTPUT_OPTIONS         =
    TABLES                                  "addition by chandani
      itab                         = itab   "addition by chandani
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    REFRESH LT_OTFDATA.
    LT_OTFDATA[] = I_SSFCRESCL-OTFDATA[].
    CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
      EXPORTING
        I_OTF                          = LT_OTFDATA
    * EXCEPTIONS
    *   CONVERT_OTF_TO_PDF_ERROR       = 1
    *   CNTL_ERROR                     = 2
    *   OTHERS                         = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DATA: PDF_DATA TYPE XSTRING,
          PDF_SIZE TYPE I.
    DATA: L_DUMMY TYPE STANDARD TABLE OF TLINE.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
       FORMAT                      = 'PDF'
    *   MAX_LINEWIDTH               = 132
    *   ARCHIVE_INDEX               = ' '
    *   COPYNUMBER                  = 0
    *   ASCII_BIDI_VIS2LOG          = ' '
    *   PDF_DELETE_OTFTAB           = ' '
    IMPORTING
       BIN_FILESIZE                = PDF_SIZE
       BIN_FILE                    = PDF_DATA
      TABLES
        OTF                         = LT_OTFDATA
        LINES                       = L_DUMMY
    * EXCEPTIONS
    *   ERR_MAX_LINEWIDTH           = 1
    *   ERR_FORMAT                  = 2
    *   ERR_CONV_NOT_POSSIBLE       = 3
    *   ERR_BAD_OTF                 = 4
    *   OTHERS                      = 5
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      DATA lo_nd_pdf TYPE REF TO if_wd_context_node.
      DATA lo_el_pdf TYPE REF TO if_wd_context_element.
      DATA ls_pdf TYPE wd_this->element_pdf.
      DATA lv_sources LIKE ls_pdf-sources.
    * navigate from <CONTEXT> to <PDF> via lead selection
      lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
    * get element via lead selection
      lo_el_pdf = lo_nd_pdf->get_element(  ).
    * get single attribute
      lo_el_pdf->Set_attribute(
        EXPORTING
          name =  `SOURCES`
          value = PDF_DATA ).
    endmethod.

    Hi,
    1) This error generally comes ,when your GUI version is old.Check this point & try to upgrade.
    2) Otherwise if you are running report in background,then check madhu kumar's reply in this link & try like this.
    Dump Error Raise_Exception CNTL_ERROR
    Also search OSS notes.
    Thanks
    Gourav.

  • RFC_ERROR_SYSTEM_FAILURE: Exception condition "CNTL_ERROR" raised.

    I wrote a function.This read codes from a  .txt file, create an abap program dinamically and after run it.
    I wrote a java program with jco  and i wrote an abap program for calling function .&#304;f i runned abap program not happened any problem.But i runned java program.i saw this error :
    RFC_ERROR_SYSTEM_FAILURE: Exception condition "CNTL_ERROR" raised.
    My function :
    FUNCTION Z_MS_FUNC2.
    *"*"Local Interface:
    *"  IMPORTING
    *"  EXPORTING
    *"     VALUE(RESULT) TYPE  ZMS_SONUC-SONUC
    DATA: code TYPE TABLE OF rssource-line.
    data : p_file TYPE string.
    p_file = 'C:\deneme.txt'.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = p_file
            FILETYPE                      = 'ASC'
          tables
            data_tab                      = code.
    INSERT REPORT 'zms_dinamik002' FROM code.
    SUBMIT zms_dinamik002 AND RETURN.
    result = 'Successfull.'.
    ENDFUNCTION.
    this code  show error row :
    38     CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES                  
        39       EXPORTING                                                                 
        40         DIRECTORY                   = FILE                                      
        41         FILTER                      = ''                                        
        42         FILES_ONLY                  = 'X'                                       
        43 *    DIRECTORIES_ONLY            = 'X'                                          
        44       CHANGING                                                                  
        45         FILE_TABLE                  = filetab                                   
        46         COUNT                       = count                                     
        47       EXCEPTIONS                                                                
        48         CNTL_ERROR                  = 1                                         
        49         DIRECTORY_LIST_FILES_FAILED = 2                                         
        50         WRONG_PARAMETER             = 3                                         
        51         ERROR_NO_GUI                = 4                                         
        52         others                      = 5.                                        
        53                                                                               
    54     IF SY-SUBRC <> 0.                                                           
    >>>>>       RAISE CNTL_ERROR.                                                         
        56     ENDIF.
    deneme.txt
    report mehmet.
    data wa like zms0005.
    wa-jop_id = 14.
    wa-jop_name = 'UZAK4'.
    modify zms0005 from wa.

    Hi,
    wa-jop is not defined (data: wa-jop type...)!
    Try to insert the coding-lines in a new report. Than make a syntax check.
    Regards Mario
    Edited by: Mario Müller on Mar 11, 2008 6:47 AM

  • Short Dump -   Exception condition "CNTL_ERROR" raised.

    hi all
    I  found a runtime error
    but i can't find the correct answer either in SDN or Sap Notes
    plz tell me what can i do to solve this problem
    sap version : 4.6c
    h3.
    Error analysis
    A RAISE statement in the program "SAPLOLEA " raised the exception
    condition "CNTL_ERROR".
    Since the exception was not intercepted by a superior program
    in the hierarchy, 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.
    h3.
    Source code extract
    000010   FUNCTION AC_SYSTEM_FLUSH .
    000020   *"
    000030   ""Lokale Schnittstelle:
    000040   *"  IMPORTING
    000050   *"     VALUE(CALLED_BY_SYSTEM) TYPE  C OPTIONAL
    000060   *"  EXCEPTIONS
    000070   *"      CNTL_SYSTEM_ERROR
    000080   *"      CNTL_ERROR
    000090   *"
    000100     data: sysubrc like sy-subrc.
    000110
    000120     CALL FUNCTION 'AC_FLUSH_CALL'
    000130          EXPORTING
    000140               SYSTEM_FLUSH = 'X'
    000150               CALLED_BY_SYSTEM = CALLED_BY_SYSTEM
    000160          IMPORTING
    000170               MESSAGE_NR   = sysubrc
    000180               MESSAGE_TEXT = SY-MSGLI.
    000190
    000200     sy-subrc = sysubrc.
    000210
    000220     CASE SY-SUBRC.
    000230       WHEN 0.
    000240       WHEN 1.
    000250         RAISE CNTL_SYSTEM_ERROR.         "// system_error
    000260       WHEN 2.
    000270         RAISE CNTL_ERROR.                "// method_call_error
    000280       WHEN 3.
    000290         RAISE CNTL_ERROR.                "// property_set_error
    000300       WHEN 4.
         >              RAISE CNTL_ERROR.                "// property_get_error       -
    >>>>> here's the error occured
    000320       WHEN OTHERS.
    000330         RAISE CNTL_ERROR.
    000340     ENDCASE.
    000350
    000360   ENDFUNCTION.
    Edited by: kwang young kim on May 6, 2010 8:38 AM

    Hi,
    This error is pretty common when using ABAP GUI controls. Actually it says: "Something was wrong with some control data so the SAPGUI cannot handle it".
    Sometimes this happens accidently (might be a problem on the PC or something else), so you should try the same action (perhaps after restarting the SAP GUI or even the PC) and see whether the problem persists.
    if so (and also other users encounter the same problem) this is probably a program bug. Check your control handling program code for errors.
    If you cannot see any problem by just reviewing the code switch on the SAPGUI trace for errors (can be found in the SAPGUI settings popup). Depending on what data you want to be traced this trace file can be very huge! But eventually you will see the actual error message given by the SAPGUI and this normally gives you an idea what went wrong.
    Regards,
    Gerd Rother

  • Exception condition CNTL_ERROR raised

    Hi everybody
    I try to create a Business Partner of t_code "BPV1", and  I used to create the t_code "sm35" to do a recording of the t_code "BPV1.
    1. I tested my recodring a then hasn't problems.
    2.I create a function module with this recording and then I tested, it hasn't problems.
    3. This function I invoque on ABAP Proxy, then I tested the ABAP Proxy. it hasn't no problems.
    4. But when PI consume and get service of my ABAP Proxy  dump this error
    "Exception condition CNTL_ERROR raised"
    The cancelation class was : RABAX_STATE
    I think that the problem is my recording but I tested all and it hasn't problems. The problem display only qhen PI try to consume my service of ABAP Proxy.

    HI,
    2.I create a function module with this recording and then I tested, it hasn't problems.
    I presume you tested the FM in SE37, try this call this FM in a test report program and call the FM in "BACKGROUND TASK" or call the FM in normal way and schedule the report to run in the background and see the results.
    3. This function I invoque on ABAP Proxy, then I tested the ABAP Proxy. it hasn't no problems.
    Again I presume you tested the FM in SPROXY, create a report program and create an instance of the proxy class and invoke the schedule the report to run in background.
    The reason why the call from PI is failing because the BDC recording you have done has some control elements that need GUI support, now when you try using SE37/SPROXY the GUI is available and hence your testing went smooth.
    4. But when PI consume and get service of my ABAP Proxy dump this error
    When the call is made from PI, there is no GUI available and hence the program terminates.
    Solution: I am sure there are BAPI's available with which you can create partners, try and look for a BAPI which can do this.
    Regards,
    Chen

  • Getting a dump  Exception condition "CNTL_ERROR" raised in ALV

    Hi ,
    I have a requirement where I have to do drag and drop operation of TOs from one queue to another queue in an ALV tree between nodes. The drag and drop operation is working fine, but suddenly i get a dump lilke * 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.
    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.
    This dump is occuring from a customized transaction ZLRF1 ... where I copied all the includes from the LRF1. So, i will not be able to use any note. Can any1 please help me to resolve this issue <removed by moderator>
    Edited by: Thomas Zloch on Sep 15, 2011 1:46 PM

    Since you're saying you made a copy of all the includes to their corresponding zincludes, in the following includes
    ZLLRFMONTOP
    replace LRF1 with ZLRF1 and make sure the following includes are activated
    ZLLRFMONCLA
    ZLLRFMONTOP

  • RFC Failed: Exception condition "CNTL_ERROR" raised

    Hi All,
    I have an RFC in R/3 which would be called from the .NET front end. When they run the RFC, they get an error which says
    RFC Failed: Exception condition "CNTL_ERROR" raised
    Could any one help me what is the work around for this?
    Regards,
    Guru.

    Hi Guru,
    You are correct. Check the RFC for an call for screen/popup/dialog/user input etc.
    Such error occurs for the system is expecting a user input.
    Thanks,
    Best regards,
    Prashant

  • Exception condition "CNTL_ERROR" raised - ITS services

    Dear all
    I have created ITS link for Solman - Solar02 t.code When I was trying to upload document in Solar02 using ITS (both using ITS from Solman SICF service, I am getting a dump error,
    Exception condition "CNTL_ERROR" raised.
    But when i was uploaded in sapgui, it uploaded.
    Let me know the solution for this?

    HI Iván Cabezas Castillo 
    I have created ITS link as below
    http://host:port/sap/bc/gui/sap/its/solar02?sap-client=200
    with a parameters
    ~WEBGUI_SIMPLE_TOOLBAR      1
    ~WEBGUI                                                1
    ~TRANSACTION     SOLAR02
    ~SINGLETRANSACTION     1
    Still i am facing the same error.

  • Exception condition "CNTL_ERROR" raised - Error in ITS

    Dear all
    I have created ITS link for Solman - Solar02 t.code  When I was trying to upload document in Solar02 using ITS (both using ITS from Solman SICF service, I am getting a dump error,
    Exception condition "CNTL_ERROR" raised.
    But when i was uploaded in sapgui, it uploaded.
    Let me know the solution for this?

    This kind of error usually points to the incorrect use of Enjoy SAP controls like ALV, Text Edit, HTML viewer etc. They make use of a framework which can only be handled in the standard SAP GUI and not in WebBased applications. So I guess you will have to come up with something else, because I don't think this is going to work like this.

  • Exception condition "CNTL_ERROR" raised for u201CSAPLBEA_OBJ_UF02u201D

    Dear All
    I am getting the error {Exception condition "CNTL_ERROR" raised.} for the program. SAPLBEA_OBJ_UF02. The billing document is being posted to accounting but I am getting the above error when I view the accounting document through  /BEA/CRMB11 (display accounting document). We are using CRM billing.
    Plz help
    Rgds
    Praveen

    Hello Praveen,
    Can you apply notes ;
    893175 Fixed CNTL_ERROR when using RFC-recorder in tRFC
    1303765 Query text or diagnosis text not displayed correctly
    thanks
    Willie

  • Exception condition "CNTL_ERROR" raised in class CL_GUI_CFW= UPDATE_VIEW

    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.

    Hi,
    1) This error generally comes ,when your GUI version is old.Check this point & try to upgrade.
    2) Otherwise if you are running report in background,then check madhu kumar's reply in this link & try like this.
    Dump Error Raise_Exception CNTL_ERROR
    Also search OSS notes.
    Thanks
    Gourav.

  • Exception condition "CNTL_ERROR" raised., error key: RFC_ERROR_SYSTEM_FAILU

    Hi All,
    After the custo of the ESSleave request  in the IMG . I made some tests.
    Evrethign is going fine but once i try to enter a leave request during a non wroking day, i'm getting this message
    Exception condition "CNTL_ERROR" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    I checked in st22 and they ask to find a sap note with those key words
    "RAISE_EXCEPTION" " "
    "SAPLSPO1" or "LSPO1F01"
    "INSTANTIATE_CONTROL"
    or
    "SAPLSPO1" "CNTL_ERROR"
    or
    "SAPMSSY1 " "CNTL_ERROR"
    I found nothing that can help me in sap service..
    Did someone already encounter such error ?
    Only usefull answers will be rewared .

    Hi Adel,
    Can you test the same application in the content administrator of the respective portal and check if you find the same error or another error.
    Regards,
    Narendra.

  • Convert smartform to pdf from ABAP webdynpro

    Hi,
    I want to convert smartform to pdf from ABAP webdynpro and
    I want to display pdf in ABAP wedynpro view or portal iview.
    what are the steps needs to be followed?
    what are the classes and interfaces needs to be used?

    Hi,
    Please check this it might be useful.
    Data: tab_otf_data    type  ssfcrescl,
             wa_out_opt      type  ssfcompop,
             wa_con_params   type  ssfctrlop.
              wa_rspoid       type  rspoid,
    parameter:p_file like rlgrap-filename no-display.
    Follow control parameters
           wa_out_opt-tdimmed = 'X'.
             wa_out_opt-tdnewid = 'X'
            wa_con_params-no_dialog = 'X '.
    if you want print direct  pass
            wa_out_opt-tddest  = 'printer' (SAP Printer)
    If you are using multiple header records  use loop other wise no need
       note that when multple headers
      pass count and count > 1 means more than one header change control parameters to create single spool for all.
    Loop itabXXXX.                                      " multiple header starts
      count = count + 1.
          if count > 1.
            wa_con_params-no_open = ' '.
            wa_out_opt-tdnewid = ' '.
          endif.                                               " multiple header ends
    call function  fm_name
            exporting
              control_parameters = wa_con_params
              output_options     = wa_out_opt
              header_header      = wa_ven
            importing
              job_output_info    = tab_otf_data
            tables
              header_details     = itab_final
            exceptions
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              others             = 5.
             at last.                                                         " multiple header starts
            wa_con_params-no_close = ' '.
            wa_con_params-no_dialog = 'X'.
          endat.                                                           " multiple header ends
    endloop.
    you will get  the otf data and spool id from  'tab_otf_data'
    read table tab_otf_data-spoolids index 1 into wa_rspoid.  " Now you get spool no in wa_rspoid.
    " pass spool in to rstxpdft4 it converts to pdf".
    submit rstxpdft4
               with spoolno = wa_rspoid
               with p_file = p_file
               and return.
    I feel that your problem will solve....
    Thanks,
    Hari

  • Convert smartform as PDF from ABAP Webdynpro

    Hi,
    I want to convert smartform as pdf from ABAP webdynpro.
    Flow: SmartForm-->Generating Function Module -->Getting Output Data --> Converting OTF to PDF --> Open/Save PDF file in ABAP webdynpro.
    What are the sequence of function modules to be used for this?
    OR
    Is there any other way to convert smartform as pdf from ABAP webdynpro?
    plz give me the flow and FM'details clearly in detail.

    Look here https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
    Cheers
    Graham Robbo

  • Smartform as PDF in Web Dynpro for ABAP

    Hello Experts,
    I have developed one Web Dynpro application in which i am trying to show PDF converting from smart from on button click.
    I am seeing blank screen when i try to display PDF? But when i check i debugging data passed successfully to context element.
    PDF source property mapped to review context element.
    I used below code to show PDF in view method:
    call function 'SSF_FUNCTION_MODULE_NAME'
    call function lv_fm_name
    call function 'SSFCOMP_PDF_PREVIEW'
    call function 'CONVERT_OTF'
    elem_pdf->set_attribute(
       exporting
             name = `SOURCE`
              value = data ).
    Thanks
    Rajesh Yadla

    Looks quite alright, but since you only have provided a few function modules, there is 'no' way of telling what is going wrong. I can however give you a link and compare your coding with the one from the tutorial:
    [How to display a smartform as PDF in WD4A|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]

Maybe you are looking for

  • PLSQLAssociativeArray - ArraybindSize

    Hello all, Does anybody know the maximum size of an output parameter for ArrayBindSize when accessing a table of varchar2. And if so is their a way to set the limit? Right now I can go to a maximium of 2000 characters. thanks, Dhaval

  • Wireless USB hook-up need driver??

    I have a powermac g4. I have purchased D-Link wireless router on my pc downstairs, I then have the USB card for my mac upstairs, but it is acting like I need a driver for my mac in order to get this wireless usb to work. Apple doesn't supply and/or D

  • Managing the administration in implementation projects

    Hi all, I have been using the Solution Manager in implementation projects for 2 years now. However, I'm having difficulty on managing the project schedule using the administration tab in transaction solar01 and solar02: 1.     Unlike MS project, for

  • Optical Surround not working in Macbook pro

    I have a MBP 15" 2.33GHz core 2 duo, and I would like to use surround (DTS or Dolby 5.1) in logic pro. I do not have a audio hardware, but I read here I can use the (digital) optical output to hear 5.1 output. Well, I plugged the optical out to a Pio

  • D800E raw files on import

    Trying to import D800E raw files from a CF into Lightroom 4, "no photos found" is the message.  Images can be seen in camera so I know they are there.  LR version is up to date. Raw Plug-In version is up to date.  I can import D4 raw files from CF so