How to put file from a legacy system to SAP through FTP

Hi
I want to put one file which will be comming from legacy system to a folder of application server of the SAP system through xi.The protocol i want to use is FTP.
But im not sure about the configuration to be done for putting the file directly to SAP app server.
Anybody having idea what configuration i need to do in the SAP side to put the file into the app server directly through FTP.
Thanks
Debraj

Hi Debraj,
Try if these links help you solve your problem:
http://help.sap.com/saphelp_bw31/helpdata/en/4e/2ba038b81e897ce10000009b38f8cf/content.htm
http://www.sapfans.com/sapfans/saptips.htm#prog
http://help.sap.com/saphelp_nw04/helpdata/en/a4/db833d4c47ea4ea1a9b7af3c535ff2/content.htm
Cheers,
Chandra

Similar Messages

  • How to make interconnection between a legacy system and SAP system?

    Hi Group,
    I have a query on the interconnectivity between a legacy system( non-SAP ) and an SAP system.
    The legacy provides data in the form of Files only.
    my queries are as under:
    1)
    how can I make a connection to the Legacy from my SAP system?
    2)
    what are the different ways by which I can connect these 2 different systems?
    3)
    I hope there might be a chance of connecting the systems by way of using webservices, in this case what are the things I need to follow inorder to make the connection and get the data from legacy?
    please provide me with necessary info on these queries to proceed further.
    thanks in advance.
    Regards,
    Vishnu.

    Hi,
    U can use the GUI function m modules to fetch the data from legacy systems.
    Also With the help of Remote FMs u can get connected to the SAP backgrounds from NON SAP background like Portal.XI is an interfacing tool used to connect 2 SAP or SAP to non SAP medium.
    Regards,
    Ajit.

  • Upload data from legacy system to SAP through ALE IDOC

    Hello All,
    I have a requirement where i need to upload the data from legacy system to SAP. So i am using ALE IDOC.
    In my requirement i need to extend the Standard IDOC. I have extended the IDOC and even found the exit for the updation of the extended fields to SAP. My data would be be placed in the application server.
    Can anybody tell me how to retrieve the data and update in the tables for the extended fields.
    Could you please provide a sample program for retrieving data for IDOC.
    Thanks

    Hi,
    You can find the sample code in the following link.
    Re: calling idoc_input_creditor
    Regards
    Sajid

  • Transfer data from legacy system to sap through rfc

    There is an Excel-sheet where a user will enter some records, this excel-sheet should be automatically transferred to SAP. How it can be done? How can I see that records and how this link would be stablished?Give me the detail example! please help...!

    hi,
    You can write a program which will be run at scheduled intervals. You can crate a job for this.
    This program will read the file either by OPEN DATASET, READ DATASET
    for GUI_UPLOAD ... depending on where the file is located.
    Then you can do the processing of each record using a BDC to insert recordsinto SAP. This will be done by doing a transaction recording in SHDB.
    Useful links:
    BDC
    www.sap-img.com/abap/learning-bdc-programming.htm
    www.itquestionbank.com/bdc-recording.html
    Regards,
    Vivek

  • How to extract non-sap data (A/R Invoices from Legacy system) into SAP ICR

    Hi
    We are trying to bring A/R invoices from a legacy system into SAP ICR special ledger so that ICR tool can be used these items for intercompany reconcilliation. Could you please let's know the way to load these legacy AR invoice items into ICR data base using any function moduels.
    Regards,
    Eswar.

    Hello Eswar,
    In what form do you have these "external" open items? If they are contained in a file you should simply import the file in ICR during data selection using the File Upload functionality. There is no need to store them in a special purpose ledger first. Actually you would have to create a BADI implementation to extract the data from that special purpose ledger during data selection. Please consider using File Upload standard functionality.
    If for some reason this cannot be used you could implement a logic calling RFC enabled function module FB_ICRC_ADD_DATA_RFC which will take the open items you are supplying in your logic and push them into the ICR database. This strategy could be used to include these external open items without them being processed during data selection.
    Best regards,
    Ralph

  • How to transfer data from legacy system  to SAP

    Hi Friends,
    I would like to know the process and the steps followed to transfer data from my legacy system to SAP.
    Suppose if i have all the data in the form of Excel sheet or doc type. How can i transfer this data into SAP.
    Please explain the steps followed.
    Appreciate your help
    Anil

    Hi ,
    Conversion of legacy data into SAP can be uploaded using a standard SAP Tool called LSMW ( TCode:LSMW).
    the below link gives a brief explanation of the LSMW tool
    http://tutorialsap.com/abap/sap-lsmw-tutorial-with-steps-to-create.html
    There are various methods to upload data within LSMW. If the number of records are very high like Article Master or  Conditions for Retail the IDOC method must be used.
    Standard IDocs
    1. Article Master - ARTMAS
    2. Conditions - COND_A
    3. Source list - SRCLST
    4. Customer Master or WRF3/WRF6 tables - DEBMAS
    5. Vendor master- CREMAS
    Etc. Use transaction code WE60 to see the structure of each of the idocs. New enhancements can be done for the idocs if the required field is not available.
    Regards
    Prabhu

  • Interface from Legacy system to Sap

    Hi all,
    I worked in the functional design and implementation of an interface that works to update sales order from a legacy system to Sap
    Now after some test, i receive the ok to move all the program in production enviroment
    I'd like to know and to be sure of all the step to be checked and needed. The mail one for sure are related  the data. So I checked all the custom table I created for this purpose.
    Please advise me If I'm missing some important step
    Many thanks for your help

    I'd like to know and to be sure of all the step to be checked and needed. The mail one for sure are related the data. So I checked all the custom table I created for this purpose.
    'The mail one for sure': What mail one?
    'Custom tables': Why did you create custom tables? Don't you just use a BAPI to update / create Sales Order?
    What do you mean by interface? An RFC (remote enabled function module)?
    In general: Everything you have developed for this, should be in a transport request. I you want to check this, go to the package you created for this development in transaction SE80. Start from the (RFC) interface and check everything this function module needs to function like data elements, domains, structures etc.
    You do need to create new rfc destinations in SM59 (in case you are updating sales order via RFC interface.
    Haven't you moved it from development to quality before?

  • Reading of File from legacy system into SAP Application Server using SAP XI

    Hi All,
      I have a file in <b>Legacy System with Exchange rates information data</b> i have to read that file using SAP XI process and put that file in SAP Application Server in SAP Specific Format and latter i have to use program RFTBFF00 to upload the file in the Application Server into SAP Tables.
      Can anybody tell me how can i do this with some example of same scenario.
      It would be better if anybody provides code example as i am new to SAP XI.
    Thanks in advance.
    Warm Regards,
    Rayeez.

    Hi Shaik,
    You need the access to the file system of ur legacy application and then you can follow this link for the required ifnormation
    File & Header
    Regards
    Vishnu

  • How to UNLOCK  queues when data is migrated from legacy system to SAP syste

    Hi  All,
    I need some help regarding queues (SMQ2). XI is been used to migrate data from legacy system to SAP system. Sometimes the queue is getting locked. Once the queue is unlocked then the message is processed correctly. So, the incoming queues must be "unlocked" routinely so that they can process through the system. There is a standard report RSQIWKEX available that can be scheduled in SAP system to automatically unlock the queues. Before using the standard report RSDIWKEX, we made sure that we have added parameter MONITOR QRFC_RESTART_ALLOWED set to "1" in Integration Engine specific configuration (TCODE SXMB_ADM).We are unable to analyze the reason for locking of queues and how to avoid it. If the locking of the queues can not be avoided, is there any way to unlock the queues? We tried executing this report but were not successful in unlocking the queues. Please guide us in solving this issue. It would be really helpful if you can give us a direction in solving this problem.
    Thanks in Advance,
    Shwetha.

    Hi,
    Just check if the Queues are registered in Transaction SMQR.
    If its not, then register the Queue by pressing 'Register' Button
    Sharif.

  • HT1379 Summary: how to transfer files from SD card when the system (Mac OS X v 10.7.5) will NOT recognize SD cards.

    How to transfer files from SD card when the system (Mac OS X v 10.7.5) will NOT recognize SD cards?
    Insert the SD card.
    System opens iPhoto with SD contents.
    Want to transfer files from SD card to system drive.  iPhoto closes
    SD card directory removed from the Finder window and is not available again. 
    I don't want to have to reboot the system every time I want to perform this option.
    What's wrong here. 
    The support columns show this isn't an isolated incident with all sorts of solutions possible.
    This is a simple task - there should be a simple method for the system to recognize SD cards.
    What's the answer?
    I've reviewed a recommendation to reset the SMC.
    https://discussions.apple.com/message/18500187#18500187
    and
    http://support.apple.com/kb/HT3964
    and another thread that says, basically, you must buy extra hardware to perform this simple task,
    https://discussions.apple.com/message/16911326#16911326
    another one that has the same problem with OS Mountian Lion,
    https://discussions.apple.com/message/21919740#21919740
    another one with the problem that says SD cards can't be read by Apple unless the card is formatted specifically for Apple, ie. that Apple is not compatible with other cards, but the problem maybe something else that requires Apple service - (bad SD card reader?).
    https://discussions.apple.com/message/18711818#18711818
    there are probably more discussions, but I dont' want to spend my entire sunny in Seattle day working this.
    thanks for the help!

    Bucky Fullmeister wrote:
    When I plug in an SD card, the finder window shows it under the DEVICES section.  At this point, I can drag the contents to the hard drive.  However, when I screw up and click the character on the right side of the name - it apparently closes the SD card and I can't find any command to reload or re-recognize the card.  I have to remove and reinsert the card and then sometimes it recognizes the card.  Other times I reboot and it will recognize it.
    What does that character on the right side of the SD card name do?  Is it an eject function - with no way to subsequently reread the drive?
    It ejects or unmounts the card. When the SD card mounts click on it once to highlight it and then drag the files shown within it to the new folder.
    Pete

  • How to migrate attachments from legacy system to SAP.

    Hello experts,
                            We have a requirement to migrate attachments from a legacy application to SAP .Attachments are in the form of a PDF, xls, powerpoints. These are to be attached to accounts, opportunities etc.
       Please provide your inputs on how this can be achieved.
    Thanks in advance.
    Chandana.

    RH,
    Do a search in this forum for the class CL_CRM_DOCUMENTS.  That should give you some more ideas on document upload into CRM.
    Take care,
    Stephen

  • How to tranfer file from between two client?

    Hi, all:
    I'd like to tranfer file from client A to client B. Basically, I will treat one of them is client and one of them is server, then create a server socket/socket connection, then they can conmmunicate. I know how to talk between them. However, I don't know how to trasfer file from client to server, or from server to client in the same class. I mean not two class: Server socket and client socket.
    Consider the following case:
    There is a function, just like MSN file transfer: transfer file from localhost to "10.4.155.8". How can I transfer file from localhost to "10.4.155.8"?
    Help please.
    --Paul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi, man:
    Thanks.
    I agree with you at most.
    I am doing my practise project: the other MSN Messenger and more, I will include file encryption and file decryption, etc.
    My point is one connection will make center server too heavy. Then I have to adapt your first means:
    promote either Client A or Client B become server, leave the other guy still being client, because I know their IP address. This will free the server a lot.
    BTW, I finish my code pretty much, say 70%. However, I felt tired for coding. I have my full time job in software development at daytime. I am looking one or two guy to share this project. My point is to improve the performance of the this Messenger. I feel my code maybe work fine with hundred of con-current user, maybe not, or maybe more, not sure. My email: [email protected]. (I put my name means I am searious).
    Could anyone feel he/she is good at Messenger, please email me, then we can share my code with you.
    Code sample for file transfer:
    //For Client side
    import java.io.*;
    import java.net.*;
    class Client
    public static void main(String args[]) throws Exception
    String sentence;
    String host = "localhost";
    int SERVER_LISTEN_PORT = 5432;
    BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));
    Socket clientSocket = null;
    DataOutputStream outToServer = null;
    BufferedInputStream inFromServer = null;
    try
    clientSocket = new Socket(host, SERVER_LISTEN_PORT);
    outToServer = new DataOutputStream(clientSocket.getOutputStream());
    inFromServer = new BufferedInputStream(clientSocket.getInputStream());
    }catch(UnknownHostException e)
    System.err.println("Don't know about host: "+host);
    }catch(IOException e)
    System.err.println("Couldn't get I/O for the connection to: "+host);
    sentence = inFromUser.readLine();
    outToServer.writeBytes(sentence + '\n');
    FileOutputStream fos = new FileOutputStream("c://test.doc");
    int totalDataRead;
    int totalSizeWritten = 0;
    int DATA_SIZE = 20480;
    byte[] inData = new byte[DATA_SIZE];
    System.out.println("Begin");
    while ((totalDataRead = inFromServer.read(inData, 0, inData.length)) >= 0)
    fos.write(inData, 0, totalDataRead);
    totalSizeWritten = totalSizeWritten + totalDataRead;
    System.out.println(totalSizeWritten);
    System.out.println("Done");
    fos.close();
    clientSocket.close();
    //For Client side
    import java.io.*;
    import java.net.*;
    class Server
    public static void main(String args[]) throws Exception
    int SERVER_LISTEN_PORT = 5432;
    String clientSentence;
    ServerSocket welcomeSocket = null;
    try
    welcomeSocket = new ServerSocket(SERVER_LISTEN_PORT);
    }catch(IOException ioe)
    System.out.println("Could not listen on port: " + SERVER_LISTEN_PORT);
    System.exit(1);
    while(true)
    Socket connectionSocket = null;
    try
    connectionSocket = welcomeSocket.accept();
    }catch(IOException ioe)
    System.err.println("Accept failed.");
    System.exit(1);
    BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
    BufferedOutputStream outToClient = new BufferedOutputStream(connectionSocket.getOutputStream());
    System.out.println(inFromClient.readLine());
    int data;
    int totalSizeTransferred = 0;
    int totalSizeRead;
    int PACKET_SIZE = 20480;
    byte[] packet = new byte[PACKET_SIZE];
    System.out.println("reading file...");
    FileInputStream fis = new FileInputStream("c://JVM_Profiling_Report.doc");
    while ((totalSizeRead = fis.read(packet, 0, packet.length)) >= 0)
    outToClient.write(packet, 0, totalSizeRead);
    totalSizeTransferred = totalSizeTransferred + totalSizeRead;
    System.out.println(totalSizeTransferred);
    System.out.println("done reading file...");
    outToClient.close();
    fis.close();
    My question, any good idea for creating progress bar?
    Thanks.

  • Migrating AUC from legacy system into SAP

    Hi,
    I'm trying to migrate AUC into SAP from a legacy system and the fiscal year start from 2008. How do I post the acquisition value in AS91 if the AUC is acquired in 2007? using transaction type 900? The asset value date is posted in 01.01.2008 is I post the value through transaction tab. Is that correct? Pls advice.
    Best Rgds,
    Li Ling

    Hi Shaik,
    You need the access to the file system of ur legacy application and then you can follow this link for the required ifnormation
    File & Header
    Regards
    Vishnu

  • How to pickup files from multiple directories

    Hi all,
    How to pickup files from multiple directories and send it to two different folders at target
    Ex:
    files\xi\us\US.txt
    files\xi\uk\UK.txt
    i need to pick up the above mentioned two files and send it to the following paths
    app1\files\us\download\US.txt
    app1\files\uk\download\UK.txt
    US.txt has to goto US folder and UK.txt has to goto UK folder only
    Regards

    Hi,
    To pick form multiple folders, select Advanced Mode for file selection in file adapter..
    there u can specify directory name/file names
    Refer
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    To put those files at multiple folders write a command line arguments for this.. go through this weblog...
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    XI/PI: Command line sample functions
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Hope this will help you....
    Regds,
    Pinangshuk.

  • How to download file from application server

    Hi Experts,
                  I developed report and execute in background mode. for this i used Open dataset transfer and close dataset . i got the requried output . But in this case user want downloaded file on presentation server so can anyone tell me How to download file from application server?
    i know it is possible through Tcode CG3Y. but i want code in program.

    This code will download a file to your Client package by package, so it will also work for huge files.
    *& Report  ZBI_DOWNLOAD_APPSERVER_FILE
    REPORT  zbi_download_appserver_file.
    PARAMETERS: lv_as_fn TYPE sapb-sappfad
    DEFAULT '/usr/sap/WBP/DVEBMGS00/work/ZBSPL_R01.CSV'.
    PARAMETERS: lv_cl_fn TYPE string
    DEFAULT 'C:\Users\atsvioli\Desktop\Budget Backups\ZBSPL_R01.CSV'.
    START-OF-SELECTION.
      CONSTANTS blocksize TYPE i VALUE 524287.
      CONSTANTS packagesize TYPE i VALUE 8.
      TYPES ty_datablock(blocksize) TYPE x.
      DATA lv_fil TYPE epsf-epsfilnam.
      DATA lv_dir TYPE epsf-epsdirnam.
      DATA ls_data TYPE ty_datablock.
      DATA lt_data TYPE STANDARD TABLE OF ty_datablock.
      DATA lv_block_len TYPE i.
      DATA lv_package_len TYPE i.
      DATA lv_subrc TYPE sy-subrc.
      DATA lv_msgv1 LIKE sy-msgv1.
      DATA lv_processed_so_far TYPE p.
      DATA lv_append TYPE c.
      DATA lv_status TYPE string.
      DATA lv_filesize TYPE p.
      DATA lv_percent TYPE i.
      "Determine size
      SPLIT lv_as_fn AT '/' INTO lv_dir lv_fil.
      CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
        EXPORTING
          file_name      = lv_fil
          dir_name       = lv_dir
        IMPORTING
          file_size_long = lv_filesize.
      "Open the file on application server
      OPEN DATASET lv_as_fn FOR INPUT IN BINARY MODE MESSAGE lv_msgv1.
      IF sy-subrc <> 0.
        MESSAGE e048(cms) WITH lv_as_fn lv_msgv1 RAISING file_read_error.
        EXIT.
      ENDIF.
      lv_processed_so_far = 0.
      DO.
        REFRESH lt_data.
        lv_package_len = 0.
        DO packagesize TIMES.
          CLEAR ls_data.
          CLEAR lv_block_len.
          READ DATASET lv_as_fn INTO ls_data MAXIMUM LENGTH blocksize LENGTH lv_block_len.
          lv_subrc = sy-subrc.
          IF lv_block_len > 0.
            lv_package_len = lv_package_len + lv_block_len.
            APPEND ls_data TO lt_data.
          ENDIF.
          "End of file
          IF lv_subrc <> 0.
            EXIT.
          ENDIF.
        ENDDO.
        IF lv_package_len > 0.
          "Put file to client
          IF lv_processed_so_far = 0.
            lv_append = ' '.
          ELSE.
            lv_append = 'X'.
          ENDIF.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize         = lv_package_len
              filename             = lv_cl_fn
              filetype             = 'BIN'
              append               = lv_append
              show_transfer_status = abap_false
            TABLES
              data_tab             = lt_data.
          lv_processed_so_far = lv_processed_so_far + lv_package_len.
          "Status display
          lv_percent = lv_processed_so_far * 100 / lv_filesize.
          lv_status = |{ lv_percent }% - { lv_processed_so_far } bytes downloaded of { lv_filesize }|.
          CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
            EXPORTING          "percentage = lv_percent - will make it fash
              text = lv_status.
        ENDIF.
        "End of file
        IF lv_subrc <> 0.
          EXIT.
        ENDIF.
      ENDDO.
      "Close the file on application server
      CLOSE DATASET lv_as_fn.

