Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Content conversion at receiver side

Hi

I need to convert XML to a flat file. I am using Content conversion. But i could not get the required output.

My XML is

<MASTER>

<SEGNAM>MASTER</SEGNAM>

<PERSONAL>

<SEGNAM>PERSONAL-1</SEGNAM>

<IDNKD>IDNKD1</IDNKD>

<CONTACTS>

<SEGNAM>CONTACTS-1</SEGNAM>

<EDATUV>EDATUV1</EDATUV>

<EDATUB>EDATUB1</EDATUB>

</CONTACTS>

<CONTACTS>

<SEGNAM>CONTACTS-2</SEGNAM>

<EDATUV>EDATUV2</EDATUV>

<EDATUB>EDATUB2</EDATUB>

</CONTACTS>

</PERSONAL>

<PERSONAL>

<SEGNAM>EIEDP10-2</SEGNAM>

<IDNKD>IDNKD1</IDNKD>

<CONTACTS>

<SEGNAM>CONTACTS-3</SEGNAM>

<EDATUV>EDATUV3</EDATUV>

<EDATUB>EDATUB3</EDATUB>

</CONTACTS>

<CONTACTS>

<SEGNAM>CONTACTS-4</SEGNAM>

<EDATUV>EDATUV4</EDATUV>

<EDATUB>EDATUB4</EDATUB>

</CONTACTS>

</PERSONAL>

<MASTER>

And i need the flat file as follows

MASTER

PERSONAL-1 : IDNKD1

CONTACTS-1 : EDATUV1 EDATUB1

CONTACTS-2 : EDATUV2 EDATUB2

PERSONAL-2 : IDNKD1

CONTACTS-3 : EDATUV3 EDATUB3

CONTACTS-4 : EDATUV4 EDATUB4

.....

But i am getting this as

PERSONAL-1 : IDNKD1 CONTACTS-1 : EDATUV1 EDATUB1

CONTACTS-2 : EDATUV2 EDATUB2

PERSONAL-2 : IDNKD1 CONTACTS-3 : EDATUV3 EDATUB3

CONTACTS-4 : EDATUV4 EDATUB4

Am getting problem in the file content conversion. Even if i specify end Separator as 'nl', it is not working.

Any idea why this happens ?

Regards

Andy

Not what you were looking for? View more on this topic or Ask a question