FCC in receiver FTP adapter

Hi.
In attached file ut20140505-165117-416.xml you will find a field called Data.
I need to create a txt file based on tghe Data fields.
The attached file should create the out.txt file
How would a content conversion setting look to accomplish that?
Regards
Andreas

Can you try something like below..
Recordset Strcuture : Recordset,File
Recordset.fieldSeparator 'nl'
File.fieldSeparator     ''0x0a'
I suspect you might get an error as you got an additional field " <Filename>PAYFILE0201</Filename>"
Please test and let me know..
You might have to move the FileName to a different segment under recordset if the above configuration doesn't work..

Similar Messages

  • Retaining the FileName in the Receiver FTP adapter

    Hi experts,
    I have a situation here, were i need to retain the FileName in the message header in the receiver FTP adapter.
    I have tried using variable subtitution but seems the FileName is not supported in variable substitution.
    Please help
    Thanks

    Hello,
    if you need file name to be retained in the receiver adapter from the sender side. then u can do that by dynamic configuration using adapter specific message attributes, check this blog for details-
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you dont have a mapping in your interface to use dynamic configuration, then you can do it via adapter module also- have a look here, /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    regards,
    francis

  • Dynamically generate terget directory in receiver FTP adapter

    Hi guys,
    I'm trying to set up a scenario where the file will be placed into a terget directiry based on values from the incoming message. I can't use variable substitution as my target message does not contain the needed value, so I'm trying to set up a dynamic configuration in an UDF. Unfortunately, this is not working.. Any ideas, what could be wrong? The receiver FTP adapter always just takes values from it's configuration. It doesn't help when I try to change it in mapping.
    This is the java map code in the UDF:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, a);
    conf.put(key2, "tfilename.txt");
    return "";
    Thanks a lot for any help,
    Olian

    Hi,
    use below code it will work fine
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    String a=conf.get(key);
    String b=conf.get(key1);
    var1 = a+b; ;
    return var1;
    map this udf to root element of your receiver structure.
    Regards,
    Raj

  • Prerequisites for Sender and Receiver FTP adapter

    Hi Experts,
    I am new to PI and configuring simple file to file scenario. I need to know the prerequsites for sender and receiver FTP adapter. Scenario is System A -> XI -> System B .
    What I want to know is:
    1> What ports need to be opened?
    2> Any service that I need to activate?
    3> Do I need to install FTP server in any of the machine?
    If I have missed something, please add.
    Br,
    Nilz

    Hi,
    1> What ports need to be opened?
    mentioned in below link as said its 21.
    2> Any service that I need to activate?
    No
    3> Do I need to install FTP server in any of the machine?
    THere are two ways by which u can pick ur file.
    1) NFS by which u can put the file on XI appplication directory and pick up ur file.
    2) FTP u have to put ur file on FYP server and XI will pick up the file from there. U can use freeware FTP and install it on ur Desktop search on goolge u will get ti FTP installtion.
    refer the below configuration requirement for FIle adapter.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    ALso refer the end to end file to file scenario.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    chirag

  • When to use "Use Temporary File" in receiver FTP adapter

    Hi Experts,
    I have nerver used "Use Temprary File" as the "Write Mode" in receiver ftp adapter.
    I want to knwo under what kind of requirment we should use this option?
    Thanks in advance.
    Best Regards,

    Hi Aditya
    Usually it's advisable to use "use temporary file" as write mode when you want to avoid your file to be picked up by receiver while PI channel is still writing it.
    Obviously larger the file, more chances you have that this issue could occur.
    If you select the "use temporary file", XI will write the content to a temporary file with another name of your choice and only once writing has finished it will rename it to the actual name setup in the "file name scheme".
    Regards,
    Giuseppe

  • Receiver FTP Adapter File Size Splitting

    Hi,
    I am receiving an IDoc from R/3 into XI.
    I then map this IDoc into an xml file and use a receiver ftp adapter to drop the files onto a ftp server.
    Is there anyway, that I can use the adapter to split the message interface into smaller files.  For example, if I were to ftp the message interface into 1 file, the file size would be 1MB.  I would like to split the 1 message interface into 4 x 250kb files without having to split the message interface?
    Thanks,
    Miguel

    Hi,
    If you split into 4 files each one should be a XML file right?
    This is possible without BPM.
    Go thro the blog:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Wat u need to do is make the target side 0..unbounded. If u have 100 records, Map some  25 records in first occurence, 25 in second and so on. This way u can reduce file size.
    Regards,
    P.Venkat

  • Receiver FTP Adapter Problem

    Hello. My scenario is: A file is sent from R/3 via RFC, then from XI to an outside system using the FTP adapter. The RFC part is working, but I've encountered some errors with my FTP adapter. The file is not being created in my directory at all and this is the error message I'm getting:
    - 2006-10-11 08:28:20 CDT: Error: Message processing failed: Exception: ftp access error: com.sap.aii.adapter.file.ftp.FTPEx: 552 transfer failed
    Can anyone help, please?
    Thank you.
    Nicole

    Hi Nicole,
              A few things you might check are:
    1) The Ip address given is correct.
    2) The login details given in File receiver adpater are right
    3) The server is running when you make the transfer, that is 'Allow logins' status is checked in case of guild FTP server or similar servers.
    4) The destination directory is given as "/root" with "/" slash.
    5) All the firewalls are turned off.
    6) File processing mode is 'Create'.
    Cheers,
    Ashish

  • Receiver FTP Adapter - Directory create

    Hello,
    the XI FTP Receiver Adapter by default creates the target directory on the FTP Server if it does not exist. The J2SE Engine had an option if you want to create the directory or not.
    Is that available in the XI 3.0 J2EE FTP Adapter? I could not find it. Further if that can be set, would the adatper throw an error?
    Thanks
    Stefan

    Hi Stefan,
            I'm facing the same issue, while trying to create a dynamic folder in the FTP server.
    The FTP adapter failed with the error 'An error occurred while connecting to the FTP server 'ftpserverip:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /root/dynamic/: The system cannot find the path specified. '. For details, contact your FTP server vendor.
    Were you able to resolve this issue using any SAP notes?
    Thanks in advance.
    Thanks,
    Joe.

  • Regd file content conversion in receiver FTP adapter

    Hi All,
    I m trying to do FCC at receiver, i have to convert Idocxml in to a flat file.
    Input structure is smthing like this:
    MT_source
       <Header>
             <ZXw>test1<ZXw>
              <ZYe>test2<ZYe>
              <ZZR>test2<ZZR>
       </Header>
    <ZJDU>
             <ZXd>xyz<ZXd>
              <ZYE>wer<ZYE>
              <ZZw>wer<ZZw>
       </ZJDU>
    I have to get the output as:
    test1test2test2xyzwerwer..etc i mean to say i have not feildseparator and i have to revome all the tages in in put file and paste the only values in the output.Its like getting all the things in the same line.
    it tried giving  like . header.feildSeperater    ""
                                  ZJDU.feildseperater  ""
    I am very new to this,searched .. bt didnt get what to write  when there is no  feild seperator  and i have to paste complete file in text format.
    thanks
    Anika

    > it tried giving  like . header.feildSeperater    ""
    >                               ZJDU.feildseperater  ""
    >
    I could see spelling mistate in the above line.....  fieldSeparator
    if the above setting didn't work. did u try with the running scripts after the adapter has finished it's job.  You can replace the fieldSepartor with "" empty string.

  • Archiving files sent by Receiver FTP Adapter ?

    Hello,
    we search for a solution to archive a file, which was sent by a receiver File/FTP Adapter (via FTP) to a ftp server.
    in an other directory on the FTP server. (Similar to the standard function of the sender File/FTP Adapter)
    Any Ideas ? A hint would be nice.
    Thanks.
    Regards
       Thorsten Stork

    Hello Thorsten Stork,
    This will help you
    /people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Hi Vishnu,
       Happy to see you in SDN Forum,
    Regards
    Agasthuri Doss

  • Receiver FTP adapter not intialized

    Hello all,
    I have set up a receiver File adapter but when I check the adapter monitor it shows me "Adapter not initialized"...The authorizations are prefect since I have set admin id's in the FTP server username and pwd. I would like to check the adapter engine to see if this adpater has been turned on..What is the URL to check the adapter engine in the J2EE stack ?? Also I set up a mail adapter which never shows up in the adapter monitor ..What could be missing??
    -Ken

    Hi,
    go to the path:
    <server>\<sapSID>\DVEBMGS10\j2ee\cluster\server0\log\services\com.sap.aii.adapter.file.svc
    inside you should be able to find all of you adapters
    config_[adaptername] files.
    inside you can see their configuration and sometimes
    an error message at the end
    maybe there will be something over there  
    Regards,
    michal

  • Tab delimitter in HeaderLine in FCC in receiver file adapter

    Hi Folks,
    I want to use tab as a field separator for (eg) NameA.Headerline.
    instead of comma in file content conversion in receiver File adapter communication channel.
    example:
    Recordset structure : NameA
    NameA.addHeaderLine : 3
    NameA:headerLine : MaterialID,Price,Quantity
    PS: In  NameA.headerline i want to use  tab instead of comma.
    How can i do that?
    Thanks
    Prabaharan

    Hi Beena,
    could you explain on which context we should use that option:
    NameA.addHeaderLine  - 1 ( Header line with column names from the XML document )
    what it does exactly?
    Thanks
    Prabaharan
    Edited by: Prabaharan on Aug 21, 2008 12:02 AM

  • FCC in receiver file adapter

    Hi,
       My scenario is proxy to flat file(FCC). The incoming structure has following format:
    Header1
    Item1
    Header2
    Item1
    Item2
    Item3
    Header3
    Item1
    Item2
    Control
    Each Header can have multiple item fields. The last line is control record.
    So the structure is like :::::        header, item, item, item, header, item u2026.., control.
    what configuration should be done in FCC?
    Thanks in Advance.
    Regards,
    Miten

    Hi,
    Please check some links on FCC
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    File Receiver with Content Conversion
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    File Content Conversion for Unequal Number of Columns
    Content Conversion ( The Key Field Problem )
    The specified item was not found.
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    sainath

  • Receiver FTP adapter java.lang.StringIndexOutOfBoundsException

    Hi,
    i'm getting the following error trying to reach an FTP server using a Receiver CC:
    Attempt to process file failed with Error occurred while connecting to the FTP server "xxxxxx:21": java.lang.StringIndexOutOfBoundsException
    Any help would be really appreciated
    Thanks
    Simona Milione

    Hi
    check the fixedFieldLength parameter for all the fields in you File COntent COnversion
    there is some field whose length is greater than what you specified in FCC
    regards
    krishna

  • Configurig FCC in Receiver File Adapter

    Dear All,
    It is a IDOC to FILE Structure where after mapping there are only two fields in the target structure and the occurrence is only once.
    The two fields are - filename and data
         <Message>
              <filename>brand0412</filename>
              <data>CO BLUE ALTERNATE Y</data>
         </Message>
    I would like to create a text file with the following requirements:
         1) the name of the text file -> value of field filename -> brand0412.txt
         2) the content of the text file should be -> the value of the data field -> CO BLUE ALTERNATE Y
    i.e.
    File name - brand0412.txt
    Content - CO BLUE ALTERNATE Y
    What are the parameters I should use for FCC?

    Hi Rana,
    You can use DynamicConfiguration to name the text file. You can find the Dynamic configuration UDFs on SDN. Here are few , modify as per your requirement.
    Target file name using Dynamic Configuration
    SAP XI Dynamic Configuration - Code Gallery - SCN Wiki
    Dynamic File Name - UDF
    Map as below :
    Filename -> DynamicConfiguration UDF ->TargetMessage
    Your target structure will look like
         <TargetMessage>
                   <Message>
              <data>CO BLUE ALTERNATE Y</data>
                   </Message>
         </TargetMessage>
    Select FileName in ASMA properties in receiver adapter.
    Once you have done this , configure the receiver adapter using FCC parameter. refer below.
    XI/PI: File Content Conversion for Simple Structure

