cancel
Showing results for 
Search instead for 
Did you mean: 

How to create two headers line in CSV file for File Receiver Adpater ?

former_member189387
Active Contributor
0 Kudos

Hi friends ,

My scenario is RFC to File. I am downloading file in CSV format . May I know how do i add two line of staic headers Like follows

<b> CLOCTYP CFLOCTYP

Exe Loc. Type Cus Loc. Type</b>

Best Regards.,

V.Rangarajan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

Easy way out is make the header lines part of your Data Types.

Regards,

Sumit

Former Member
0 Kudos

Your requirement is not clear. Do you want to have a XML tag value repeated in the target file?

If so, you need to have the value occuring 2 times in the target XML. There is no alternative for this.

If your query is different, explain your query.

Regards,

Jai Shankar

former_member189387
Active Contributor
0 Kudos

My Input xml will be like

<?xml version="1.0" encoding="UTF-8"?>

<ns0:FileRec_MT xmlns:ns0="urn:tabFile">

<ContactFile>

<Contact>

<Name>Raghavendra</Name>

<LName>GURU</LName>

<Company>xxx</Company>

</Contact>

</ContactFile>

</ns0:FileRec_MT>

<b>Output in csv as</b>

Raghavendra, Guru ,xxx

My requirement is [ 2 header Lines ]

<b>CLOCTYP CFLOCTYP CFPLACE

Exe Loc.Type Cus Loc. Type Place</b>

Raghavendra Guru xxx

If multiple rows comes it has to come like

<b> CLOCTYP CFLOCTYP CFPLACE

Exe Loc. Type Cus Loc. Type Place</b>

Raghavendra Guru xxx

test test yyyyy

Former Member
0 Kudos

Simplest soln would be to have another field in your data type and map it to a constant (Header value - CLOCTYP CFLOCTYP CFPLACE

Exe Loc. Type Cus Loc. Type Place ).

Regards,

Jai Shankar

Former Member
0 Kudos

Hi,

Check below link , it may br helpful.

http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/frameset.htm - Converting File Content in the Receiver Adapter (Parameters for the Recordset Structure

)

Rgds,

Srini

former_member189387
Active Contributor
0 Kudos

Hi Srinivas,

The link which you have provided is for

Configuring the Sender Plain HTTP Adapter

Regards.,

V.Rangarajan