cancel
Showing results for 
Search instead for 
Did you mean: 

file content conversion in receiver file adapter

Former Member
0 Kudos

hello friends,

mine is proxy2file scenario.

I am using ftp adapter on receiver end wherein a csv file has to be generated on target end.

everything is workinf fine except for one small issue.

my customer wants the fieldnames of the line items to be appeared in the file (as heading) followed by the data.

please let me know as how to achieve this.

I have header and line items.

fieldnames for header not reqd only lineitem fiels names are reqd in the file.

Regards

Madhu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Madhu,

It is very easy to achieve this requirement.

Just, you need to add the fields in the header and map with Constants. So that, the field names will be displayed on the top and then the field values will be displayed below.

Thanks,

Answers (3)

Answers (3)

former_member518917
Participant
0 Kudos

use the FCC parameter lineitem.addHeaderLine =1

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

RKothari
Contributor
0 Kudos

Hi,

You can also try below mentioned approaches:

1. You can create additional data type for field names and pass the value of field names as constant to this node in mapping.

Place this structure in between Header and line items.

In Receiver adapter FCC you can populate the value of this structure.

2. You can create a custom adapter module , which will insert the field name accordingly.

Former Member
0 Kudos

Hi Madhu,

This can be achieved using FCC.

Please refer the blog. http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3228. [original link is broken] [original link is broken] [original link is broken]

Thanks

Sahil