cancel
Showing results for 
Search instead for 
Did you mean: 

Complex XML structure to FlatFile

Former Member
0 Kudos

Dear Expertise,

I have a scenario, where I need to convert complex XML structure to Flat File with Fixed length. In my case XML is IDOC XML. But for understanding purpose I am giving the following structrue.

Suppose I have XML structure as follows

*****************************************************************************************

<sub>

<name>test</name>

<empno>1212</empno>

<sub1>

<lastname>lastname</lastname>

<middlename>middelname</middelname>

<sub2>

<city>city</city>

<country>country</country>

</sub2>

</sub1>

<sub>

***************************************************************************************

How to configure the receiver adapter for fixed field lengths in this case. I need configuration parameters for this requirement.

Advanced Thanks,

Gujjeti

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181985
Active Contributor
0 Kudos

solved.

former_member181985
Active Contributor
0 Kudos

Sorry data is wrongly formated.

Dear Expertise,

I have a scenario, where I need to convert complex XML structure to Flat File with Fixed length. In my case XML is IDOC XML. But for understanding purpose I am giving the following structrue. Suppose I have XML structure as follows

<sub>
	<name>test</name>
	<empno>1212</empno>
	<sub1>
		<lastname>lastname</lastname>
		<middlename>middelname</middelname>
			<sub2>
				<city>city</city>
				<country>country</country>
			</sub2>
	</sub1>
<sub>

How to configure the receiver adapter for fixed field lengths in this case. I need configuration parameters for this requirement.

Advanced Thanks,

Gujjeti

Former Member
0 Kudos

Hi Praveen,

This link might help you in converting xml to flat file.

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

regards,

ravi.

former_member184619
Active Contributor
0 Kudos

Hi Praveen,

Check these links

/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

Sachin

Former Member
0 Kudos

Hello,

You need Receiver File Content Conversion, this link will help you

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

Regards,

Ramesh P