Error in GUI_DOWNLOAD

hi everybody
do u know why we get the error "Error Calling Data Provider" when downloading a file using the fm 'GUI_DOWNLOAD

Hi Sia Anjali,
Use this code to download your records into a text file (.txt).
Its working.
REPORT  Z_VENDRP.
***********************************************Type declaration****************************************************
TYPES : BEGIN OF VENDOR,
        LIFNR LIKE RF02K-LIFNR,
        BUKRS LIKE RF02K-BUKRS,
        EKORG LIKE RF02K-EKORG,
        KTOKK LIKE RF02K-KTOKK,
        ANRED LIKE LFA1-ANRED,
        NAME1 LIKE LFA1-NAME1,
        SORTL LIKE LFA1-SORTL,
        LAND1 LIKE LFA1-LAND1,
        SPRAS LIKE LFA1-SPRAS,
        WAERS LIKE LFM1-WAERS,
        END OF VENDOR.
******************************************Internal Table declaration***********************************************
DATA : VENDOR_TAB TYPE STANDARD TABLE OF VENDOR INITIAL SIZE 10 WITH HEADER LINE.
START-OF-SELECTION.
***************************************Select query into internal table********************************************
SELECT ALIFNR BBUKRS CEKORG AKTOKK AANRED ANAME1 ASORTL ALAND1 ASPRAS CWAERS
FROM ( LFA1 AS A JOIN LFB1 AS B ON ALIFNR = BLIFNR )
JOIN LFM1 AS C ON ALIFNR = CLIFNR
INTO TABLE VENDOR_TAB.
*********************************Use GUI_DOWNLOAD Function Module***************************************
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
     FILENAME                        = 'C:/Vendors1.txt'    "File name
     FILETYPE                        = 'DAT'                     "File type
    TABLES
      DATA_TAB                        = VENDOR_TAB.     "internal table (data to be passed)
  IF SY-SUBRC <> 0.
  ENDIF.
Hope this solves your problem.
Thanks & Regards.
Tarun Gambhir.