Maybe you are looking for

  • Multiple selection from a list fails after scrolling the list

    I ran into this problem in a much more complex HTML file, but here is a simple file that recreates the issue: <html> <body> <!-- Steps to reproduce the problem: - Select the 'A' option => the 'Selected' alert is displayed - Scroll down until the 'J o

  • How to read data from a website based on user inputs through java programmi

    Hi I want to get information from a website based on some inputs that I have. The inputs change everytime and based on them, different output is expected. How do I go about with it? Please advice... Will data mining help in this? or is it used only f

  • After Effects crashing on applying Element 3D

    So I just downloaded After Effects CC 2014 and transferred all my plugins to it. But all except Video Copilot Element 3D V1.6.2 are working correctly. Whenever I apply the Element effect AE crashes. I tried to reinstall it using the installer but no

  • Badges missing in Lightroom 1.1

    Badges and the "curled page" indicator for virtual copies are missing in the filmstrip. Flags do appear properly. Note that I have read other posts where the solution was to make the filmstrip larger. I have made it the largest possible size and stil

  • Headphone problem with bumper case.

    With the bumper installed, I can no longer plug in my nice Grado headphones. The headphone socket hole in the bumper is so narrow, that I can't push the plug in all the way. Has anyone seen any kind of gadget that allows you to plug in a third party