Skip to Content
author's profile photo Former Member
Former Member

File headers

Hi experts,

1. I am converting a file and now my req is: I need to send the file to the target system with column names as the header of the file.I dont have any such in the source file.

can we do this?Please tell me in both cases ie.. if I have a header in sorce, then what will be the parametrs to be used and if no, then what will be the parametrs used.

2. I need space as a separator. what will be the value to be passed for this?

Thanks in advance

kiran

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 24, 2006 at 12:19 PM

    Kiran,

    ><i>2. I need space as a separator. what will be the value to be passed for this?</i>

    In your .fieldSeparator give the value as a single space and it will take the space as the field separator.

    First question, can you give an example?

    Regards,

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      <i>1. I am converting a file and now my req is: I need to send the file to the target system with column names as the header of the file.I dont have any such in the source file.

      can we do this?Please tell me in both cases ie.. if I have a header in sorce, then what will be the parametrs to be used and if no, then what will be the parametrs used.</i>

      U can use the following: NameA.addHeaderLine

      Specify whether the text file will have a header line with column names. The following values are permitted:

      0 – No header line

      1 – Header line with column names from the XML document

      2 – As for 1, followed by a blank line

      3 – Header line is stored as NameA.headerLine in the configuration and is applied

      4 – As for 3, followed by a blank line

      http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

      <i>

      2. I need space as a separator. what will be the value to be passed for this?</i>

      structure.fieldSeparator = '0x20' hexadecimal conversion for space

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 12:50 PM

    Hi Vijaya,

    First, I would like to tell that, I converting a CSV to txt file.

    I tried to add headerline. in sending system parametrs with value 1 and also passed their values using this : nameA.Headerline. But its not working for me. Any clues?

    Thanks for the instant response

    regds

    kiran

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.