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

Similar Messages

  • 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 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., 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.

  • 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.

  • 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

    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

  • 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.

  • Short Dump, Exception condition "NOT_EXIST" raised

    Dear Colleagues!
    I am having a problem with short dump, I am getting the message Exception condition "NOT_EXIST" raised.
    I am trying to load data to ODS with full load and filtering via a DTP.
    In the monitoring the load doesn't even get started.
    I have already loaded data succesfully in this ODS... But now it doesn't work anymore..
    I also tried to replicate and active all the rules and objects again.
    And in the source system if I test the extractor it works fine.
    I saw an earlier thread on this issue, and it recommended programs ZDMDELTAREPAIR or RSBDELTAREPAIR, but this thread was especially for BW 3.5. We are using 7.0 and have SP10. Are these programs still valid or is there another note for 7.0?
    Hope you can help!
    Regards Silje
    Does anyone have any ideas?
    regards, Uros

    Hi again,
    I tried RSBDELTAREPAIR and it worked!
    Thanks to the forum again!
    Silje

  • 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

  • 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

  • Dump error  Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised.

    hi ppl,
              I have created a simple badi,when i call this badi  its showing the dump error  Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised.

    HI,
    I have checked all of them
    Actually i am trying this example  from saptechnical. com
    Even i have tried others examples also but everytime I am recieving dame dump
    Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised.*
    Edited by: Sumesh Nair on Apr 24, 2009 7:08 AM
    Edited by: Sumesh Nair on Apr 24, 2009 7:09 AM
    Edited by: Sumesh Nair on Apr 24, 2009 7:09 AM

  • 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

  • "Exception condition "CONTROL_FLUSH_ERROR" raised." during background jobs

    hi all,
    the program ZTEST is used for downloading a txt file into D: using GUI_DOWNLOAD. this program works fine but when I schedule this porgam in background jobs in tcode SM36 using "job wizard", i am getting errors as  Exception condition "CONTROL_FLUSH_ERROR" raised and the error analysis is as
    'A RAISE statement in the program "SAPLSFES " raised the exception condition "CONTROL_FLUSH_ERROR".
    Since the exception was not intercepted by a superior program
    in the hierarchy, processing was terminated.'
    How to rectify this error???
    points will be rewrded
    thanks in advance

    GUI_DOWNLOAD is a FM that is designed to download files by interation with the PC directories (only possible in foreground). If the file download is the requirement the u can use application server files for it.
    But if you are insisting on notepad and excel documents, then you have to use CLIP and EXECUTE function modules. Refer to Class CL_GUI_FRONTEND_SERVICES that has all the required methods

Maybe you are looking for

  • Resolution and 3D issues with NVIDIA proprietary driver

    I bought a new PC recently and I installed Arch x86_64 on it. The hardware is the following: Intel Core i5 - Ivy Bridge, Quad Core, has integrated GPU EVGA GTX 660 Superclocked Asrock z77 Extreme 4 - Has UEFI 2x4 GB Corsair DDR3 I installed mesa, the

  • Need to write a progrm to upload flate file  in my z table

    Hi all ,         I    need to write a progrm to upload flate file from presentation or application server  in my z table.Please guide me to do so. Regards, Ranu

  • OutOfMemoryError in TCP Extend nodes?

    Hi, We are facing a starnge issue in which a storage disabled tcp extend node is consistently occupying around 450mb of space? Whenever we populate data in cache even smaller than 40mb the it starts filling up oblivious space in tcp extend nodes. Alt

  • Update available window upper right hand corner of desktop and won't close

    '''Firefox 3.6.13 available get the new version...''' update available window has parked itself on my desktop and won't close

  • How do I uninstall Nokia Suite?

    I uninstalled Nokia Suite, but I still regularly get pop-ups saying 'Please wait while Windows configures Nokia Suite'. When I press Cancel, I get the message 'No valid source could be found for product Nokia Suite. The Windows Installer cannot conti