Placing the File in ISeries AS400 FTP Server

Hi,
I am working in IDOC to file Scenario and trying to append the Records in the flat file in AS400 FTP Server Directory.
I am unable to place to file in the FTP Server and getting the error message as below.
Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server 'xx.xx.xxx.xxx:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501  File identifier not valid in MKD subcommand.'. For details, contact your FTP server vendor
Please provide your valuable suggestion on this.

Now I am getting the error message as below
Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server xx.xx.xxx.xx:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 426 Unable to open or create target file SPD3INTMCD.txt in library FTPLIB. Data transfer ended.'. For details, contact your FTP server vendor..
Please suggest on this.

Similar Messages

  • XML File Creation Problem in FTP Server

    Hi.. Experts
    My Internal Table is as follows
    Types: Begin of ty_xmlfile,
             xmlline(60000)        type C,
           End of ty_xmlfile.
    Data: it_xmlfile type standard table of ty_xmlfile,
            wa_xmlfile type ty_xmlfile.
    When I download the file to my desktop using  GUI_DOWNLOAD. It works fine
    CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                BIN_FILESIZE = lv_size
                FILENAME     = lv_file_name
                FILETYPE     = 'ASC'
              TABLES
                DATA_TAB     = it_xmlfile
              EXCEPTIONS
                OTHERS       = 10.
            IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    In the debug mode when I download the internal table(IT_XMLFILE) into an excel file it doesn't open and it says tag is missinig(/basic_material_text) and also when I create the file in Application Server and transfer it to FTP Server it doesn't open there..and also in debug mode I find the length until  DIMENSION AN.. for that row when I double click on that line in debug mode it shows all the text until </baisc_material_Text>
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0&quot; LG.(F)                      (A)ASTM A276 CONDITION &quot;A&quot; 317LTYPICAL MILL CERTS REQ&apos;D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AN*
    The above statement is incomplete when the file is open in FTP Server.
    But when the file is created on to my desktop. It displays all the text....
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0" LG.(F) (A)ASTM A276 CONDITION "A" 317LTYPICAL MILL CERTS REQ'D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AND WILL BE USED AS RECEIVED(T) = TO FINISH TO THIS DIMENSION FOR FORGING AND BILLET MATERIAL ONLYVENDOR TO SUPPLY THE FOLLOWING ENGINEERING/QUALITY ASSURANCE DATATYPICAL MILL TEST CERTIFICATES/CERTIFICATES MUST ACCOMPANY THE MATERIAL.* COPIES REQUIRED:(2)ALL CERTIFICATES MUST HAVE LIGHTNIN PART NO.CLEARLY MARKED ON THEM.* COPIES REQUIRED:(2)</basic_material_text> *
    I could not understand why it takes only until DIMENSION AN
    Any suggestions would be very helpful...
    Thanks,
    Chaitanya
    -Points will be awarded for helpful answers.

    Hi...
    I think each XML Line will be of length 256. So I have to split the String into 256 of each Line.
    XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
    Hope  it works out....I will try for that and Close the Post...
    Thanks,
    chaitanya K

  • Automate a BI report to flat file on to a FTP server.

    Hello all,
    I have an same issue like the following thread. After extract CSV file successfully to the directory, but unable to find the file. Any thought?
    Automate a BI report to flat file on to a FTP server.
    Regards!

    Need to analyze the business purpose ,however heres my take on it..
    You can utilize 3 options to export query result on to the SAP directories as below and map that path to your FTP server.
    1. Transaction RSCRM_BAPI (still valid in nw2004s)
    2. Transaction RSANWB (analytical Process designer)
    3. Information Broadcasting - KM folder has to be mapped as a file system location.
    Hope it Helps
    Chetan
    @CP..

  • Change the permission while placing the file

    Hi Experts,
    I have a production issue :
    I am placing the .txt file into a SFTP server location from a SFTP Location[NO Transformation in the file]. (Sender and receiver channels are SFTP)
    I am using user- user1(for example) which have the read write access to the particular folder, hence when it places the file it places with 664 permission .(This permission gives only user1 as read/write access , but other user have read only access).
    The requirement :
    The user2 want to deletes the file from the particular folder location , they want to know by any means can PI change the permission while placing the file into that location so that user2 can also have read/write access.
    Can you provide the opinion whether it can be done using SFTP receiver channel or any other option to change the permission of the file.

    As far as i know the permissions are related to the folder and the User not for files
    While creating the access, a particular user authorizations related particular folder, not related to files.
    So this should be done some thing like by giving the read/write access to user2 as well
    Regards

  • Placing the file in UTF-8 format in Target Directory

    Hi Experts,
    Can any one please tell me how to place a file in Target Directory by PI in UTF-8 format.
    It is a file to file PassThrough (no IR part) scenario and in receiver File Adapter I have used File Encoding as UTF-8
    but still PI is not placing the file in UTF-8 format in the Target Directory.
    Are there any modules by which the files are converted to UTF-8 format.
    Can anyone please help me out.
    Thanks and Regards,
    Prajwal

    Hi,
    Please let me know if I need to change the TransferMode,File Type and FileEncoding in both sender and receiver channel.
    I tried the below settings but still the file is not being placed in UTF-8.
    Sender CHannel:    TransferMode         Text
                                   FileType                  Text
                                   FileEncoding            UTF-8
    Receiver Channel    TransferMode         Binary
                                     FileType                  Text
                                     FileEncoding           tried with UTF-8 once and tried with blank
    Can any one throw some light here.
    Thanks and Regards,
    Prajwal

  • Firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    you have not understood my point
    how does this code will run on servlet when I want to upload a file from client's
    machine to server machine
    what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
    All the computers are connected in LAN
    So how to upload a file from client's machine to server's machine
    Plz give me a solution

  • Automation prog for placing the file( Excel) From production server to unix

    Hi Experts,
    How to write a program to automate a file from production to unix server?
    Right now user is downloading the file from application server and sending the file thru mail. 
    Is it possible in ABAP or Do we need to write in Unix?
    Thanks In Advance.
    Regards,
    sridhar

    Please see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Shell+AND+Script+AND+FTP&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • File transfer from a FTP server to another External FTP server

    Hi,
    I have one FTP server , I need to transfer a file from this FTP server to aother external FTP server. Could any one please help me how to write a batch file on FTP server so that my file is transfered to another FTP server by executing the Batch file. I don't want to use SAP server for this.
    best regards
    bobby

    CREATE CONTROLFILE
    Caution:
    Oracle recommends that you perform a full backup of all files in the database before using this statement. For more information, see Oracle9i User-Managed Backup and Recovery Guide.
    Purpose
    Use the CREATE CONTROLFILE statement to re-create a control file in one of the following cases:
    All copies of your existing control files have been lost through media failure.
    You want to change the name of the database.
    You want to change the maximum number of redo log file groups, redo log file members, archived redo log files, datafiles, or instances that can concurrently have the database mounted and open.
    Note:
    If it is necessary to use the CREATE CONTROLFILE statement, do not include in the DATAFILE clause any datafiles in temporary or read-only tablespaces. You can add these types of files to the database later.
    An alternative to the CREATE CONTROLFILE statement is ALTER DATABASE BACKUP CONTROLFILE TO TRACE, which generates a SQL script in the trace file to re-create the controlfile. If your database contains any read-only or temporary tablespaces, that SQL script will also contain all the necessary SQL statements to add those files back into the database.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_54a.htm#SQLRF01203

  • Transfer file to an external FTP SERVER

    HI Gentelemen!!,
    I'm trying to open an external FTP connection, sending a file from the  MiniSAP.
    Which is the appropiate RFC connection that I have to use??
    Anybody know how to set RFC connection to access an external FTP server.
    This are the MF that I use:
    CALL FUNCTION 'SCRAMBLE_STRING'
    To encrypt password
    CALL FUNCTION 'FTP_CONNECT'
    here i have an import value for RFC DESTINATION
    return handle - I use it to close the connection
    CALL FUNCTION 'FTP_COPY'
    CALL FUNCTION 'FTP_DISCONNECT'
    Use HANDLE numbre to close the connection
    Thanks for your help.
    POLAK.-

    I am not sure minisap has sapftp and sapftpa executable.
    Anyway the two RFC destination used to do FTP are SAPFTPA and SAPFTP. This are 2 TCP/IP RFC destination (Type T) that launch either the program sapftp or sapftpa on the application server.
    If these rfc destination are not setup in transaction SM59 you can try to define them but it might not work on minisap.
    Regards

  • Export Table to flat file and upload to FTP server for external vendor

    I have done some extensive searches on the forums and I think I have an idea but really need some help. Basically have a table that needs to be exported to a flat file and uploaded to a FTP server so that our vendor can get the data Monday-Saturday and automated by sysdate. This data is used to produce daily letters that go out to customers.
    After doing some searching I came across the UTL_FILE package and reading more into this right now but I am not sure if it is what I should be using to create the file.
    I am using TOAD right now and can see how to do it manually however really need the file to create itself and send automatically at 6 am Monday - Saturday with the date at the end of the file name making it a unique file for each day.
    Thanks in advance for all of your help.

    As Justin and others have mentioned I wrote [XUTL_FTP|http://www.chrispoole.co.uk/apps/xutlftp.htm] so you wont find it in the Oracle documentation. It's pure PL/SQL and uses UTL_TCP and implements an integrated PL/SQL FTP client / API. One of it's many overloaded procedures FTP's the contents of a refcursor straight to a FTP server of your choice, meaning no intervening file is required. Since it is pure PL/SQL, it is trivial to schedule using DBMS_JOB/DBMS_SCHEDULER.
    Any questions just ask.
    HTH Chris

  • The system cannot find the file specified error in ftp upload

    Hi,
    i am using filezilla ftp server and apache common ftp client and while uploading a file i am getting below error:
    code to call ftp client
    String local_file ="D:\\home2.JPEG";
    String remote_file ="\\abc";
    ApacheFTPClient apacheFTP = new ApacheFTPClient();
    String[] abc ={"-s", "127.0.0.1", "Manender", "Manender", remote_file, local_file};
    apacheFTP.main(abc);
    error log:
    220-FileZilla Server version 0.9.31 beta
    220-written by Tim Kosse ([email protected])
    220 Please visit http://sourceforge.net/projects/filezilla/
    Connected to 127.0.0.1.
    USER Manender
    331 Password required for manender
    PASS Manender
    230 Logged on
    SYST
    215 UNIX emulated by FileZilla
    Remote system is UNIX emulated by FileZilla
    java.io.FileNotFoundException: D:\home2.JPEG (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at com.po.ApacheFTPClient.main(ApacheFTPClient.java:152)
         at com.po.sample.main(sample.java:120)
    i have file in my d directory with same name.
    please help me in this.
    thanks in advace..

    i have file in my d directory with same name.Doesn't look like that? Are you sure that it isn't named e.g. home2.jpg?

  • Issue while fetching the file through *.extension by FTP sender file adapte

    Hello Experts,
    I am facing a issue while fetching the data through sender File adapter with  ' *.file extension' .I am illustarting the scenario as below .
    It is a simple scenarion of File to File inboumd scenarion.Here file is getting picked up from a third party system
    through FTP sender chanel and stored in a temp folder of PI through NFS rceiver file adapter .
        The problem is however I am getting, while picking the file with file name as "*.exo"(where exo is the file extension).
    But while fetching the file with particular name like"abcd_10032011*.exo"(file naming has been done by combination of abcd(always same)_currentdate(change according to current date)),file picked successfully .
    So here ,in the prior case file not getting picked up,but in later case it dose .
    Can anyone please let me know what might be the issue?

    Hi Sunit,
    Connect from your PI System to 3rd Party System (where are placed the Source Files)
    FTP <PartySystemHostName>
    eg. FTP 10.2.3.456 (then insert Username & Password to Login)
    Go to source directory
    cd \<SourceDirectory>
    eg. cd \donaldduck\directory\
    Execute a File List command
    ls -la *.<extension>
    eg. ls -la *.exo
    In this way you should be able to view all files with this extension (*.exo), the same action that Sap XI perform to pickup the file.
    Then, try to copy that file to your Local PI System (to check if there're some permissions issue):
    mget <filename>.exo
    eg. mpget File1_01012011.exo

  • File not coming at FTP server

    Hi,
    I am doing Idoc to File scenario...In receiver communication channel FTP server is to be used...Data is processing successfully in sxmb_moni...but its not visible at FTP server....have checked at all the places...
    Please help.

    this can be for the following reasons...
    1. your File adapter might throw some error ( check RWB-->Adapter monitoring)
    2. Data might be stuck in Queue ( TO-BE-Delivered state) cehck in adapter engine or cache
    3. Since you are sending data to the remote server, it's so happens sometimes if the idle time is more from one file is sent and for another file it the gap is more then you might have to reactivate the file adapter and run the interface.
    4. Check is there any batch file running on the FTP by legacy which are moving the files form that location...
    5. Make Sure you are sending the data ( No empty files Careated).

  • Difficulty using the MacBook as an (S)FTP server...

    I'm trying to use my MacBook as an FTP server to get some files I need from my brother. He is using an iMac but we're having a lot of trouble connecting.
    We have read several tutorials but we simply can't seem to get it working, and I know it's not that difficult.
    My personal file sharing and FTP Acess are both turned on and so are his. After I receive the IP for the server when I check it on, is that it? He has tried using the connet to server option on finder as well as third party FTP clients. What does he type in before the ip address in the box? ftp:\\ or sftp:\\ or does he leave it blank or what?
    Also, how does username and password work? I don't know where to set that, much less what he should use to login to the server. Every time we've tried it simply gives us a "failed to connect" message.
    I haven't had this MacBook for very long - I LOVE it but I've never used this part of it so any help would really be appreciated.

    Hi Fendrix
    Welcome to the Apple Discussions!
    First, are you and your brother in the same location (ie, on the same network), or in different locations? That will affect whether you can use your local IP addresses to connect, or whether you need to use public IP addresses. In addition, if either of you is behind a router, you would need to forward the Apple File Sharing port (548) from the router to the Mac you're trying to share.
    You shouldn't need both File Sharing and FTP activated - they're different protocols. If you're both using Macs, File Sharing (AFP) should be enough.
    If you were on the same network, you would have IP addresses such as 192.168.1.2, 192.168.1.3. In that case, one of you would go to the Finder, click cmd-K to open the "Connect to Server" window, and just type in that address. You'd then get a login prompt, where you need to enter login details for an account on the Mac you're connecting to (ie, if you're connecting to him, you use his account login, not yours).
    If you're on different networks, you need his public IP address, which you can get from a service such as http://whatsmyip.org/ . If he's behind a router, configure it to forward port 548 to his computer. You then use the same cmd-K to connect to his server, but using the public IP address. The router will then forward the connection request to his Mac, and you'll get the login box as before.
    Hope that helps
    Matt

  • Apache Commons Net - Retrieve File - Extension, Compare , Move - FTP Server

    Dear All,
    I am using Apache Commons net FTP Library for FTP Operations. I had a few doubts
    1) I like to retrieve ftp files only with some extensions like *.txt or *.jpg etc. How can we retrieve files with specifying file extension?
    2) I need to compare the FTP Files with the local files before downloading from the FTP Server?
    3) I need to move files from the ftp server to local directory. Is there is anyway to move the files rather than first retrieve files from the FTP Server and then deleting the file in the FTP Server using FTP delete()
    Thanks,
    J.Kathiresan

    1) I like to retrieve ftp files only with some
    extensions like *.txt or *.jpg etc. How can we
    retrieve files with specifying file extension?
    List the files and then filter the list to those that you want to process.
    2) I need to compare the FTP Files with the local
    files before downloading from the FTP Server?Think about this one! To compare two files you nead to read both. If you do this on the client then you will have to copy the file from the server first!
    >
    3) I need to move files from the ftp server to local
    directory. Is there is anyway to move the files
    rather than first retrieve files from the FTP Server
    and then deleting the file in the FTP Server using
    FTP delete()What is wrong with copy then delete?

