cancel
Showing results for 
Search instead for 
Did you mean: 

File Reciever content conversion header line

Former Member
0 Kudos

Hi all,

I want to convert a XML to a CSV-file using file reciever adapter.

Doing this I want to add the

The parameter for content conversion:

recordset: ET_AWB,item

parameter list:

item.addHeaderLine = 1

item.fieldSeparator = ;

ET_AWB.addHeaderLine = 1

ET_AWB.fieldSeparator = nl

The file is created successfully but the header line is not writen. Could it be that the header line is only created if the recordset is a single type?

Can anybody help me?

Thanks a lot!

Florian

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

HI,

One option is to make the header is part of payload , so like other details , you can get the first line as header line.

To know more- http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

REgards,

Moorthy

Answers (3)

Answers (3)

Former Member
0 Kudos

HI all,

thanks for the information!

My scenario is a RFC-Message with more than 1 table which is mapped into several RFC-Messages (Message split).

Because I use RFC-functions for mapping I do not want to change the XML because then I would need an own DT/MT.

Probably because the record type is not a single recordset it doesn't function.

Unfortunately also the option from Prakash with explicitely defined header names doesn't function. Has anybody one more idea? Or is this what I want to do impossible?

Thanks a lot!

Florian

former_member206604
Active Contributor
0 Kudos

Hi,

You can also try with another option that is available..

item.addHeaderLine = 3

item.headerLine = AWB_PA_NR,VKORG,...etc,

Prakash

Shabarish_Nair
Active Contributor
0 Kudos

make a small change in you DT/MT so that your target XML looks like;

- node and then use the following in FCC;

recordset: item

parameter list:

item.addHeaderLine = 1

item.fieldSeparator = ;

item.endSeparator = 'nl'

it will work now.