Unwanted character in Receiving Files at FTP

Hi All,
We have scenario where I am  sending the files(NFS) to FTP,just like file to file scenario. It seems to every thing is fine but when I look at that files in receiver side(FTP) there  is a special charcter placed in end of each record. ^M
like this :
werrtt, 123224214, fsdaff,^M
dsfdsf,6756767,dsfsffdff,^M
Do you have any idea why it(^M) is coming, do I need to use Unicodes for aviod that ? currently I am using binary/format in channel. If I dont send those files to FTP , then I dont see that character.
Our FTP on Unix and Files picking from windows(NFS).
How to avoid this special character(^M)?,  Is this based on FTP behaviour  or environment problem?
Thanks,
Shankar

> This has resolved the issue but I believe instead of unix script if we can handle in XI itself, it will be too good.
You can do this in PI, but it is a cumbersome:
Put following modules in the module before the standard module:
1. Use the StrictXml2PlainBean instead of the content conversion in file adapter
http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/748d595dab6fb5e10000000a155369/frameset.htm
2.ConvertCRLFfromToLF
http://help.sap.com/saphelp_nwpi71/helpdata/EN/96/f04142099eb76be10000000a155106/frameset.htm

Similar Messages

  • Receiver file channel-FTP

    Hello All,
    Scenario is Outbound(ECC to FTP).
    Below is the steps in audit log of Receiver file adapter:
    12.07.2011 03:30:07 Information Write to ftp server "AAAA", directory "'DEV'",   file "DEV.OUTPUT>XML".
    12.07.2011 03:30:07 Information Transfer: "TXT" mode, size 55 bytes, encoding ISO8859-1.
    12.07.2011 03:30:07 Information 200 SITE command was accepted
    12.07.2011 03:30:07 Information File processing finished.
    12.07.2011 03:30:07 Information MP: leaving
    12.07.2011 03:30:07 Information The message was successfully transmitted to endpoint <local> using connection File_http://sap.com/xi/XI/System.
    12.07.2011 03:30:07 Information The message status was set to DLVD.
    In step3, It is saying 200 SITE command was accetped. But I didnt mention any UNIX command in my receiver file channel(FTP
    transport protocol).
    Can someone tell me from where is this coming or is it a default one?
    Thanks,
    Regards,
    Moorthy

    Hi
    Please see the DOC for SITE Command:
    SITE command is used by the server to provide services specific to the system. Most of the SITE commands can be used by the admin only. You can get all the available SITE commands by "SITE HELP".
    http://incubator.terra-intl.com/projects/ftpserver/site_cmd.html

  • Special character in receiving file

    hi everyone.
    i have implemented file to file scenario. I am getting file at my receiving end.
    IN my receiver CC i have mentioned endSeparator as 'nl' , but when file gets created it shows special charater (box shaped) separating each record.
    any idea where m going wrong ?
    thanks,
    gaurav

    hi,
    when i opened that txt file in notepad , m getting that special rectangle character but when i opened it in wordpad, its coming perfectly.
    what does this rectangle char is ??? when we specify endSeparator as 'nl' then do we need to open it in wordpad only ????
    thanks,
    pooja

  • Receive file by FTP (Server is restricted to get command only)

    Dear all,
    I would like to receive a file from a very special FTP server. And I am not sure if the File Adapter is able to handle this:
    The FTP server I wand to connect to is a very special one. This server allows only to log in and to receive a specific file. This means that the only allowed command is
    get file.dat
    It is not possible to change directory or to get the directory listing. When the file was received it is not necessary (and not possible) to delete the catched file. The FTP server notices that the file was received and removes its content. This means that the file will not be removed. So it is always possible to get the file. But in most cases the file is empty (but that should not be a problem - the File Adapter can handle or ignore empty files.).
    From my point of view it seems that SAP XI 3.0 SPS17 does not support to interact with this special kind of FTP Server. In RWB I can see the following error message:
    "An error occurred while connecting to the FTP server 'XXX.XXX.XX.X:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 500 -3002 : command : invalid command'. For details, contact your FTP server vendor."
    I connected to this FTP server manually. I get this error message when I try a command which is not allowd by the FTP server ("ls" for example). So I guess that SAP XI uses "ls" before catching the file.
    Do you have an idea how I can configure the File Adpater to work with this FTP Server properly?
    Many thanks
    Michael

    Hi Michael,
    This is a tricky one. The set of required ftp commands that need to be supported to be RFC compliant is quite small (see RFC 959) but it seems that the file adapter assumes a certain minimum set (including CWD and LIST, both of which are optional).
    There are several options, varying in complexity immensely:
    1) Scripting the transfer process so that files are transferred to a local filesystem, from where they can be processed by XI
    2) Adjusting the "special ftp server" so that it ignores commands it doesn't understand - I'm guessing this isn't possible?
    3) Creating a "more relaxed" ftp JCA adapter, one that doesn't assume a certain minimum set of commands
    4) Something else I'm not thinking of so early in the morning
    Hope that helps a little...
    Regards, MJ

  • Receiver File Adapter: FTPS Error

    On sending a text file to a trading partner the log in the communication channel shows the following:
    Connecting to FTP server - success
    Write to FTP server - success
    Transfer: "TXT" mode - success
    Exception caught by adapter framework:connection timed out - Error
    The FTP connection Parameters have:
    Data connection = Passive
    Connection security = FTPS (FTP using SSL/TLS)
    Command order AUTH TLS, USER, PASS, PBSZ, PROT
    Use of X509 cert for Client Authentication is checked
    Keystore = service_ssl
    x.509 Cert and private key = *******.crt
    When I look in the NWA logs for default trace I see several messages with the text "Rolling back transaction for message..." plus a FILE_ERR_211
    What is a FILE_ERR_211?
    Thanks
    Mark

    hi mark,
    To configure a timeout for the FTP connection, please enable the "Advanced Mode" for the respective FTP communication channel in the Integration Directory and add an entry "ftp.timeout"=timeoutSecs
    (without any quotation marks) to the "Additional Parameters" section, where timeoutSecs is the desired FTP timeout in seconds.
    regards
    kummari

  • Dynamic Filename on Receiver File Adapter

    Hi,
    I am running XI 3.0 SP 14.
    The scenario is
    SAP R/3 (IDOC) > XI (Receiver File Adapter)> FTP Server
    There is no mapping on the XI side, we just drop the IDOC XML on to the ftp server.
    I would like to configure a dynamic file name on the Receiver File Adapter where if the 'MSATZ' Field
    within the E1EPD04 segment of the IDOC is populated then I would like to send a separate
    Filename than the one specified on the 'File Name Scheme'.
    Has anybody done this or any suggestion how I should go about this please.
    Thank you.
    Warm  Regards,
    Ranjan

    Hi Guys,
    When I tried to create the User defined function as below, I got the Null value for the "StreamTransformationConstants.DYNAMIC_CONFIGURATION" object.
    My code looks like this,(this is part of the debuging code)
    Start
    public String Create(String a,String b,Container container){
    if (container.getTransformationParameters() == null)
    return "conf.null";
    if (container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION) == null)
    return "Dynamic.null";
    return b;
    --End
    On the output I get the value "Dynamic.null". I do not know why the object value is Null.
    Any suggestion pls.
    Thank you.
    Warm Regards,
    Ranjan

  • How can I set-up to receive a file with FTP?

    I want to receive a .pdf file from another, but the file is rejected by my email service provider for size.  What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?  I'm using OS Snow Leopard 10.6.8 with a DSL Internet connection nominally at 10 MBs download.

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

  • 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

  • FTP Receiver File adapter  -- CRLF In output File in Windows environment.

    Hi All,
    Idoc to File : Receiver File adapter.
    I use the endseparator 'nl' and the output file is coming correctly with NFS and It is not working when we are doing with with FTP.
    Tested with NFS (Unix environment)
    I used the endseparator 'nl' and the output file is coming with CRLF.
    Tested with FTP (Windows environment)
    When I tested the same the output file is coming with LF.
    I tried by using the module "SAP XI Sample/ConvertCRLFfromToLF" which will convert from LFToCRLF.But it is serving my purpose.
    Can anyone please suggest how I can get the CRLF in the file while putting in the output directory which is in windows environment.
    Thanks
    Seema

    Do not mention endSeparator in content conversion parameters...by default XI puts newline as endSeparator
    It should work for NFS and FTP on Windows

  • Urzent: Delete files in FTP server using FTP receiver adapter

    Hi Experts,
    We are doing 2 asyncronous scenarios. frst scenario should delete existing file and place the request file. Second scenario should pick(delete) response file and delete request file it placed also.
    Scenario 1 : File(NFS) to FTP  (Asynchronous)
    Scenario 2: FTP to NFS  (Asynchronous)
    Scenario 1: (Receiver FTP Adapter )
    step-1: PI has to delete all existing files in FTP server
    step-2: PI has to place Request file in FTP
    Scenario-2: ( Sender FTP Adapter)
    step-1: PI has to Delete request file i FTP server
    Step-2: PI has to pick and delete response file in FTP server
    Doubts:
    How can we do above steps in PI
    Thanks,
    Murali

    Hi Krish - For scenario -1 You have to make use of the OS commands to delete the files on FTP server before placing the request file.
              -> write some script which wil connect to the FTP server and delete the files.
              -> call that script from the file adapter "using execute OS commands" option
    For scenario -2 :
    pick both the files(request and response) and set the processing mode to delete..
    during the receiver determination, process only request files(based on filename/content)

  • Receiver File Adapter - Dynamic FTP Server Address

    Hi,  I would like to pass the FTP Server address to the Receiver File Adapter as an parameter.  Is this possible and if so what Name Space / Parametr Names add to the Product to define these values.
    Thanks
    Andre

    Hi Andre,
    If you have your server as a part of your payload, thendynamic file server generation concept can be done is as follows. 
    In your server name field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • Add counter in FTP receiver file adapter

    Hello,
    I have sen that in a File System (NFS) you can add a counter to the filename, but I don't found this possibility when I put File Transfer Protocol (FTP), I only see to add timestamp or message id.
    There is some possibility to add the counter in the FTP like in NFS?
    Regards,
    Xavier.

    Hi,
    Unfortunately, the functionality to add a counter is available only with NFS and not with FTP. If you want to achieve this, you will probably have to use variable substitution to dynamically get the counter from a field in the payload. The counter can be incremented in the mappings.
    For info on variable substitution: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm">Configuring the Receiver File/FTP Adapter</a>
    Regards
    MAnish

  • Configuring the Receiver File/FTP Adapter !!

    Hi
    I am trying to configure the Receiver file adapter using the J2SE adapter engine(Please note , NOT the J2EE adapter engine).I see a prerequisite for configuring as below
    "The address (HTTP port and URL) where the adapter can be contacted from the Integration Engine".
    What values are to be specified and how can they be validated ?
    I could see an example given in the Docs saying below,
    If i specify , say for example,
    "XI.httpPort=1234 and
    XI.httpService=/file/Receiver, the end point address of the file/FTP adapter in the Integration Engine must be specified as follows:
    http://<fileadapterhost>:1234/file/Receiver"
    Can anyone explain what exactly is this endpoint address and where should it be specified/referred to ?
    Thanks
    Saravana

    Hi,
    "http://<fileadapterhost>:1234/file/Receiver"
    this adress refers to an end point with the end point type "xi-connectivity" in the integration directory (ID)which refers to the settings in the file adapter (httpPort=1234 and XI.httpService=/file/Receiver)
    1. you specify these adress in the file adapter (outbound)
    2. you refer to these adress in the ID (Receiver System End points)
    every file adapter should have an own port, because you can not specify two identical ports in two fileadapters.
    hope I could help you,
    michele
    Message was edited by: Michele Mangieri
    Message was edited by: Michele Mangieri

  • Use temporary file in FTP receiver adapter

    Hi guys,
    I'm not getting the purpose of "use temporary file" in FTP receiver adapter. Can you describe any situation, where this should be used?
    What is the location of this temporary file?
    Is it deleted after "normal" file is created?
    Thanks a lot,
    Olian

    > I'm not getting the purpose of "use temporary file" in FTP receiver adapter. Can you describe any situation, where this should be used?
    Some times when you create the file on your target dir then if there is another application looking for same file is quite faster to pick the file before it is complety written on target dir then in this situation using temporary file option is very helpful. What it does, it simply creates the file first by using temporary name once all bytes or bits has been transfered then it creates the original name and the temp file get deleted.
    > What is the location of this temporary file?
    Same location, where your original file is suppose to be written.
    > Is it deleted after "normal" file is created?
    Yes.
    Regards,
    Sarvesh

  • Receiver File/FTP, SFTP, binary, endSeparator for CRLF ?

    We are planning an interface using the Receiver File/FTP Adapter, using SFTP in binary mode.
    The SAP PI runs on Unix, the other applications runs on Windows.
    Can NameA.endSeparator be used to ensure that every line in this file ends on CRLF?
    (As you know, Windows has the habit of ending lines in text files with CRLF - carriagereturn-linefeed, whereas Unix uses a singe LF - linefeed, also known as newline or nl).

    Yes it can be done with '0x0D''0x0A' value which represents the CR and LF respectively...
    which has been implemented succesfully in our interface...
    HTH
    Rajesh

Maybe you are looking for

  • Where can I find, in time machine, the file of Wi-Fi associated

    When I upgraded I started with a fresh install because I wanted that many things remain only in the backup. Now where can I find the file association to networks of all wi-fi that I had before? Let me know if i can see hidden files in Time Machine. T

  • Report painter question FI-GL or FI-SL?

    Hello I have a general question on reports created via report painter. I want to create a BS & PL report to see balances by month, and am trying to determine considerations to take into account. Creation of a report where I can see the balance of an

  • Dynamically Declared Properties in PS CS3's plug-in

    Now Im developing a plug-in for Photoshop CS3, and I want to dynamically change its properties rather than statically define them in PiPL. But Photoshop never send message "SP Properties" to my plug-in, so I have no chance to handle SPPropertiesMessa

  • Table breaking - More Newbie Q's

    http://www.oerica.com/test.htm The text in table cell breaks when it extends past the width of cell. I've tried tabe-layout__fixed, min/max widths, div tag within the table cell. Not sure what I am missing.

  • Extra Field in Defects Recording

    Hi Friends,   As per my clients requirements i need to develop an extra field in the defects recording screen.Is there any standard program exist for this. Regards, S.P.Selvathangam