Maybe you are looking for

  • Email attachment will not open

    I tap the space beside the attachment (within the email) and the download bar reaches the end.  The next screen states the following: "Empty Slideshow ToGo Project" and the screen is frozen.  The only way to get back to email is to use the Blackberry

  • Writing too much data TCP*Extend Thread

    Hi there, We've got the following error, we're not using any custom serialziation. Any ideas? 2007-12-03 09:12:59.614 Oracle Coherence GE 3.3/387 <Error> (thread=ExendTcpProxyServiceWorker:4, member=7): Caught an unhandled exception while processing

  • New to FCE from Adobe Premiere Elements

    Hi. I've just switched from the bug laden Premiere Elements 8 to FCE on my iMac and I have to say so far so good. I just have a basic question about setup for my projects. I may be getting confused here on account of being Premiere Elements user for

  • Moving one folder to another copies the files instead of moving them

    I have a folder in the top level of the system disk, and I want to move it into the 'Documents' folder/library.  When I click right and drag the folder over, it copies the files instead of just moving it. Just to be clear, the source folder and the t

  • Ipod Touch not accepted by the latest iTunes

    Hey there this morning i updated my itunes to the latest version. now, i wanted to connect my iPod with my PC (Win 7, 64-Bit) and iTunes says "An iPod is discovered, but could not be identified. Please disconnect your iPod from you PC and try again."