Current Position:Home > How to add header line in a file from XI system using file adapters

How to add header line in a file from XI system using file adapters

Update:10-11Source: network consolidation
Advertisement
Hi All,
I need to add header line (Column names) in a file coming from XI system.
I am using file adapters.
Thanks & Regards,
Gaurav Mittal

The Best Answer

Advertisement
The Receiver File Adapter is configured, using the following settings:
1) Choose File Content Conversion as the Message Protocol.
2) You give the ‘addHeaderLine’ parameter as 1
3) For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a ‘,’ (comma) for substructure in a comma separated file.
4) The ‘endSeparator’ parameter needs to given for substructure only. For eg: it may be a ‘nl’ (new line)
5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
please visit the blog.
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
  • How to add header line in a file from XI system using file adapters Update:10-11

    Hi All, I need to add header line (Column names) in a file coming from XI system. I am using file adapters. Thanks & Regards, Gaurav MittalThe Receiver File Adapter is configured, using the following settings: 1) Choose File Content Conversion as the

  • How to add new line to the file? Update:10-11

    Hello, I will like to print 2 line of string in the following format to the file:- file.txt String1 String2 How to print a new line after String1 so that String2 can be written after String1? - Eugene -Do you mean... PrintWriter pw=new PrintWriter(ne

  • How can I add a line to my CSS file to have all TextArea fields show PRE Update:10-11

    Hi, I would like all my TextAreas to show the text as it was inserted into the database... with the new lines, tabs, etc... I would like to add a line to my CSS file to do this if possible. Thanks, Bill :>)Thanks for all the input! Fab. You have been

  • Add a line to end of the file using VBscript Update:10-11

    HI I am working with a software that only accept Vb script commands. I have a file that has 8 columns. I need to add a line at the end of the file using VB script I need this line to add numbers of amount column and put 22 in 7th column and leave the

  • Add new line in the Flat file based on the field value Update:10-11

    Hi, Following is my Flat File - Customer   X      Y 1001          1       2 1002          0       1 Based on the X and Y value I need to add new lines in the Flat file. If X>0 then add a new line with repeating row and Y>0 add again a new line with

  • Open Hub  - Add header line to file on server. Update:11-30

    Hi All, How can I add header description to the file being generated in the server from the Open Hub. The open hub generates a fiule with data fields only, however i want a header line. Example IF my data fields are displayed as below, John M 12 2344

  • Add Header Line tot he output File Update:11-30

    Hi, Proxy to File Senario. Details records are coming through proxy. I need to add a static header line in the file that is created.. The Header line is something Like this :- "SSN";"UPI";"EFF_DATE";"STATUS";"S

  • Unable to find line break between two lines in attachment file. Update:10-11

    Dear all I will be very great full if someone help me out, I am trying to send mail through SMTP server with an attachment of oracle report, but I am unable to find line break between two lines, when I down load the attachment from mail and open atta

  • How to count number of lines in a file? Update:10-11

    I am using a BufferedReader to read my file, but I like to know how to count the number of lines in a file is there a way to do that in Buffered Reader or do I have to use FileInputLineStream?Well, if you know how to read one line with a Buffered rea

  • How to get characters from a line in a file ? Update:10-11

    Hello Everybody , I am able to read the lines from the file using readLine( ) method. But i do not want to read anything that comes after the character '#' Any thing that follows a '#' character is considered as a commet in my case. The contents of m