Similar Messages

  • RH_START_EXCEL_WITH_DATA - System Error:unknown error when GUI_DOWNLOAD is

    Hi,
    I am using FM 'RH_START_EXCEL_WITH_DATA' to download data of an internal table to excel sheet.
    I'm passing the filename, internal table as mentioned below:
    CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
    EXPORTING
    DATA_FILENAME         = v_xls_file
    DATA_PATH_FLAG     = 'W'
    DATA_TABLE              = i_test[].
    But I am getting this following error:
    System Error: unknown error when GUI_DOWNLOAD is called.
    Thanks in advance.

    Hey Wincy , If you want to download Internal Table's data in to Excel just use the Method
    cl_gui_frontend_services=>gui_download....
    If you need any code assistance kindly Let me know. although  the method is easy to use and Works fine.

  • Control flush error in gui_download

    Hi All,
    I get a control flush error while trying to use the FM GUI_DOWNLOAD
    in my BSP Application.
    Can anyone suggest the possible cause and solution?

    Dear Raja,
    I used the code given in one of the posts:
    ITAB contains my data so..
    LOOP AT ITAB INTO WA.
    CONCATENATE L_STRING WA-PARTNER
    WA-ADR_KIND
    WA-ADDRNUMBER
    CL_ABAP_CHAR_UTILITIES=>CR_LF
    INTO L_STRING SEPARATED BY SPACE.
    ENDLOOP.
    APP_TYPE = 'APPLICATION/MSEXCEL'.
    call function 'SCMS_STRING_TO_XSTRING'
    exporting
    text = l_string
    MIMETYPE = APP_TYPE
    IMPORTING
    BUFFER = l_xstring
    EXCEPTIONS
    FAILED = 1
    OTHERS = 2
    response->set_header_field( name = 'content-type'
    value = APP_TYPE ).
    some Browsers have caching problems when loading Excel format
    response->delete_header_field( name =
    if_http_header_fields=>cache_control ).
    response->delete_header_field( name =
    if_http_header_fields=>expires ).
    response->delete_header_field( name =
    if_http_header_fields=>pragma ).
    start Excel viewer either in the Browser or as a separate window
    response->set_header_field(
    name = 'content-disposition'
    value = 'attachment;
    filename=webforms.xls' ).
    finally display Excel format in Browser
    l_len = xstrlen( l_xstring ).
    response->set_data( data = l_xstring
    length = l_len ).
    navigation->response_complete( ).
    But I'm getting runtime errors in the line
    response->set_header_field( name = 'content-type'
    value = APP_TYPE ).
    Do you have any idea about how to correct it?
    Or, could you please suggest a simpler method?

  • Error in GUI_DOWNLOAD in background processing

    Hi All,
             We have a program that is using GUI_DOWNLOAD to download the results in text and .dbf format. In foreground it is working fine.But  in background the job is getting cancelled with a log that "Error in Downloading file."
    Please let me know if there is any solution for this.

    Hi,
    GUI_DOWNLOAD  does not work properly in the background.
    You can change the GUI_DOWNLOAD by
    'open dataset .. for output... ' and 'close dataset..' and use 'transfer..' to fill up the file.
    regards,
    Rolf

  • Error  FUNCTION ' GUI_DOWNLOAD' on OS win 7

    Hi experts 
    recently install  OS windows 7, and the applications that they use
    PARAMETERS P_FILE TYPE RLGRAP-FILENAME DEFAULT ' C :\ ' OBLIGATORY.
    compile but in time of execution not found as XP.    Now it doesn't show de dialog box explorer.
    Also gives me error when I execute applications with the function CALL FUNCTION ' GUI_DOWNLOAD' the error that recovers is UNKNOWN_DP_ERROR = 14
    Somebody knows if I have to install some SP for found on OS win 7?
    My Sap GUI  is 710
    GREETINGS

    Yes is ASC.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
            FILENAME                        = 'c:\mg.xls'
            filetype = 'ASC'
           append = ' '
            TABLES
              DATA_TAB                        = FileOut
           EXCEPTIONS
             FILE_WRITE_ERROR                = 1
             NO_BATCH                        = 2
             GUI_REFUSE_FILETRANSFER         = 3
             INVALID_TYPE                    = 4
             NO_AUTHORITY                    = 5
             UNKNOWN_ERROR                   = 6
             HEADER_NOT_ALLOWED              = 7
             SEPARATOR_NOT_ALLOWED           = 8
             FILESIZE_NOT_ALLOWED            = 9
             HEADER_TOO_LONG                 = 10
             DP_ERROR_CREATE                 = 11
             DP_ERROR_SEND                   = 12
             DP_ERROR_WRITE                  = 13
             UNKNOWN_DP_ERROR                = 14
             ACCESS_DENIED                   = 15
             DP_OUT_OF_MEMORY                = 16
             DISK_FULL                       = 17
             DP_TIMEOUT                      = 18
             FILE_NOT_FOUND                  = 19
             DATAPROVIDER_EXCEPTION          = 20
             CONTROL_FLUSH_ERROR             = 21
             OTHERS                          = 22.

  • Error Message:  GUI_DOWNLOAD

    Hi people,
    You could help me please.
    1 - In this case, i have a simple program to download a itab contents. When i executing it  on-line, saving in a local drive, the file is created normally, but when is executed in Background saving in a local drive too, the Job is terminated, but the file isn't created. In the end of this message have a example of the code.
    2 - In other case,  I have 1 program that executing in background too, the JOB aren't concluded and occurs Exception Error: UNKNOWN_ERROR.
    Code Example for the 1. problem.
    REPORT ZZ_TESTE .
    tables: t030.
    data: it_t030  LIKE t030     OCCURS 0 WITH HEADER LINE,
          i_ktopl             LIKE t030-ktopl,
          v_tabix like sy-tabix.
    data: begin of itab_t030 occurs 0.
              include structure t030.
    data: end of itab_t030.
    selection-screen begin of block b1 with frame title text-001.
      parameters: p_ktopl like t030-ktopl obligatory.
    selection-screen end of block b1.
          v_tabix = sy-tabix.
          select ktopl
                 ktosl
                 bwmod
                 komok
                 bklas
                 konts
                 konth
         FROM t030
         INTO table it_t030
         WHERE ktopl = p_ktopl.
            CALL FUNCTION 'GUI_DOWNLOAD'
             EXPORTING
                FILENAME                             = 'C:\TESTE_FLAVIO.TXT'
                FILETYPE                              = 'ASC'
                DAT_MODE                           = space
             TABLES
                DATA_TAB                              = it_t030
             EXCEPTIONS
               FILE_WRITE_ERROR                = 1
               NO_BATCH                                = 2
               GUI_REFUSE_FILETRANSFER         = 3
               INVALID_TYPE                            = 4
               NO_AUTHORITY                          = 5
               UNKNOWN_ERROR                   = 6
               HEADER_NOT_ALLOWED              = 7
               SEPARATOR_NOT_ALLOWED           = 8
               FILESIZE_NOT_ALLOWED            = 9
               HEADER_TOO_LONG                 = 10
               DP_ERROR_CREATE                 = 11
               DP_ERROR_SEND                   = 12
               DP_ERROR_WRITE                  = 13
               UNKNOWN_DP_ERROR                = 14
               ACCESS_DENIED                   = 15
               DP_OUT_OF_MEMORY                = 16
               DISK_FULL                       = 17
               DP_TIMEOUT                      = 18
               FILE_NOT_FOUND                  = 19
               DATAPROVIDER_EXCEPTION          = 20
               CONTROL_FLUSH_ERROR             = 21
               OTHERS                          = 22.

    Hi,
    In background the GUI_DOWNLOAD FM fails...so u have to use OPEN DATASET .so that ur file will be downloaded to application server....
       Internal table to display error contracts  .
         i_error         TYPE STANDARD TABLE OF t_error.
    Declaration of local variables
      DATA : lv_dsn3(1000) TYPE c,
             lv_dsn4(1000) TYPE c.
    IF NOT i_error IS INITIAL.
          LOOP AT i_error INTO wa_error.
            CONCATENATE  wa_error-lifnr
                         wa_error-evart
                         wa_error-vedat
                         wa_error-ekorg
                         wa_error-ekgrp
                         wa_error-epstp
                         wa_error-knttp
                         wa_error-bukrs
                         wa_error-kdatb
                         wa_error-kdate
                         wa_error-ktwrt
                         wa_error-waers
                         wa_error-wkurs
                         wa_error-inco1
                         wa_error-inco2
                         wa_error-ihran
                         wa_error-angnr
                         wa_error-msg
                         INTO wa_input1 SEPARATED BY c_tab .
            APPEND wa_input1 TO i_input1.
            CLEAR : wa_input1,
                    wa_error.
          ENDLOOP.
    Move the contract error files to the application server
          CONCATENATE v_fname1(15) lc_path1 p_aerfl1 INTO lv_dsn3.
          OPEN DATASET lv_dsn3 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
          CHECK sy-subrc EQ 0.
          LOOP AT i_input1 INTO wa_input1.
            TRANSFER wa_input1 TO lv_dsn3.
          ENDLOOP.
          CLOSE DATASET lv_dsn3.
        ENDIF.      
    Rewrad if helpful.
    Regards,
    Nagaraj

  • Error when using FM 'RH_START_EXCEL_WITH_DATA'

    Hi Friends,
    I am using FM 'RH_START_EXCEL_WITH_DATA' to download data of internal table to excel sheet. This is the way I have called this FM:
    CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
          EXPORTING
            DATA_FILENAME             = 'C:\test.xls'
            DATA_TABLE                = i_test[].
    But I am getting this following error:
    System Error: unknown error when GUI_DOWNLOAD is called.
    Can someone help me in getting out of this trouble?
    Thanks in advance.
    Regards,
    Krish.

    Hi Krish,
    You can ask your security team to check whether you have authorization to download to local.
    I just guess because I met an error related to download authorization before.
    Regards,
    Khanh

  • Handle error message

    hi
    How to handle error message for following FM?
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = lv_filename
        filetype                        = 'DBF'
        write_field_separator           = 'X'
    IMPORTING
      filelength                      = lv_file_len
       TABLES
        data_tab                        = it_final
        fieldnames                      = t_header
        EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       OTHERS                          = 22.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Error Message:  GUI_DOWNLOAD
    GUI_DOWNLOAD - Access Denied!! Why its throwing error message?
    Control flush error in gui_download
    Error in GUI_DOWNLOAD in background processing
    Error In Gui_download
    Reward points..

  • SM37 : Job canceled due to Control_flush_error

    Hello everyone,
    My program generates the text file and download it to presentation server.
    When I run it manually the files r getting generated.
    I had scheduled a Job for this same program. But it got cancelled givin following runtime error :
    Exception condition : Control_Flush_Error.
    Error Analysis :
    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.
    Information on where termination occurred:
    The termination occurred in the ABAP/4 program "SAPLSFES " in
    "GUI_CHAR_DOWNLOAD".
    The main program was "ZDD_FILE "( This is my program name.)
    The termination occurred in line 329
    of the source code of program "LSFESF02 " (when calling the ed
    The program "SAPLSFES " was started as a background job.
    Can anyone help me regarding the same??

    Hi,
    Check these
    CONTROL_FLUSH_ERROR with GUI_DOWNLOAD
    Control Flush Error in GUI_Download
    Contorl Flush Error
    In addition, You cannot schedule background jobs if you are using gui_download in your program.
    Regards,
    Suruchi
    Message was edited by:
            Suruchi Mahajan
    null

  • Getting error COMPUTE_INT_TIMES_OVERFLOW in GUI_DOWNLOAD

    Hi Experts,
    I am using server SRM 7.0
    and support package is  SAP_ABA     701     0007     SAPKA70107     Cross-Application Component
    I am getting dump in GUI_DOWNLOAD Function module
    This is ST22
    In the current program "SAPLSFES", multiplying the numbers 21550 and
    131070 (using the operation '*' or 'MULTIPLY') resulted in a value
    greater than 2147483647 or smaller than -2147483648. This
    results in a whole number overflow.
    Runtime Errors         COMPUTE_INT_TIMES_OVERFLOW
    Except.                CX_SY_ARITHMETIC_OVERFLOW
    Trigger Location of Exception
        Program                                 SAPLSFES
        Include                                 LSFESU17
        Row                                     517
        Module type                             (FORM)
        Module Name                             MASS_DOWNLOAD
    and its coming because of this
      514   if prc_filetype = 'BIN' and bin_filesize ne 0.
      515     tablesize = bin_filesize.
      516   else.
    >>>>>     tablesize = lines * record_length.
      518     binfilesize_lcl = tablesize.
      519   endif.
    Please tell me is there any Patch or note for it .
    Thanks & Regards
    Prashant Guta

    Hi Rogério Ribeiro,
    Thanks for Reply .
    I can not reduce file because  i am downloading Web Dynpro component by the download prgram given in Sap Link.
    so Web Dynpro component is big thats why prblem is coming .
    Thanks & Regards
    Prashant Gupta

  • Error in using GUI_DOWNLOAD

    Hi !!
    I am accessing my Module Pool program in web browser as a .dll file .
    I am using the function GUI_DOWNLOAD to save internal data in a text file.
    However  It is working fine in SAP , when i run the program in a web browser
    it gives me error .
    Kindly Help !!!!

    Hi,
    I never face such type of issue. I don't know the alternative for CL_WD_RUNTIME_SERVICES.
    But i searched some help for you.
    Please visit these links:
    problem to display a binary in a browser window via cl_wd_runtime_services
    http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/47/a8d95673b12fe2e10000000a42189d/frameset.htm
    Re: How can show binary attachment from SAP GUI.
    Actually your problem is displaying binary file from SAP GUI. Please go through these links.
    May it helps you.
    Regards.
    DS.

  • Error in Control Framework with GUI_DOWNLOAD FM

    Dear All,
    I am using GUI_DOWNLOAD FM to download a file in PDF format to presentation server.
    The code has been written in an enhancement spot in a class "/SCA/CL_SVORDER", method "Print" on an SNC server.
    On execution I get the error "Error in Control Framework".
    First I tht that this has something to do with the data table. But when I tried to pass a simple table of Integers in ASC format, it gave the same error.
    Please assist.
    *----Begin of Code Snippet
    data: fullpath type STRING value 'D:\temp\PO.pdf',
    bin_filesize type I,
    filetype type char10 value 'BIN'.
    bin_filesize = numbytes.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       BIN_FILESIZE                    = bin_filesize
        filename                        = fullpath
       FILETYPE                        = filetype
    IMPORTING
      FILELENGTH                      =
      tables
        data_tab                        = t_data
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *----End of Code Snippet

    Hi!
    I have the same error, but i need to use CSV Format.
    in another program, i used this with XML format.
      lv_xml = lr_element->to_xml( ).
    Converts the string to xstring
      lv_xxml = wd_this->convert_file( lv_xml ).
    Shows it in a new browser window
      *cl_wd_runtime_services=>attach_file_to_response(*
        *i_filename      = lco_filename*
        *i_content       = lv_xxml*
        *i_mime_type     = lco_mime_type*
        *i_in_new_window = abap_FALSE*
        *i_inplace       = abap_false ).*
    Regards!

  • Download a zip file with gui_download = CRC error

    Hello erverybody,
    I download a zip compressed file with gui_download (cl_gui_interface_services) in binary mode.
    When I try to open it, I have a crc error. Does anybody has any idea why?
    here the code:
           TYPES: begin of t_zip,
                 text(1024) type c,
                 end of t_zip.
          DATA: itab_zip type table of t_zip,
                wa_zip type t_zip.
          OPEN DATASET p_fileon IN BINARY MODE FOR INPUT.
          IF sy-subrc <> 0.
            MESSAGE text-e01 TYPE 'E'.
          ENDIF.
          DO.
            READ DATASET p_fileon INTO wa_zip MAXIMUM LENGTH 1024.
            APPEND wa_zip TO itab_zip.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fileon.
          MOVE p_filedw TO filename.
          CALL METHOD cl_gui_frontend_services=>gui_download
            EXPORTING
              filename                  = filename
              FILETYPE                  = 'BIN'
            CHANGING
              data_tab                  = itab_zip
    Thanks
    Joachim

    Hi Joachim,
    1. use this code (just copy paste in new program)
    2. It will download from SERVER to front-end.
    3.
    *& Report  YBCR_FILEDOWNLOAD                                           *
    REPORT  ybcr_filedownload                       .
    DATA
    DATA : file_name TYPE string.
    DATA : BEGIN OF itab OCCURS 0,
           ln(255) TYPE c,
           END OF itab.
    SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : appfn(150) TYPE c LOWER CASE OBLIGATORY.
    PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CLEAR p_file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = p_file.
      file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
      OPEN DATASET appfn FOR INPUT IN TEXT MODE  ENCODING DEFAULT .
      IF sy-subrc <> 0.
        MESSAGE s999(yhr) WITH 'COULD NOT OPEN FILE ON APP SERVER'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      DO.
        READ DATASET appfn INTO itab.
        IF sy-subrc = 0.
          APPEND itab.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      file_name = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          filename                        = file_name
      FILETYPE                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
        TABLES
          data_tab                        = itab
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    regards,
    amit m.

  • Function Gui_Download - Error calling Data Provider

    Hello masters, i develop a program that catches a pdf file and then we can download. in windows everything is working but the client uses Linux and SAP Gui For Linux and when is making download of file, systems throws message FES011 - Error calling Data Provider.
    when i'm using windows the path is build correct way but i'm using Linux the path isn't build correct, for example like this,  /home/rui/desktop\dir_1000.pdf . in debug i changed \ to / but systems throws the same error message.
    Someone have some clue to solve this problem.
      CONCATENATE gv_dir '\DIR_' <fs_final_alv>-pernr
                      '.pdf' INTO lv_fich.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              filename                = lv_fich
              filetype                = 'BIN'
            TABLES
              data_tab                = lt_pdf_output
            EXCEPTIONS
              file_write_error        = 1
              no_batch                = 2
              gui_refuse_filetransfer = 3
              invalid_type            = 4
              no_authority            = 5
              unknown_error           = 6
              header_not_allowed      = 7
              separator_not_allowed   = 8
              filesize_not_allowed    = 9
              header_too_long         = 10
              dp_error_create         = 11
              dp_error_send           = 12
              dp_error_write          = 13
              unknown_dp_error        = 14
              access_denied           = 15
              dp_out_of_memory        = 16
              disk_full               = 17
              dp_timeout              = 18
              file_not_found          = 19
              dataprovider_exception  = 20
              control_flush_error     = 21
              OTHERS                  = 22.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    regards and thanks in advance.
    Mario

    hello masters, thanks to all.
    Soumyaprakash was right... just because Linux is case-sensative, the system was putting all letters of path in upper case
    I just change in screen painter the field to accept upper/lower letters and now system mantain the letters has they come.
    regards and thanks one more time
    Mario

  • Error in Control Framework in smart forms programms use GUI_DOWNLOAD

    IN VF02 smartforms ENTRY form , I add a function about save PDF at local PC. When I print the smartfomrs,There is ERROR message in update modules.
    IN SM13 can see the ERROR message.
    Function Module: RV_MESSAGE_UPDATE
    Status :Update was terminated
    Error details: FES 022: Error in Control Framework
    I USE GUI_DOWNLOAD FUNCTION  at my code. WHEN I mark it,no error message. I must use the Similar function.
    How do I solve this problem???

    Hello,
    Check the thread:
    Re: Error in Control Framework in smart forms programms
    Regards,
    David

Maybe you are looking for

  • Stock report for Depots

    Hi We got a requirement to develop a report for depot , for a particular given period of time say suppose jan to march 2009 the depot want to see the stock details with value like if they run the report for jan to march , system should show the openi

  • Adobe reader 9.3 won't open pdf's

    Using XP Pro SP3 This just started a few days ago, but everytime I try to open a .pdf or adobe reader itself, I get the following message: "Adobe Reader 9.3 has encountered a problem and needs to close. We are sorry for the inconvenience." If I were

  • How to create a new BARCODE PREFIX   (for SAPScripts)

    In SE73 transaction, we can create a NEW printer barcode. For this we require 'barcode prefix' .There are some SAP standard barcode prefixes(for eg.SBP01)...but I want to create a new barcode prefix.. Please let know how to create a new BARCODE PREFI

  • Iphone 6 restoring issue

    I got a new iphone this morning at 1030 am and it has been restoring from icloud backup for almost 10 hours now.  Is something happening here or does it take this long?

  • XPath text() node comparison

    I have an XML document that looks something like: <A> <B>One </B> <B>Two </B> <B>Three </B> </A> I am using XPathAPI to evaluate my XPath Expressions and I would like to write an expression that will select a node of type B based on the value of its