Text file conversion - EDI data file

Hi experts,
I have a file as below :
N1VNVendorName1VendorID
N2VendorName2VendorName3
N3VendorAddressLine1VendorAddressLine2
N4VendorCityDU*823
N1, N2......  are segment name and "*" is delemeter
after that the data is filled in the attributes of segment. File is ".txt" file.
How i can convert the file by using file adapter ?
what will be the entries in file Comm. Channel tab : Content Conversion parameters ?
Please help, its urgent,
Regards,
Study SAP

follo these blogs for CCP:
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
the field separator here wull be '*'

Similar Messages

  • Hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    iPad do not support flash natively.
    Look in the app store, some browsers do support flash with limited functionality.

  • File conversion in a file adapter

    Hi
    I am using a FTP file adapter to place the file in the ftp servers.
    The structure of the file is
      <?xml version="1.0" encoding="UTF-8" ?>
    - <p2:MT_Cust xmlns:p2="http://RashidaBPM">
      <Cust_no>KRTEST2</Cust_no>
      <Cust_Name>XI CUSTOMER 2</Cust_Name>
      <Cust_Address>GB</Cust_Address>
      </p2:MT_Cust>
    I want the resulta to come in as cust_no , cust_name, cust_address
    Can someone please help me to get the centent conversion parameters correct to get the desired result
    Thanks
    Nikhil

    Hi Nikhil,
    To convert a XML file into a flat file you need to have a Stucture of the XML file like this one mentioned below:
    <root>
    <substructure>
    <data>
    </data>
    </substructure>
    <root>
    By XML I mean the input data, that will be routed from XI server to FTP servers.
    now the parameters to be given in Content Conversion Tab and which are of utmost importance are:
    substructure.fieldSeparator
    root.fieldSeparator
    substructure.endSeparator
    you can also use the methods such as fieldFixedLengths etc.
    Include these methods and test your scenario again.
    I hope it helps,
    Thanks & Regards,
    Varun Joshi

  • File conversion and append file in receiver file adapter

    Hi
    I have a batch IDoc -> XI(3.0) -> file scenario with file conversion to create a flat CSV-like file. The problem is that because of the amount of data sent from R/3 (~20000 employees), the idoc is split into several idocs. In my receiver file adapter I want to append all the idocs contained in this data transfer to one flat file, before transmitting to FTP server.
    For the next batch transfer (the next day) XI should start all over and create a new file and append all idocs contained in that transfer before transmitting the flat file to FTP server.
    Can this be done using the 'Use Temporary File' and 'Append' options in the FTP connection Parameters in the comm-channel?
    It is not an option to append the file in the FTP-server, because the files in the destination folder are moved immediately after arrival, so the file will be moved before file adapter can append all the files.
    Does anyone have any suggestions to how to solve this?
    Br
    Kenneth

    Hi Kenneth
    Did you ever get a solution to this problem?
    Regards
    Russel Irvine
    [email protected]

  • XML file conversion after sender file content conversion

    Hi,
    I have issue refarding file content conversion.
    My input structure is
    <MT_RCICrecords>
    <TRNH>
      <RCIC>
        <RECH>
        <RECL>
      <RCIC>
    <TRNH>
    Afetr sender File content conversion (csv to xml) it produces xml file as below (since file conversion does not support 3rd level of hierarchy)
    <TRNH>
    <RECH>
    </RECH>
    <RECL>
    </RECL>
    </TRNH>
    It does not recognize RCIC.
    Now i am trying to map this to IDOC and getting error as
    'MT_RCICRecords tag found instead of IDOC BEGIN ='.
    CAn anyone suggest me how to chaage this xml output after File content conversion to add RCIC tag in xml file?
    I am new to XI so please give me some sample code to.
    Thanks.
    Yashpal
    Its urgent!

    My problem is xml generated from content conversion is like below
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RECH></RECH>
    <RECL></RECL>
    <TRLR></TRLR>
    </MT_RCICrecords>
    and i want it to be
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RCIC>
    <RECH></RECH>
    <RECL></RECL>
    </RCIC>
    <TRLR></TRLR>
    </MT_RCICrecords>
    which is not happening
    My input message structure is
    MT_RCICrecords
    TRNH
    RCIC
    RECH
    RECL
    i hope it is clear now
    TRLR

  • Flat file conversion-Ignore data in incoming file(Sender)

    Hi All,
    We have a below requirement for sender flat file:
    In our datatype we have Recordset
                                                 - Item
    In file we are getting  as
                 Header(Values)
                 Item......
                 Item.....
                 Trailor(Values)
    I want to ignore Header and Trailor data at channel level.Could you please tel me how Can i do that?
    Thanks in Advance
    Best Regards,
    Harleen Kaur Chadha

    Hi,
    For the structure mentioned in query
    we are receiving data from sender as
         Records
             Header(Values)
             Item....
             Item...
            Trailor
    and we have set recordset per message as 1 in communication channel
      In sender datatype we have
              Records
               Header (Field1..1)
                Item(Record 1...n)
              Trailor(Field 1..1)
             Records
    We are using ignore parameter to ignore header and Trailor values it works if we are getting one item but if multiple items are coming its failing at channel level.
    Could you please suggest which parameter we can use to ignore Header and Trailor using recordset per message as 1 as a option?
    Thanks in advance
    Best Regards,
    Harleen Kaur Chadha

  • File Conversion in Rec File Adapter with subnodes

    Hi
    My XML Structure is like this -->
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_Test xmlns:ns0="urn:TESTconversion">
      <MstName>Hello</MstName>
    - <Header>
      <TableName>1tst</TableName>
      <PayDate>0102</PayDate>
      <TotalAmt>24.00</TotalAmt>
      <Total>000002</Total>
      <PaySource>CHK</PaySource>
    - <Subheader>
      <TableName>1tst</TableName>
      <SelectCatgry>test</SelectCatgry>
      <CustID>200</CustID>
      <PayAmount>11.00</PayAmount>
      </Subheader>
    - <Subheader>
      <TableName>1tst</TableName>
      <SelectCatgry>test</SelectCatgry>
      <CustID>400</CustID>
      <PayAmount>13.00</PayAmount>
      </Subheader>
      </Header>
    - <Header>
      <TableName>1tst</TableName>
      <PayDate>0103</PayDate>
      <TotalAmt>10.00</TotalAmt>
      <Total>000001</Total>
      <PaySource>ONE</PaySource>
    - <Subheader>
      <TableName>1tst</TableName>
      <SelectCatgry>test</SelectCatgry>
      <CustID>100</CustID>
      <PayAmount>10.00</PayAmount>
      </Subheader>
      </Header>
    </ns0:MT_Test>
    which means
    MT_Test is root 1..1
    Header is the sub-node of MT_test as 1...*
    Subheader is sub-node of Header which is also 1...*
    rest of the fields are elements as 1..1
    Now I need to convert this into Flat file using Receiver File Adapter, I gave this in my content conversion logic
    recordset Structure -
    MstHeader,BFKKZK,BFKKZP
    MstName.addHeaderLine     0
    MstName.fieldFixedLengths     8
    MstName.endSeparator     'nl'
    Header.addHeaderLine     0
    Header.fieldFixedLengths     30,10,15,6,6
    Header.endSeparator     'nl'
    Subheader.addHeaderLine     0
    Subheader.fieldFixedLengths     34,10,35,16
    Subheader.endSeparator     'nl'
    But with this I am getting exception as -->
    Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_Test' found in document', probably configuration error in file adapter (XML parser error)'
    I know that http://help.sap.com/saphelp_nwpi711/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm says following -->
    The expected XML structure contains the structure as nodes filled with any number of elements without additional subnodes.
    But does that mean Structure with sub-nodes cannot be converted in flat format.
    Pls. suggest the solution for this.
    - lalit -

    Shab
    I resolved the issue & able to convert the hierarchical XML file into flat file with the desired format I wanted.
    Rather then FCC, I use MessageTransformBean module and I have to insert more dummy contexts & dummy fields in the target structure in order to achieve the flat file format.
    I am getting file ( not actual file below just template is shown below) like this now
    Header1 ....details....
    SubHeader1.1
    SubHeader1.2
    SubHeader1.x
    Header2 ....details....
    SubHeader2.1
    SubHeader2.2
    SubHeader2.x
    Headerx ....details....
    SubHeaderx.1
    SubHeaderx.2
    SubHeaderx.x
    Once the total development is over on my side I will create the blog for this. So this following statement is only correct when you use protocol as FCC but not with module.
    "The expected XML structure contains the structure as nodes filled with any number of elements without additional subnodes."
    Thanks
    Lalit

  • N93: VIDE0 FILE CONVERSION playback: AVI file to 3...

    I would like my AVI movie collection to play on the N93...
    Does anybody have a good tutorial to do so? i.e what software, settings, etc, Of course there is Adobe Premiere Elements, quicktime pro and this free software Super @,
    But how to use it?
    thanks!

    Check also http://forum.nokia.com/video for tables of supported audio/video formats.
    Use that information to choose which converter and what conversion settings to use, when you want to make your AVI files work on the phone.
    A fairly powerful tool for such conversions, IMO, is SUPER by eRightSoft:
    http://www.erightsoft.com

  • Creating XML files from one data file in a java program

    <statement>
         <name>John Dow </name>
         <address>123 Main</address>
         <phone>972-213-3434</phone>
    </statement>
    <statement>
         <name>Jane Dow </name>
         <address>345 Main</address>
         <phone>972-213-3534</phone>
    </statement>
    <statement>
         <name>Marry Dow </name>
         <address>678 Main</address>
         <phone>972-213-3435</phone>
    </statement>
    Thanks,
    Bill

    So how does it take this file
    file>
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    </file>
    and create these three different one?
    1.)
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    2.)
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    3.)
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    Is it not going to just grab each element after the file tag? I'm just confused about that.

  • Emailed jpeg files turn into .dat files

    why can't I open jpeg files that i email myself on my iphone 3Gs?

    Hold down the option key while dragging.

  • Problem with omwb.mde file, conversion of mdb file to xml file

    I am trying to migrate MS Access 2000 to Oracle 8i.
    At the OMWB Wizard where it tells me to execte omwb.mde. Whenever I try and execute omwb.mde, MS Access opens up and I get the a radio box that says "Convert Database " or "Open Database" ,on selecting any of them
    i get the following message
    you can't convert or enable a MDE file
    What shud i do to overcome this problem
    Thanx in advance
    bhrigu

    DOMSource src = new DOMSource(resultDocument);
    resultDocument should be of type org.w3c.Node

  • File conversion, from .mpg files to useable files for iMovie on new MacBook

    i wasnt really sure where to post this, but since my end goal is to be able to use all my videos for editing on iMovie it seemed like the best place, i have many .mpg files that i would like to simply convert to a file of equal quality that iMovie will recognize, theres pages and pages of converters on google but they either are trial versions that will leave water marks or there are websites that will only convert files up to 100mb, i just need a simple converter for the videos i have, i dont want to spend 50 bucks on software that ill only use once and i obviously dont want water marks or a decrease in quality, if anyone has any suggestions that would be great.

    You want MPEG Streamclip: http://www.squared5.com/svideo/mpeg-streamclip-mac.html which is a free download.
    If your movie is an MPEG-2 or VOB file (i.e. from an unencrypted DVD), you also need the MPEG2 Playback Component from Apple: http://www.apple.com/quicktime/mpeg2/ which costs US$19.99

  • How to covert a flat txt file to a binary dat file

    hi, am working on a project. i have to insert all the data into a dat file in a binary format. my input file is a flat text file. i have written the code for this job. the code executes ok but it doesnt' write into the dat file. please help me out.
    here is my method for binary conversion---- >
    public static void BinaryOutFile(String fileName){
         try{
              File fileOut=new File(fileName);
              DataOutputStream out=new DataOutputStream(new BufferedOutputStream(
                                       new FileOutputStream(fileOut)));
              for(int i=0;i<array.size();i++)
                   String con=(String)array.get(i);
         //System.out.println(""+con);
                   if(!con.equals(""))
                        out.writeChars(con);
                   out.writeChar(',');
         catch(IOException io){
              System.out.println("Error! Can not write to teh specified file.");
    }

    no i never flush or close the output stream.
    i just want to dump the value of the database (the flat file) in a dat file.
    here is my whole code---->
    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;
    public class Flatgen{
    private static ArrayList array= new ArrayList();
    public static void main(String args[]){
         String line=null;
         String value=null,
         actualValue=null;
         StringTokenizer token1=null,
              token2=null;
         BufferedReader buf=null;
         try{
              File inFile=new File("input.txt");          
         buf=new BufferedReader(new InputStreamReader(new FileInputStream(inFile)));
         catch(FileNotFoundException e){
              System.out.println("Cannot open the source file: ");
              System.exit(0);
         try{
              while((line=buf.readLine())!= null){
              token1=new StringTokenizer(line,",");
              int tokenizeCount=0;
              while(token1.hasMoreTokens()){
                   value=token1.nextToken();
                   token2=new StringTokenizer(value,":");
                   for(int i=0;i<2;i++)
                        actualValue=token2.nextToken();
              if(tokenizeCount>0)
                   Integer.parseInt(actualValue);
                   array.add((Object)actualValue);
                   tokenizeCount++;
         catch(IOException e){
              System.out.println("Cannot read the input file");
              System.exit(0);
         BinaryOutFile("dbfile.txt");
    public static void BinaryOutFile(String fileName){
         try{
              File fileOut=new File(fileName);
              DataOutputStream out=new DataOutputStream(new BufferedOutputStream(
                                       new FileOutputStream(fileOut)));
              for(int i=0;i<array.size();i++)
                   String con=(String)array.get(i);
         //System.out.println(""+con);
                   if(!con.equals(""))
                        out.writeChars(con);
                   out.writeChar(',');
         catch(IOException io){
              System.out.println("Error! Can not write to teh specified file.");
    }

  • I have 100 data files, I want to join them together as one data file

    I need to join approx. 100 data files into one data file, and be able to read back each data file from that one big file. I would also like a feature to count how many files are in the main one file. The data files contain graphs, text and numerics.

    What you want to do is not going to be easy to implement. The idea is that files are just binary data and you can join the data into one binary file. The trick is going to be creating the appropriate header for the binary file to include things like file location--the beginning and end of a subfile--as well as the number of files. The exact structure of the header is really left up to you and your imagination.
    Why do you want to join all the files into one? It sounds like what you have works now and making one file increases the chances that all of your data will be lost if the file becomes corrupted. Also LabVIEW is limited to files of about 2GBytes, so you will be more likely to run into this limit.

  • Is there a way to get Indesign data into a data file?

    I am updating a catalog in InDesign.  I would like to be able to get all of the data in the catalog in an external data file.  This data file would have to be searchable, reportable and shareable.  In essence I have customers who want access to the data for their web sites - some want all the data and some want only selected pieces.  When I say data, I mean the pictures and all the text boxes too.  Help!!!!

    There are several plugins like smart catalog or easy catalog, but also others, which are linking InDesign content to a database, some in both directions, which means, changes done in InDesign are written to the DB and the other way too.

Maybe you are looking for

  • Itunes saying i bought an app i didnt

    Ok. This was before the era of family sharing. I used to use my mothers Itunes account. Lets call it [email protected] About 6 months ago or so, I decided to make my own apple ID. So I made it on the computer, and bought all of the paid apps that I h

  • How do I take out the SIM card?

    How do I take out the SIM card from 4s

  • ITunes takes hours to import CDs and doesn't playback properly

    I recently bought four CDs (all by the same artist) and only one of the four will import to iTunes.  The first CD imported in about five minutes, and there were no problems. Despite iTunes still recognising the track titles and other info, the other

  • Purchasing a new PowerBook

    What is the best way to transfer programs and data from an older PowerBook Pro  Mac to a new Mac?

  • Compare file size   .mov vs .mp4

    I have an iMovie that I exported to .mov with expert settings: 32KHz audio, 24 fps, 480x360 and it gave a file about 300 mb ( a tad over 6 min). I also have some videos from a subscription at Luminous-Landscape that are mp4. As far as I can tell they