cancel
Showing results for 
Search instead for 
Did you mean: 

Content Conversion

Former Member
0 Kudos

Hi

I need to transform text file with 1 line to this xml

my line for example is ABC

is it possible to convert it with content conversion to this strucutre ? or do I have to use another node in xml?

***<FI_Hashav_Mail_MT>

*******<Text>ABC</Text>

***</FI_Hashav_Mail_MT>

another node is

***<FI_Hashav_Mail_MT>

*****<Line>

*******<Text>ABC</Text>

*****</Line>

***</FI_Hashav_Mail_MT>

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

I dont think the strucutre1 can be created using the sender file adapter.

***<FI_Hashav_Mail_MT>

*******<Text>ABC</Text>

***</FI_Hashav_Mail_MT>

The reason is your RecordsetStrcuture is mandatory field in the content conversion parameters and for every element in the RecordsetStructure you will need a .fieldNames as well.

You will need a strcuture like this,

***<FI_Hashav_Mail_MT>

*****<Line>

*******<Text>ABC</Text>

*****</Line>

***</FI_Hashav_Mail_MT>

Regards

Bhavesh

Answers (4)

Answers (4)

Former Member
0 Kudos

not possible

Former Member
0 Kudos

HI,

I think it is not possible to convert it with content conversion to this strucutre.

Just see this link for the structure you should use:

http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm

You need to insert another node as mentioned in the before posts.

Regards,

Gunasree.

Former Member
0 Kudos

Hi,

Firstly you need to mention the Recordset Structure as this the mandatory filed for any file content conversion.

Also you need to for fixed length formats for the field names in this case.

For eg: consider the Recordset Structure to be Row,*

then Row.fieldNames should be mentioned as ABC,......,....(in case of more than one field name).

Also the separator for these filed names should be mentioned,so that if it has second line it picks up the entire second line.

Regards

Madhu

Former Member
0 Kudos

Shai,

You can do it very easily. In content conversion you specify the total maximum length of the line then it picks up the entire row. Also specify the endseparator as 'nl' so that if it has second line it picks up the entire second line.

But you have to give maximum length for the row of the file.

---Satish