cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble in FCC

ambili_jose
Explorer
0 Kudos

Hi,

In a text file to xml content conversion we usually provide

<node>.fieldNames = Val1,Val2

<node>.processFieldNames = fromConfiguration .

Is there any ways that i can take up the field names from the Header of the Sender File and not from the Configuration.

Regards,

Ambili

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ambili

follow these links

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure

/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file

/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter

/people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters

regards

Sandeep

if helpful kindly reward points

VijayKonam
Active Contributor
0 Kudos

I do not think that is possible. I understand your requirement. You might want to make the channel dynamic based on the file header. But unfortunately thats not possible.

Anyways, you would have to change the data type of the XML strucuture also in IR. So you can not escape from change if the file format changes..

VJ

ambili_jose
Explorer
0 Kudos

Hi Vijay,

Can u please elaborate ur point?

Thanks for ur reply.

Regards,

Ambili

ambili_jose
Explorer
0 Kudos

Hi all,

Thanks 4 all replies.

It is possible to use processFieldNames = fromFile, in which u have to give the field names in the file as the first line. But still cannot avoid using <node>.fieldNames parameter.

Rgds,

Ambili

Former Member
0 Kudos

Could you please explain the scenario.

Indranil

ambili_jose
Explorer
0 Kudos

Hi everyone,

Thanks a bunch for ur reply...

I dropped in such an issue, with reference to the following blog

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1092] [original link is broken] [original link is broken] [original link is broken];,

Michal says "Substr.processFieldNames Value: fromConfiguration

because in our example the flat file does not contain any header".

So will this imply that if we provide the header with column names in the flat file, we dont need to provide field names in Configuration?

Correct me please if am wrong.

Regards,

Ambili