cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping flat to nested

Former Member
0 Kudos

Hi all,

I have a file to Idoc scenario where I get file pipe separated.

By FCC I read this file into a flat XML.

Now I have to map this to Idoc WPUBON.

My src is

WPB01,a,a,a

WPB02,b,b,b

WPB03,c,c,c

WPB03,d,d,d

WPB04,e,e,e

WPB02,f,f,f

WPB03,g,g,g

WPB04,h,h,h

WPB06,i,i,i

My target structure is:

WPB01

~WPB02

~ ~ WPB03

~ ~ WPB03

~ ~ WPB04

~WPB02

~ ~ WPB03

~ ~ WPB04

~ WPB06

Is there any standard solution for his problem?

I think it is not possible even with xslt. Any suggestions?

regards,

Anirudh.

Edited by: Anirudh Vyas on Oct 8, 2008 1:57 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Refer

Link:[Converting flat file to deeplt nested XML structure |https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9757] [original link is broken] [original link is broken] [original link is broken]; By riyaz

Former Member
0 Kudos

Hi Malini,

The solution by Riyaz is a bit complex.

Is there any where we can achieve the same using XSLT?

Regards,

Anirudh

Former Member
0 Kudos

Hi,

Is there any xslt solution for this?

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Not sure if this can be done with XSLT....! But definately this can be done using the Java Mapping.

Refer this Blog for By Sravya Talanki for the complete scerario desc of Ravi's blog.

Thanks

SaNv...