RFC_REMOTE_FILE

Hi
i am not able to find function module RFC_REMOTE_FILE in my system. in which version it is available.

it is not available from 4.7 onwards.
Try using...
RZL_GET_REMOTE_FILE

Similar Messages

  • File Format Mismatch while update into Internal table using RFC_REMOTE_FILE

    Hi All,
    I used RFC_REMOTE_FILE to communicate with the presentation server in Background Mode. I connected successfully and got output too.
    But my requirement is to update the .csv file into internal tables.
    With RFC_REMOTE_FILE i can get the data as single row. But I can't separate the fields and update into the corressponding table field.
    What is the solution for the above issue. Could anyone help me.
    For the above RFC Communication I followed the below link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true

    Hi All,
    I used RFC_REMOTE_FILE to communicate with the presentation server in Background Mode. I connected successfully and got output too.
    But my requirement is to update the .csv file into internal tables.
    With RFC_REMOTE_FILE i can get the data as single row. But I can't separate the fields and update into the corressponding table field.
    What is the solution for the above issue. Could anyone help me.
    For the above RFC Communication I followed the below link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true

  • RFC Connection error - Invalid length. Check parameters.

    Hi Forum, Good Morning!
    My ABAP Program will run in BACK Ground Job Processing(SM37) to download data to Presentation server( Local PC Directory). So I have created a RFC destination type TCP/IP to use 'RFC_REMOTE_FILE'  function module in my ABAP Program.
    When I am trying to test RFC connection It is giving following error.
    ERROR   Invalid length. Check parameters
    LOCATION  SAP- Server dsapp05_R3D_10 on host dsapp05 (wp 2)
    COMPONENT   CPIC
    COUNTER   14
    MODULE
    LINE
    RETURN CODE    240
    SUBRC                0
    RELEASE           640
    TIME                   Mon Dec 11 10:08:05  2006
    I did following procedure before I test RFC destination..
    I have created RFC Destination : BJRFC
    Technical Settings: Selected Registered Server Program radio button
    Program ID: BJACCESS
    Gateway host : 172.22.149.199
    gateway Service: sapdp10
    In my local machine Copied  ‘SAPRFC.INI’ file from the TEXT folder to the BIN Folder.
    Then open the SAPRFC.INI file in BIN folder and Register a RFC server program at a SAP Gateway.
    DEST=R3D_R
    TYPE=R
    PROGID=BJACCESS.rfcexec
    GWHOST=172.22.149.199
    GWSERV=sapdp10
    RFC_TRACE=0
    DEST=R3D_R
    TYPE=R
    PROGID=BJACCESS.trfcexec
    GWHOST=172.22.149.199
    GWSERV=sapdp10
    RFC_TRACE=0
    Then entered below command in dos prompt.
    C:\Program Files\SAP\FrontEnd\SAPgui\rfcsdk\bin>rfcexec -aBJACCESS –172.22.149.199 –xsapdp10.
    so how do i proceed in this kind of case.
    any help  please.
    Thanks in advance.

    Hi,
       Just you check whether your program is registered or not.
       If it is registered then you can find in SMGW transaction and go to
       GOTO - Logged on clients
    in that you will be able to see your program name if it registers succesfully.
    you have typed rfcexec -aBJACCESS –172.22.149.199 –xsapdp10
    in this way.
    In this you have misseg 'g' in front of your sap ip.
    Thanks&Regards
    Rajehs Balusu

  • Delete a .csv file from desktop system

    Hi All,
    My requirement is to read the .csv file from the desktop system having the shared folder and delete the file after read successfully.
    Here I can read the .csv file from the location using the function RFC_REMOTE_FILE and updated the content into internal table.
    But I cant delete the file from the presentation server ( Desktop system).
    Can anyone tell me how to delete the .csv file from the desktop system on different location.
    Note:
    I followed this link to read file:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true

    Hi Rob,
    Thanks. I solved this problem myself.
    The solution to delete the file from remote system is
    concatenate 'DEL' i_filename i_dirname into v_bkfile separated by space .
    call function 'RFC_REMOTE_EXEC'
      destination  c_dest
      exporting
        command               = v_bkfile
      exceptions
        system_failure        = 1  MESSAGE v_ermsg
        communication_failure = 2  MESSAGE v_ermsg.

  • BAckground Job Downloading.

    Hi Experts,
         There's a solution of SAP regarding this topic using rfcsdk method by cerating SM59 and some changes to your local machine to have a connection between your machine and SAP server in background mode.
          But the RFC_REMOTE_FILE function has a limit of 256 characters of reading.
          How can we by pass this limit or rather cross the limit of 256 characters.

    Jenifer,
    When you download a spool in "Spreadsheet", SAP really downloads the data in tab delimited text format, even thought the file extension is .XLS.
    So, just open the Excel file in notepad (or any other text editor) and see if the missing rows are present. If there are, then you have to figure out how to import the file properly into Excel file without losing the rows.

  • RFC communication to presentation sever in background mode

    I need to download data in background mode to a presentation server.  I found documentation from 2005 regarding this process and have successfully set up an RFC to send the data.  In my ABAP program, I use RFC_REMOTE_FILE to send an internal table of data to the presentation server via the RFC connection.  The connection works fine except that only the first 80 characters of each line of the internal table are sent.  I found unanswered forum questions regarding the need to send more than 255 characters (which I could live with) so I am hoping that I can send more than an 80 character table.  We are on ECC 6.0 - EHP4 with GUI 720.
    Any help would be appreciated.
    Lisa

    Hi Lisa,
    Lisa Carr wrote:
    I found documentation from 2005 regarding this process and have successfully set up an RFC to send the data.
    > Lisa
    Could you provide a link of the above documentation on settiing up RFC to send data to file?
    Did you try using FM- DOWNLOAD?
    Regards,
    Ajay

  • More than 255 characters need to be populated in text file of destination.

    Dear experts,
    i am having following scenario in which i am sending the file to a destination system through RFC connection which is having more than 255 characters, But it is not allowing me to enter more than 255
    The code i have written is mentioned below,
    lv_string = '///++++#####$$&&^%$%@$$@@(&@&@#%@&%#464(@)))(@&@&&@*&@)@(&@@%&%&@&@*@&@&&*@&*****^&&*&%$%$$#$##@#$@%%&&*******(((((((((((((((&!@#$$%%%&&(()))_(**&&&&&^^^^%%%%$$$$###'.
    itab-l_string = lv_string.
    CONCATENATE itab-l_string itab-l_string itab-l_string into itab-l_string.
    CONDENSE itab-l_string.
    Append Itab.
    call function 'RFC_REMOTE_FILE'
        DESTINATION 'BJRFC'
        EXPORTING
        FILE = 'D:\tmp\test_ster3.txt'
        WRITE = 'X'
    *FILETYPE = ''
        TABLES
        FILEDATA = itab
        exceptions
        system_failure = 1 message dg_ermsg
        communication_failure = 2 message dg_ermsg.
    Can anybody suggest me how to fetch the requireoutput.

    Dear alex,
    With this output the the following cases appearing in system,
    1) rfc connection is getting failed due to excess length, no file generated
    2)Some times o/p file getting generated with 0KB, i mean there is no data in the output.
    Once agian i am putting the code here
    Kindl suggest
    *& Report  Z_ZIC_ZI001
    REPORT  Z_ZIC_ZI001 line-SIZE 250.
    Data : lv_string type string,
           dg_ermsg TYPE char120.
    Types : begin of ty_itab,
          l_string(2050) type c,
           l_string type string,
          end of ty_itab.
    data : itab type ty_itab occurs 0 with HEADER LINE.
    lv_string = 'I am having following scenario in which i am sending the file to a destination system through RFC connection which is having more than 255 characters, But it is not allowing to enter more than 255 XXXXXXXXXXXXXXFFAFFAGAGAGAGAGG'.
    CONCATENATE  lv_string lv_string lv_string into lv_string.
    CONDENSE lv_string.
    *while strlen( lv_string ) > 255.
        itab-l_string = lv_string+0(255).
        append itab.
        lv_string = lv_string+255.
    *endwhile.
    itab-l_string = lv_string.
    append itab.
    call function 'RFC_REMOTE_FILE'
        DESTINATION 'BJRFC'
        EXPORTING
        FILE = 'D:\tmp\test_ster5.txt'
        WRITE = 'X'
    *FILETYPE = ''
        TABLES
        FILEDATA = itab
        exceptions
        system_failure = 1 message dg_ermsg
        communication_failure = 2 message dg_ermsg.
    if sy-subrc = 0.
    write : 'success'.
    else .
       write : dg_ermsg.
    endif.

  • Download the file in presentation server while the program runs in backgrou

    Hi,
    Usually we will never download the file in presentation server while the job is scheduled in back ground.
    But now i need to do that. I need to download the data in excel file and the same program is scheduling in background.
    Can any one suggest how can we do this?
    Thanks in Advance,
    Ravi

    Hi,
    There is an alternative provided by SAP. The program RFCEXEC has to be installed locally on the PC.
    In SAP R/3 we have to define a destination link to your local PC to the RFCEXEC program. And in the ABAP program we have to invoke the connection by calling the FM  RFC_REMOTE_FILE.
    I haven’t tried this before but a detailed documentation is available in this link.
    http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm
    Reward if useful
    Regards
    Shiva

  • Downloading Document Files in the Background

    Hello,
    I have two questions regarding downloading document files to a Windows server in the background.
    <u>First Question:</u>
    My company is currently on SAP R/3 4.6B. We have several programs that use function module WS_DOWNLOAD to download documents to a Windows directory (C drive, network server, etc.). However, WS_DOWNLOAD will only work when run in the foreground, since there is no connection to the presentation server when run in the background. Our work around for this has been to create a UNIX file and then FTP it to the Windows server, which can all be done in the background. Is there another way to download directly from SAP to a Windows server in the background with 4.6B.
    <u>Second Question:</u>
    We have an upgrade to mySAP ERP 2004 scheduled in the near future. Is it possible to do what I've asked above in mySAP ERP 2004?
    Thanks,
    Jamey

    for your first question
    Well you can do it in two ways.
    1: instead of using FTP from unix, you can use it from within SAP using ftp function modules. for durther details and examples you can check development class SFTP in se80 for function modules and demo programs.
    The advantage of this technique is that if FTP fails for some reason, you abap code can generate a proper error message or log so that user can see that file is not transfered.
    2: you can run sap supplied program RFCEXEC.exe on your windows server thus making it as an RFC server, that create an RFC destination pointing to this server in SAP (Transaction code SM59) and use this destination to call RFC function modules to create a file on destination from an internal table. you can use the RFC function RFC_REMOTE_FILE
    example: your data is in table outtab
      CALL FUNCTION 'RFC_REMOTE_FILE'
         DESTINATION p_dest
         EXPORTING
             file = file
             write = write
         TABLES
             filedata = outtab
         EXCEPTIONS
           communication_failure = 1 MESSAGE msg_text
           system_failure        = 2 MESSAGE msg_text.
    cheers

Maybe you are looking for