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

Similar Messages

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

  • RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILED" raised on Publish of

    Hi,
    When i preview my Bi query in potal i am getting following exception :
    RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILED" raised
    Earlier i had already published some query which is working properly, but the new one which i am publishing now is giving me above exception.
    Regards,
    Jigar Oza

    Hi,
    Check the target on which the query is built is active in the same server.

  • 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

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

  • 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 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 "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILUR

    Hi,
    I am getting the following message when I click on workitems for CATS timesheet approval(TS3100007) that are received in UWL tasks inbox in MSS.
    Exception condition "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Exception condition "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
    at com.sap.xss.hr.cat.approve.blc.FcCatApprove.rfcExecute(FcCatApprove.java:307)
    at com.sap.xss.hr.cat.approve.blc.FcCatApprove.rfcReview(FcCatApprove.java:435)
    at com.sap.xss.hr.cat.approve.blc.wdp.InternalFcCatApprove.rfcReview(InternalFcCatApprove.java:220)
    at com.sap.xss.hr.cat.approve.blc.FcCatApproveInterface.onReview(FcCatApproveInterface.java:379)
    at com.sap.xss.hr.cat.approve.blc.wdp.InternalFcCatApproveInterface.onReview(InternalFcCatApproveInterface.java:153)
    at com.sap.xss.hr.cat.approve.blc.wdp.InternalFcCatApproveInterface$External.onReview(InternalFcCatApproveInterface.java:333)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownListInterface.onEvent(VcCatApproveDrillDownListInterface.java:128)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListInterface.onEvent(InternalVcCatApproveDrillDownListInterface.java:127)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListInterface$External.onEvent(InternalVcCatApproveDrillDownListInterface.java:217)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:533)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$600(FPMComponent.java:78)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.raiseReviewAndSaveEvent(FPMComponent.java:946)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.raiseReviewAndSaveEvent(FPMComponent.java:1109)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownList.fireEvent(VcCatApproveDrillDownList.java:330)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownList.fireEvent(InternalVcCatApproveDrillDownList.java:166)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownListInterface.blcEvent(VcCatApproveDrillDownListInterface.java:228)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListInterface.blcEvent(InternalVcCatApproveDrillDownListInterface.java:163)
    at com.sap.xss.hr.cat.approve.vac.dd.VcCatApproveDrillDownListView.onActionReview(VcCatApproveDrillDownListView.java:303)
    at com.sap.xss.hr.cat.approve.vac.dd.wdp.InternalVcCatApproveDrillDownListView.wdInvokeEventHandler(InternalVcCatApproveDrillDownListView.java:178)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: Exception condition "NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILURE
    at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
    at com.sap.xss.hr.cat.approve.model.approval.CatsApproval.hrmss_Cat_Wd_Approval(CatsApproval.java:178)
    at com.sap.xss.hr.cat.approve.model.approval.Hrmss_Cat_Wd_Approval_Input.doExecute(Hrmss_Cat_Wd_Approval_Input.java:137)
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
    Does anyone have any idea?
    Thanks.
    BNP

    Hi,
    It looks to me like the RFC Hrmss_Cat_Wd_Approval does not exist. Is your back-end system ECC 6.0? If not then I don't believe this will work. See page 93 of the document at this link:
    https://www2.iviewstudio.com/support_content/_17296/BP_MSS_mySAPERP2005_SR1_EN.pdf
    Bert

  • RFC_ERROR_SYSTEM_FAILURE -Exception condition 'INCONSISTENCY' rasied .

    Hi
    I created a report with 'Calculated KeyFigure' and 'Restricted KeyFigure' . And i transported to BI-Quality System.
    Then i opened the query in BI-Quality Query Designer and try to see the 'Calculated KeyFigure' and 'Restricted KeyFigure' .
    And im getting the below error
    RFC_ERROR_SYSTEM_FAILURE -Exception condition 'INCONSISTENCY' rasied .
    why it is coming like that . And delete the infocube from the BI-Quality System . And transported the query five times . But again im getting the same problem .
    pls let me knw
    kumar

    Hi Ravi,
    Please check this thread:
    Exception Condition "inconsistency" raised, RFC_ERROR_SYSTEM_FAILURE
    Hope it helps.
    Regards,
    Mona

Maybe you are looking for

  • Is Ae the program for me?

    So here's what I want to do: Make a big one-minute compilation of viral vidoes, sync the clips to music and play around with the Ae animator. All this has worked just fine, but when I rendered the video (.avi) the filesize was waaaaay to big, actuall

  • FAGLF101-Account determination for transaction V02 is missing for account

    Morning When I run the "faglf101" transaction, i get this error :  "Account determination for transaction V02 is missing for account 0000401142 Y1 PCG                                                                      Message no. FR005       " I ha

  • OAS 10g (10.1.2) - Read only Access Required to oc4j Container Settings

    As a load tester I need to be able to access the details of the container settings for our live servers to enable me to mimic this set up on my test kit. of particular interest are the Server Properties and Data Sources for each container. I am not p

  • Store keyword in DNG file

    I would like to have Lightroom store the Keyword information back into the file so that it's also available in other Software. I used iView before and it had a function to sync annotation information with the original file. Does Lightroom offer that

  • Yahoo email settings 8900

    I'm not sure what I did, but a setting has been changed. When I go through the Yahoo icon on the phone, it only shows the emails I got through the 1st of Feb? What should I do to get my new emails to appear. The alert settings for that email account