Send uploaded file to another server

i have build a bsp who can i upload 2 files.
these files are saved in a table with filename, extention and content. now i want to send these informations to a external server.
i found nothing about this theme...
have somone a idea?
thx
Dogas
Message was edited by: Chris McDogas

There is a coding example in this weblog of using the HTTP Client Functionality:
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
However I think that only gets you part of the way there.  I'm still now sure exactly what mechanism you will use to upload the file.  That is why I asked can you perform the action from a PC.  I was trying to figure out if there is a webpage on this external server that has a UI for uploading the file. Just making an HTTP connection isn't going to magically transport your file up to this external server.

Similar Messages

  • How to upload file from Application Server?

    Dear Friends,
    How to upload file from Application Server?
    Plz. with example...
    Regards,
    Dharmesh

    hi,
    check the code for upload from application server.
    tables: kna1.
    types: begin of s_file,
             customer type kna1-kunnr,
             country  type kna1-land1,
             name     type kna1-name1,
             region   type kna1-regio,
           end of s_file.
    *--Internal tables
    data: it_file type s_file occurs 0 with header line.
    *-- Selection screen
    selection-screen: begin of block b1 with frame title text-001.
    parameter: p_file type rlgrap-filename default 'C:/customer.txt'
    obligatory.
    selection-screen: end of block b1.
    *-- At selection screen
    at selection-screen on value-request for p_file.
    perform file_help using p_file.
    *-- Process File
    start-of-selection.
      perform upload_file using p_file.
    *-- write File data to o/p
    end-of-selection.
      perform write_data.
    *&      Form  file_help
    form file_help  using    p_p_file.
      data: l_filepath type ibipparms-path.
      call function 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       importing
         file_name           = l_filepath
      p_p_file = l_filepath.
    endform.                    " file_help
    *&      Form  upload_file
    form upload_file  using    p_p_file.
      call function 'WS_UPLOAD'
       exporting
         filename                      = p_p_file
         filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
        tables
          data_tab                      = it_file
       exceptions
         conversion_error              = 1
         file_open_error               = 2
         file_read_error               = 3
         invalid_type                  = 4
         no_batch                      = 5
         unknown_error                 = 6
         invalid_table_width           = 7
         gui_refuse_filetransfer       = 8
         customer_error                = 9
         no_authority                  = 10
         others                        = 11
      if sy-subrc <> 0.
        message i001.
      endif.
    endform.                    " upload_file
    *&      Form  write_data
    form write_data .
      loop at it_file.
        write:/ it_file-customer, it_file-country, it_file-name,
                it_file-region.
      endloop.
      endform.
    regards,
    keerthi.

  • How to copy file to another server from database using FTP in oracle

    How to copy file to another server from database using FTP in oracle.
    Please do the needfaul.

    Billy  Verreynne  wrote:
    BluShadow wrote:
    Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
    But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
    :)

  • Tcode to upload file to SRM Server.

    Hi,
    We have a requirement to upload file into application server and then read the data into internal table.
    In ECC we can use the tcode CG3Y/CG3Z but this Tcode is not available in SRM Server,
    Can anyone suggest corresponding tcode in SRM server to upload data into application server.
    Thanks in advance,
    Jerin

    Jerin,
    Please go throgh the below link which will help for upload the contracts.
    http://help.sap.com/saphelp_srm40/helpdata/en/e5/2c85403e1b6e1de10000000a1550b0/content.htm
    Best Regards,
    NMK

  • How to send CSV files to external server

    Hi All,
    How to send CSV files to external server (not to application server).
    I know how to download files to application server.
    Please give me the steps to send CSV files to external server.
    Is it posiible with RFCs? If yes, then plz provide me the steps. Do we need to create RFC destination for this.
    Appriciate your help with rewarding points.
    Please help as this is an urgent requirement

    hi,
    you can send via xi.
    chk this blog
    a) content conversion (sender)
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    b)content conversion (receiver)
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    <b>
    reward points if this helps you.</b>
    Siva
    Message was edited by:
            SivaKumar

  • SSIS 2008 R2 - Export data to Flat File in another server

    Hello Everybody,
    I'm trying to export data from a table in database server to flat file in another server, however it is happening the error Access Denied. I'm using SQL Server Integration Service 2008 R2 to do this.
    I've checked all the ways that's happening could the level of security and could not resolve. 
    Please could someone tell me what I'm missing in this case? 
    Following error log:
    SSIS package "AtualizarDados.dtsx" starting.
    Information: 0x4004300A at Gerar arquivo, SSIS.Pipeline: Validation phase is beginning.
    Information: 0x40043006 at Gerar arquivo, SSIS.Pipeline: Prepare for Execute phase is beginning.
    Information: 0x40043007 at Gerar arquivo, SSIS.Pipeline: Pre-Execute phase is beginning.
    Information: 0x402090DC at Gerar arquivo, Geração de Arquivo [63]: The processing of file "\\targetserver\Export_File\Export_File.txt" has started.
    Warning: 0x80070005 at Gerar arquivo, Geração de Arquivo [63]: Access is denied.
    Error: 0xC020200E at Gerar arquivo, Geração de Arquivo [63]: Cannot open the datafile "\\targetserver\Export_File\Export_File.txt".
    Error: 0xC004701A at Gerar arquivo, SSIS.Pipeline: component "Geração de Arquivo" (63) failed the pre-execute phase and returned error code 0xC020200E.
    Information: 0x40043008 at Gerar arquivo, SSIS.Pipeline: Post Execute phase is beginning.
    Information: 0x402090DD at Gerar arquivo para DMZ, Geração de Arquivo [63]: The processing of file "\\targetserver\Export_File\Export_File.txt" has ended.
    Information: 0x4004300B at Gerar arquivo, SSIS.Pipeline: "component "Geração de Arquivo" (63)" wrote 0 rows.
    Information: 0x40043009 at Gerar arquivo, SSIS.Pipeline: Cleanup phase is beginning.
    Task failed: Gerar arquivo
    SSIS package "AtualizarDados.dtsx" finished: Success.
    Regards,
    Antonio Estima

    I got after using domain user. 
    Thanks to all

  • Server Admin may overwrite files from another server!

    Not 100% sure how this happened, but I found that the users could no longer log onto one of the mail servers. The mail client return a partition error. After some quick investigation I found something that I could just not believe.
    The files main.cf and imapd.conf were wrong....they were the files of another server of mine. I just could not understand how that was possible. I made manual changes to both files to correct them and all was working again. The only way this could have happened was for Server Admin (I had both servers open) to have done it. Has anyone else seen that problem, I do hope not.
    Any idea what other files that Server Admin may update? Whilst I think all is OK now, it is hard to way 100%.
    Tim

    Alex,
    Did some more checking this morning when the pressure was less and can confirm that all the files that the mail section of Server Admin edits were changed to match the setting of the other server that it also has a connection to. Only hope the problem was 'cos I had both servers open at the same time and not the general used of the Admin app. Only really use it on mail now for looking at logs. Will make this as closed, but post something in the admin forum to warn others.

  • How to configure IPS 4240 - K9 to send log file to syslog server

    I am looking for the commands in how to configure IPS 4240-k9 to send log file to SYSLOG server. If anybody has or came across similer issue please advice.
    Thanks in advanced.

    Ali -
    I am sorry to tell you, but the Cisco IPS Sensors do not send Syslog messages. Your only options for sending signature event information are:
    SDEE (an TLS Encrypted XML formatted message) the sensor is the SDEE Host and your event receiver (MARS, IME, Intelitactics, etc) is the client.
    SNMP Traps - You need to set the "Action" on each signature you want the sensor to send a trap.
    - Bob

  • Problem in uploading file from Application Server

    Hi everyone,
    i got a problem in uplaoding a file from application server.i am having two folder (one folder name is current and another one is processed)in application server. In current folder i am having N no of files.I want to upload all the files names into one internal table and i want to process one by one file.After processing each file the file should be moved to processed folder and the files should not exist in current folder.All these process must be done everyday.Please rectify my problem asap.

    Ramesh,
    Take authorization from basis guy.
    Use the below code to get the list of files from require directory
    *& Report  ZDIRFILES                                                   *
    REPORT  ZDIRFILES    .
    PARAMETER: p_fdir            type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
            include structure salfldir.
    data: end of it_filedir.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Get Current Directory Listing for OUT Dir
      call function 'RZL_READ_DIR_LOCAL'
           exporting
                name     = p_fdir
           tables
                file_tbl = it_filedir.
    Now in internal table "it_filedir"  will have all your files.
    For moving and deleting
    report zrich_0001.
    Parameters: d1 type localfile default '/usr/sap/TST/SYS/fld1/Data1.txt',
                d2 type localfile default '/usr/sap/TST/SYS/fld2/Data1.txt'.
    data: begin of itab occurs 0,
          rec(20) type c,
          end of itab.
    data: wa(20) type c.
    start-of-selection.
      open dataset d1 for input in text mode.
      if sy-subrc = 0.
        do.
          read dataset d1 into wa.
          if sy-subrc <> 0.
            exit.
          endif.
          itab-rec = wa.
          append itab.
        enddo.
      endif.
      close dataset d1.
      open dataset d2 for output in text mode.
      loop at itab.
        transfer itab to d2.
      endloop.
      close dataset d2.
      delete dataset d1.
    Check below FM if required
    To move the file to archive directoryuse FMs 'PFL_COPY_OS_FILE'
    To Delete 'EPS_DELETE_FILE'.
    Don't forgot to reward if useful

  • Uploading files a landing server using webutil

    dear all,
    i have the current situation and i'm looking for solution.
    i'm using the webutil in order to upload files from the client side to a landing server, the situation here is :
    when i use the following code
    webutil_file_transfer.Client_To_AS_with_progress
    (clientFile => :upload.file_name
    ,serverFile => 'd:\temp\'||l_bare_filename
    ,progressTitle => 'Upload to Application Server in progress'
    ,progressSubTitle => 'Please wait'
    ,asynchronous => false
    ,callbackTrigger => null
    where d:\temp is alocal directory on the AS
    but if i change the server file to a drive mapping i'll have the following error
    WUT-132, my question here is it possible for the webutil to upload a file to another landing server other than AS?
    how can i do it without making a hidden share to the folder ?
    the other question if i have a firewall between the client and the AS, will it prevent the webutil uploading process ?

    i want to add another point, when we make hidden share to the map drive the uploading worked successfuly.
    what i need here is a way to access the map drive without making hidden share to the map drive?

  • Can't access uploaded file in weblogic server

    I uploaded a file using java network and io classes.The file at the server location got permissions as rw-r----- after upload.
    But I am not able to access the file after this upload using java Runtime.
    When I execute a cp command to copy the file to another location a "can't access" error is returned.
    Tried running the server using sudo but same error.
    Weblogic server-10.3.5
    Operating system-solaris 10
    JDK6
    Running in development mode.

    Here is the zip file with all the code.  MAIN VIDAQ is the top level.
    Read VIDAQ Variables reads the .txt file.
    Thanks,
    Mark
    Attachments:
    SLDAQ Basic Software LV 2011 10.01.zip ‏1804 KB

  • Need Help on cffile upload, destination to another server

    Anyone know why get this error? The specified directory attribute value Z:\Project_X\UploadFile\DlrPayInq\ could not be created.
    The setup of my server is as below : -
    I'm trying to use cffile to upload a file where by the destination i declare is located at another server which is my file server.
    i had create a mapping from my application server to the file server as Z:.
    <cfset dlrPayInq_w = "Z:\Project_X\UploadFile\DlrPayInq\">
    <cfif trim(fileName) NEQ "">
         <cfif directoryexists(dlrPayInq_w)>
    <cfelse>
        <!--- Create this folder --->
        <cfdirectory action = "create"
        directory = "#dlrPayInq_w#">
    </cfif>
    <cffile action="UPLOAD" filefield="fileName" destination="#dlrPayInq_w#" nameconflict="overwrite">
    I had grant the folder permision to User type USER with Full Control, i can login as a normal window user and create files at  Z:\Project_X\UploadFile\DlrPayInq\ manually.
    But when i try to upload file using cffile in my program, i hit this error The specified directory attribute value Z:\Project_X\UploadFile\DlrPayInq\ could not be created. Actually the folder DlrPayInq is already exist in that fileserver, how come CF trying to create again?
    I try to remove this code
    <cfif trim(fileName) NEQ "">
         <cfif directoryexists(dlrPayInq_w)>
    <cfelse>
        <!--- Create this folder --->
        <cfdirectory action = "create"
        directory = "#dlrPayInq_w#">
    </cfif>
    and i get another error, CFFILE atttribute error.
    Any expert can help? Thanks for advanced.

    To expand on tclaremont's reply.  "Z:" that you are using is a mapped drive and mapped drives are user specific.  So as well as making sure that ColdFusion is running as a user that has permissions to the remote server, you would have to log into the server using ColdFusions user account and create the mapped drive under that user.
    Most people don't bother with mapped drivers but rather use UNC path syntax.  Which would looks something like "\\MyRemoteServersName\Project_X\UploadFile\DirPayInq\"

  • Writing files to another server

    Hi,
    I need help or ideas with writing files (1 text and 1 image) from my servlet to a share/location on another server.
    How can this be achieved?

    Hello,
    1. Shared drives between both servers.
    2. You need to write some remote service [WebService, RMI, EJB] on the second server listening on a port and which can receive the information you send through.
    Thanks,
    Paz

  • Reading uploaded file from app. server

    Hi All,
    I am trying to upload a .csv format file to app. server thru txn CG3Z....
    When i try to open the file in my code thru open dataset and read dataset ...it is giving it in the form of 
    30002058,1000#50055501,2000#
    Now i want it to be in
    30002058,1000
               50055501,2000
    format...
    pleas suggest..
    thnx
    Rk

    Hi Rahul,
    have you tried reading it in BINary format?
    Kind regards,
    Alvaro

  • Problem in accessing the media files from another server

    Currently I am working in a project with streaming video on demand and using FMS 4.5.
    Let’s say the FMS is installed on one machine say ‘121.123.35.34’ and there is another server ‘100.54.88.222’ where all the media files belong. Now we need to point to this third server to play videos from FMS.I have done the below changes:
    In the fms.ini file: set the VOD_DIR2 = \\100.54.88.222\myvideos
    In the application.xml: Added the stream: <Streams>/hr;${VOD_DIR2}</Streams>
    From my application accessing the path of flv as:source= “rtmp:// 121.123.35.34:1935/vod/hr/test” . Not able to access the video.
    Note: If I will point to say ‘C:hrvideos’ in VOD_DIR2, then I am able to access the videos using the same URL.
    I also tried mapping the shared path to the FMS machine and then given the mapped drive path in the VOD_DIR2, but this also doesn’t work.
    Please let me know:
    If we need to configure any other parameter to stream videos from another server.
    VOD_COMMON_DIR: I modified this similar TO VOD_DIR to location 'C:hrvideos', I am able to stream the videos using rtmp, but not abl eto stream with http.
              Please let me know  can we stream using http also as we need this to run f4m manifest file.
              http://121.123.35.34:8134/vod/hr/sample.mp4.
              http://121.123.35.34:8134/vod/hr/sample.f4m
    Thanks,
    Anjali

    Hi Shiven,
    I followed the steps suggested by you:
    1) Changed the stream:
    <Streams>/hr;${VOD_DIR2}</Streams> to<Streams>/;${VOD_DIR2}</Streams>
    But not able to access the video with rtmp:// 121.123.35.34:1935/vod/test
    2) For http streaming, changes the HttpStreamingContentPath in hds-vod in the httpd config file, and tried to stream the video like:
    http:// 121.123.35.34:8134/vod/test.mp4 or
    http:// 121.123.35.34:8134/hds-vod/test.mp4
    But not able to load the video.
    Please suggest?
    Thanks & Regards,
    Anjali Rawat

Maybe you are looking for