FTP in SAP

Hi,
Can any one help me how to do an FTP in SAP ECC. Step by step will be useful.
Regards
D.Mukundan

Usually you are using the ftp client of the underlying operating system to transport files from the SAP ECC system to an other machine.
So define your external ftp command in the SM69 and use the FM  SXPG_COMMAND_EXECUTE to execute it in your own program.

Similar Messages

  • How to copy/send text file from FTPS to SAP ECC File Port

    Hi Frdns,
    I am working on one design, actually my requirement as follows
    I am receiving financial information document from Banks, which is in the form of BIA2 message format, it looks like text file. This information needs to be sending to SAP ECC system.
    I identified some approaches to full fill the requirement
    1)Using Conversion agent/or third party tools to convert BIA2 message in to XML, then using PI I will pick up the XML message, convert it in to IDoc.
    2)Without any conversion I will copy the same file (original BIA2 message) in to SAP ECC file port, in this case no conversion required, calling some program I will schedule it.
    I am looking forward t implement the second approach because it saves lot of money to my client.
    Now I am wondering using File adapter can i copy to SAP ECC File Port or I required ABAP proxy?
    What is the best approach to copy the BIA message text file from FTPS to SAP ECC File Port.??
    Regards,
    Raj

    Hi Raja,
    >>Now I am wondering using File adapter can i copy to SAP ECC File Port or I required ABAP proxy?
    Yes you can do this copy, the only restriction that can happen is the file size.. If you are sure that the fiel will be of few MB at the max then you can use the Configuration part alone and copy it to ECC folder. For doing this you need the following:
    1. Sender agreement (mention the sender interface as anything XYZ)
    2. Sender communication channel. Pick the file in binary mode
    3. Receiver determination (keep both the sender and receiver service as same)
    4. Interface Detemiantion (dont specify any mapping and keep the receiver interface name as XYZ)
    5. Create receiver agreement (with same service and interface)
    6. Use file adapter here
    Regards
    Suraj

  • FTP to SAP using ABAP Proxy

    Hi SDN,
      I am new to XI can any one provide me clear documentation or link on "FTP to SAP using ABAP Proxy" on this senario. I mean the steps to create ABAP Proxy etc..
    Thanks in Advance
    Regards
    Basha

    Hi Shaik
    Please go through the information provided in the blogs below which explains clearly the Scenario you want to try.
    <a href="/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy Proxies in XI</a>
    <a href="/people/siva.maranani/blog/2005/04/03/abap-server-proxies Server Proxies</a>
    <a href="/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy to R/3 via ABAP Proxy</a>
    Please do let me know if you want any more help regarding the same.
    Regards,
    Abhy

  • Secure FTP from SAP

    Hi,
    How do you handle secure FTP from SAP without using scripting ?
    Is it possible to set up your RFC destination using the SSL option under the Logon/Security Tab ?
    Or is there another method ?
    Cheers
    Colin.

    Check out - Call   RSFTP020
    Here is an example of
    how to FTP a file from the Application server to a remote server using standard SAP functions.
    REPORT ZKBTST32 LINE-SIZE 132.
    Test SAP FTP functions
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
    ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
    ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
    ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
    USER = 'userid'
    PASSWORD = MC_PASSWORD
    HOST = 'servername'
    RFC_DESTINATION = 'SAPFTP'
    IMPORTING
    HANDLE = MI_HANDLE
    EXCEPTIONS
    NOT_CONNECTED = 1
    OTHERS = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    HANDLE = MI_HANDLE
    COMMAND = 'dir'
    TABLES
    DATA = MTAB_DATA
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4.
    IF SY-SUBRC = 0.
    LOOP AT MTAB_DATA.
    WRITE: / MTAB_DATA.
    ENDLOOP.
    ELSE.
    do some error checking.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
    EXPORTING
    HANDLE = MI_HANDLE
    EXCEPTIONS
    OTHERS = 1.
    Hope this helps you,
    CHeers,
    THomas

  • How do you send by secure ftp from SAP R/3 4.6C on iseries

    We have been using the SAP Standard program, RSFTP002, to ftp files to remote servers for many years. We have now had a requirement to send via secure ftp. We are using R/3 4.6C. Unfortunatley this is not a straight forward change and it seems we may need to install some client software to enable this.
    I have searched for any SAP notes and in several user groups but have not been too sucessful.
    Has anyone ever set this up before? What client software did you use?
    Any pointers / advice on this would be much appreciated.
    Many thanks,
    Steven

    Further to my initial post, I have now discovered that there are additional options on the ftp command on iseries, so I am hoping if I can perform this manaully, then a CL called from SAP would allow me to resolve this challenge.
    I am trying to use the command below but this will use the port 990.
    FTP RMTSYS(INTNETADR) INTNETADR('*.*.*.*') PORT(SECURE) SECCNN(*SSL)
    The vendor is requesting that we use port 443 for secure ftp with SSL and even specifying this in the command as below still does not work. It seems to me there may be an issue at the receiving end. Port 443 is normally used for https so not sure whether specifying this port could cause issues. The resultant error is below.
    FTP RMTSYS(INTNETADR) INTNETADR('*.*.*.*') PORT(443) SECCNN(SSL)
    Connecting to remote host 62.39.53.181 using port 443.  
    No response from remote host; all connections closed.
    Any other comments would be welcomed.
    Many thanks,
    Steven

  • FTP from SAP - how to make file UTF-8 format?

    We are collecting data from SAP on a 4.7 system  and sending it as an psv file to an external server using the FTP function modules . We do not have XI.  After being told we were missing the BOM id I added this to the first line of the file.
    DATA: l_len TYPE i.
      DATA: c_cr(1).
      DATA: c_bom(3)    TYPE x.
      CLASS cl_abap_char_utilities DEFINITION LOAD.
      c_cr = cl_abap_char_utilities=>cr_lf.
      c_bom = cl_abap_char_utilities=>byte_order_mark_utf8.
      gs_ftp = c_bom.
      APPEND gs_ftp TO gt_ftp.
      CLEAR gs_ftp.
      LOOP AT gt_survey INTO gs_survey.
    *create file
        CONCATENATE: gs_survey-division
                     gs_survey-bus_unit
                     gs_survey-site
                     gs_survey-survey
                     gs_survey-co_name
                     gs_survey-kunnr
                     gs_survey-first_name  INTO gs_ftp-record SEPARATED BY '|'.
    * Work out length of string in GS_FTP_RECORD and populate last character
    * with a carriage return.  This will denote the end of the line.
        l_len = STRLEN( gs_ftp-record ).
        SUBTRACT 1 FROM l_len.
        gs_ftp-record+l_len(1) = c_cr.
        APPEND gs_ftp TO gt_ftp.
      ENDLOOP.
    We then  scramble the password and open the FTP and then call commandFTP_COMMAND  before calling FTP_R3_TO_SERVER:
    * Find out how many lines exist in GT_FTP
        DESCRIBE TABLE gt_ftp LINES sy-tfill.
    * Width of table x no. of lines in GT_FTP
        l_blob = 1024 * sy-tfill.
        CONCATENATE: 'CSVC1_SO' sy-datum '_' sy-uzeit '.psv' INTO g_file.
    * Set command to transmit in ASCII
        CALL FUNCTION 'FTP_COMMAND'
          EXPORTING
           handle                = v_handle
            command               = 'ascii'
          TABLES
            data                  = result
    * EXCEPTIONS
    *   TCPIP_ERROR           = 1
    *   COMMAND_ERROR         = 2
    *   DATA_ERROR            = 3
    *   OTHERS                = 4
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    * Send file onto FTP
        CALL FUNCTION 'FTP_R3_TO_SERVER'
          EXPORTING
            handle         = v_handle
            fname          = g_file
            blob_length    = l_blob
            character_mode = 'X'
          TABLES
            text           = gt_ftp
          EXCEPTIONS
            tcpip_error    = 1
            command_error  = 2
            data_error     = 3
            OTHERS         = 4.
    Any ideas?

    As far as I see, you are opening the FTP-Connection in ASCII-Mode.
    This means that the Data transfered is "converted" in a way as the FTP-Server think its correct.
    Try to open the FTP-Connection in Binary mode, hopefully this helps?
    Regards
    Rene

  • Quality of service in Receiver file/ftp adapter (SAP PI 7.1)?

    Hi,
        We are building an IDoc to File scenario in SAP PI 7.1, where a single incoming idoc will create three different output files. Also files must be created in target server in a specific order.
        Our first idea to ensure that files would be created following a specific order was that Message mapping (in Java) build target payload with all three files following expected sequence.
        In addition, receiver file/ftp adapter is setup with a dynamic variable to create each file with a different filename adding also timestamp.
        Testing the scenario, we see that three files are created in target server but when we sort them by creation date, it seems they don't follow always same sequence.
        Sometimes adapter creates File1, File2, File3; next time it created File2, File1, File3 and so on.
        Our problem is that files must be created always with a specific order and we cannot use BPM. Does anyone know if a receiver file/ftp adapter can be setup to create files following specific sequence (EOIO)?
        I know that sender file/ftp adapter can be setup with a quality of service, but I didn't find anything similar for Receiver file/ftp adapter.
        Suggestions will be welcome.
    Kind Regards,
    Aitor

    Hi,
         First, thanks all of you for your quick answers. They were helpful because we learnt a new configuration setting.
         We tried your suggestions but they didn't really fix our problem.
         Finally interface has been re-designed and we will not have to apply this logic, so no issue from our side.
         However, let me continue with this topic in case that somebody else will have the same issue, then it will be able to review this thread.
         When adapter created the files in the target directory (windows server), files had the expected timestamp in each filename. However, if we sorted windows directory contents by "Date Creation", files were sorted different that timestamp shows in the filename.
         For example, adapter created following files:
    File1_20090325-115117-169
    File2_20090325-115117-174
    File3_20090325-115117-180
         But when we sorted windows folder contents, files were sorted as follows:
    File2_20090325-115117-174
    File1_20090325-115117-169
    File3_20090325-115117-180
         It seems that timestamp was pre-assigned by the adapter, but when adapter created the files, it did it with a temporary name and finally assigns the filename. If a file size was bigger than other, maybe it takes more time and windows creation date is higher.
         If so, it means that adapter is not following same instructions as itu2019s indicated in "maintain order at runtime" checkbox.
         Do you know if there is any way where we can push also the order in the adapter as we did in interface determination?
    Regards,
    Aitor

  • How to fetch and save file in common server using FTP in SAP

    Dear All,
    My requirement is to fetch a image and save an image in a common server through SAP .
    I think there is some concept of doing the same using FTP.
    Please put some light on this issue.
    REgards,
    Amruta

    Hi,
    Below are the FM's use to FTP.
    FTP_CONNECT                    Connect to FTP server
    FTP_COMMAND                    Execute FTP Command
    FTP_DISCONNECT                 Disconnect from FTP server
    You can search SDN for more details on each of the FM's.
    Hope this helps
    Regards
    Shiva

  • Secure FTP in SAP XI

    Hello,
    I have seen that there is an FTP adapter in SAP XI. We currently have guidelines to use Secure FTP (SFTP) for FTP communication over an 'unsecure' network.
    We would like at least 128bit encryption, preferably 1024bit key.
    Can SAP XI also support this (and how)? Or is there a possibility with third party adapters?
    Best regards

    While the File/FTP adapter does not support secure FTP, there are a couple of options for protecting FTP communications.
    1. Develop a custom FTPS adapter.  There are some good commercially-available Java libraries that implement FTPS; I've found the Secure FTP Bean from Glub Tech (www.glub.com) to be reliable and compatible with many common FTPS servers.  It's called a bean, but it really is just a basic Java API library.  (It's shareware -- free to download for prototyping, $500 for internal use.)
    You do need to understand the various options in the FTPS specification to get this to work.  Reading IETF RFC 2228 will help.
    2. Use the FTP adapter, and encrypt/decrypt the file contents through a user exit in the adapter.  Something on the FTP server side will have to do the same.
    --Dan King
    Capgemini

  • FTP and SAP

    Hello Every one,
    Hope iam posting the question in correct forum if not correct me.
    I have  business requirement where 2 txt files ( in idoc format) are posted onto an FTP server then they will be converted to SAP IDOC format and posted in SAP.
    I need to build an interface between SAP and the third part (MFG PRO)so that the idocs posted by MFG (on to an FTP server) are transfered to SAP.
    Now i need  steps like how to define RFC, PORTS, PARTNER profiles in building that interface and check for successful built of interface.
    If any resource available online which would help me in that process..that will be very welcome.
    Thanks in Advance

    This is a little tricky question.
    First thing, you never mentioned whether you are using XI for integration or not.
    If you are not using XI, then talk to your ALE/EDI team.
    If it is inbound to SAP from  a file, you dont need an RFC destination.
    You need a Logical system (BD54 trxn)
    define port using WE21 trxn
    Maintain Partner Profile (WE20 trxn)
    To trigger a file to be uploaded, you need to schedule a script to create the IDocs on your SAP from the file port.
    If you are using XI let us know.
    regards
    Shravan

  • No delivery created & partial delivery postings[Non SAP(FTP) to SAP(idoc)]

    Dear All,
    When the sales posting(invoice,returns etc) is triggered later in SAP PI/XI it is successful.
    Once it reached ECC system the idoc's are successfull but the delivery is not created.
    Please find attached images for your reference.
    It is basically file to idoc scenario.
    Thanks and Regards,
    Rajesh

    Dear All,
    When the sales posting(invoice,returns etc) is triggered later in SAP PI/XI it is successful.
    Once it reached R3 system(ECC) the idoc's are successful but the delivery is not created.
    Please find above attached screenshots.
    It is basically file to idoc scenario.
    For successful delivery completions, an delivery no is created and saved.
    These are basically splitted in to 3 postings namely Fully delivery, Partial delivery and No delivery.
    This needs to be corrected at base level. Please advice on above issue.
    Thanks and Regards,
    Rajesh
    SAPSD Enquiry sapsd sapsd SD MODULE SD MODULE SAPXI XIPI SD SD IDOC_Err_Processing?? SAP PI XI EXPERT SAP PI SAP SD SAP MM sap sd InboundDelivery inbound idoc-deficit IDOC-XML to IDOC-Flat file conversion

  • FTP under SAP ECC6

    Hello Ladies and Gentlemen,
    Does anyone can explain why when I use the FTP Function module with ABAP program the command PUT write the file in Unix Format with LF (OAx) rather than
    CR LF(ODxOAx).
    We use this program to put a file created under HPUX to Windows System.
    Thanks for your help
    Regards
    Bernard Giannesini
    email [email protected]

    Hi,
    I don't know this FM but I had this problem once when I tried to transfer files from a linux server to a windows server through FTP protocol.
    I think you should look for a parameter for switching the transfer mode. When transfering files in BYTE mode, no conversion is applied so if your file comes from a unix system, you'll get LF chacracter at end of every line, and the file will look weird in a windows system.
    If you use ASCII mode, those special characters which are system dependent will be automatically translated.
    Hope this helps.
    Regards,
    Nicolas.

  • Transfering .csv file from SAP to NON-SAP using FTP connection

    Dear All,
    I am able to place the .CSV file successfully to other system using FTP connection, but when i open the file I could see the gaps between each record. I mean 1st line with the 1st record and 2nd line having a GAP and 3rd line with the 2nd record and so ..on as shown below
    1     1/1/2009     0     41000027
    2     1/1/2009     0     41000027
    3     1/1/2009     0     41000027
    I have declared an internal table as below
    TYPES: BEGIN OF ty_charlist,
             line(5000) type c,
           END OF ty_charlist.
    DATA:  w_charlist TYPE ty_charlist,
                 t_charlist TYPE TABLE OF ty_charlist.
    And concatenating each field seperated by ','
    CONCATENATE  res1 res2 res3 res4 res5 res6 res7 res8 res9 res10 res11 res12 res13 res14 res15 res16 res17 res18 res19  res20 res21 res22 res23 res24 res25 res26 res27 res28 res29 res30 res31 res32 res33 res34 res35 res36 res37 res38 res39
    INTO w_charlist-line SEPARATED BY ','.
    APPEND w_charlist TO t_charlist.
    Now T_CHARLIST contains 50 records which needs to be placed on other system. I can see 50 records but gap is coming
    Here res1, res2 and so on are declared as TYPE STRING..
    Please do help me this issue
    Thanks
    Prava

    Hello dprava ,
    Try to be assisted with these examples .
    1. [http://wiki.sdn.sap.com/wiki/display/ABAP/FTPfiletransferinBackground]
    2. [Reg: FTP Connection; - SAP examples programs
    Thank you,
    Boaz

  • Seeburger FTP Adapter And SAP PI 7.1

    Hi Everyone,
    Just a few questions about Seeburger FTP adapter please. Bit of background for clarity, we are doing an implementation using Seeburger FTP and sap PI 7.1 picking up EDIFACT (Orders) and returning (DESADV, ORDERSP, INVOICES). However we are not using any BIC, using another tool for EDIFACT -> EDIFACT-XML conversion (conversion agent) and in-house mapping development using graphical mapping.
    So couple of things which I haven't been able to figure out from the standard documentation for Seeburger FTP adapter:
    1) First is the functional ACK which we are meant to send back to the VAN is that a STANDARD FUNCTIONALITY with Seeburger FTP adapter?
    2) Because we are receiving a mix bag EDIFACT interchange on the way IN, I need to split messages accordingly and pass them on to the relevant channels and mappings. By using the standard module Splitter can I achieve that?
    3) Lastly some of the standard validations which are applicable to EDIFACT are they supported within the FTP adapter automatically? e.g. Counting number of messages in one interchange etc.
    Any help in this regard will be really great.
    regards

    Now a Good news.
    If you are using Seeburger version 2.1 (which you should be as you want it for PI 7.1), then there is an Internal Classifier and Split option for FTP adapter. You just need to tick checkbox "Use built-in splitting" and you are done. Then I believe there won't be any need for considering all these problems. The earlier version of Seeburger with PI 7.0 doesn't have such option and that could be the reason you haven't received any appropriate response yet.
    Still I will reply all your questions considering that "your case is of PI 7.0". -> remember PI 7.0
    >>even with just splitter we should be able to break it up?????? or am I wrong in thinking this?
    No. You even need BIC or an equivalent custom module for achieving this.
    >>I can't visualize where to handle the overall message count in one Interchange any suggestions?
    You need to write an adapter module for this. Not sure about the code but this module has to be added before the split happens.
    >> seeburger ftp adapter it does talk about a lot of reports which are available on sender/reciever actions. e.g. delivered, despatched etc. Are these reports not essentially ACKs?
    These reports are the ones used at the receiver side for getting the ACKs from the receiver. Your requirement is at present for sender scenario.
    Regards,
    Prateek

  • How to connect to a FTP server using a proxy in a DMZ with XI file adapter?

    Hello,
    Want to connect to an ftp server using a proxy in the DMZ. I don't see any standard options in the XI file adapter to use a standard. Is there a workaround?
    I already looked at https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=57137
    But it didn't help me.
    Regards,
    Erik van Lisdonk

    U can't use FTP over SSH i.e., SFTP. But u may use FTPS by enabling the SSL layer on J2EE of XI. See this
    SFTP vs. FTPS in SAP PI
    Regards,
    Prateek

Maybe you are looking for

  • IPod 80GB: My computer won't read the iPod is connected!

    I plug the iPod in and it lights up, but it doesn't say it's plugged in. If I have it plugging in when I restart the computer it says it's connected but my computer won't start. It's just a black screen with a flashing white underscore.

  • [5800] 51.0.006: why not for me?

    Since a few weeks I guess there is a new firmware version available for the Nokia 5800, but I wonder why my 5800 doesn't see this update. People on forums say you can change the device's product code to get the update and change it back when the upda

  • Getting ARD to see an iMac behind Airport Express

    I have a client that has bought an iMac and is connected to the internet using Airport Express (adsl modem is connected to express with ethernet cable, and modem is connected to the telephone line, problem is that when I am in my studio and try to co

  • VERRRRRRY slow starting up 4.0.3

    I let Version 4.0.3 (4531.9) Safari update my last updated version some time back and have been living with what looks like a version of i tune in layout (I really could live without and have alphabetical sequences of bookmarks in it place) however,

  • Shared memory between LV and a DLL

    Hello I am building a DLL in Visual .NET. It is called by LV in a .vi The DLL is counting some stuffs over a network, and I d'like to see the counter status in the vi, dynamically. This means that when the variable is changed is the DLL, the LabView