Maybe you are looking for

  • Follow-up question: Moving Root volume to new disk

    When using Disk Utility to do the Restore (complete copy) from old to new, do the Volume Names need to be identical ? e.g. will restoring from volume "bk250" to volume "bk400" screw up the aliases already on bk250 etc? Thanks Message was edited by: W

  • Why do I receive error messages when installing Adobe air installation packages?

    I have Adobe Air Applications installed on my Dell XPS laptop but when i try and add new applications I get an error messaage that the installation file is corrupt. I am not convinced that this is the case, it is happening too often. I think that Ado

  • DVDs won't play on computer

    The latest batch of DVDs I've burned will NOT play on my G5. I just get a black window in DVD Player. Oddly, they play fine on my set top box. I can't think of anything I've changed in my methods. Older burned videos play fine, but when I re-burn old

  • How to delete photos from my Photo Stream?

    I have read the article at http://support.apple.com/kb/HT5125?viewlocale=en_US&locale=en_US  I have followed the steps to remove photos from iPhoto on my MacBook Pro.  That worked.  The same photos did not get deleted from my iPhone and for my iPad.

  • CS5 trouble

    I have been using CS5 since I bought it without any problems until last week. Since then I can't open any of the software, Photoshop, Bridge, Acrobat, AI, ID. When I try to open I get error messages. Why?. I need to solve this problem as soon as poss