cancel
Showing results for 
Search instead for 
Did you mean: 

Abt XSLT tricky mapping

Former Member
0 Kudos

Hi Friends,

I am working on one scenario file to IDoc using XSLT Mapping.I have got the following query.

The file is obtained by the third party as xsd file.

This xsd file is mapped to IDoc.The xsd file contains multiple tax details (E1EDK04 seg) at the header level and multiple line item details at the item level (E1EDP01- E1EDP04 seg).

My query is, for each Tax header detail (E1EDK04), only one Tax Item detail /item detail should appear.

For ex:

E1EDK04(1) should match with E1EDP01-E1EDP04 (1) values. and so on.

IDOC

--E1EDK04 (1)

--E1EDK04 (2)

--E1EDP01

-


E1EDP02

-


E1EDP04 (1)

--E1EDP01

-


E1EDP02

-


E1EDP04 (2)

Currently I am getting structure as below:

IDOC

--E1EDK04 (1)

--E1EDK04 (2)

--E1EDP01

-


E1EDP02

-


E1EDP04 (1)

-


E1EDP04 (2)

--E1EDP01

-


E1EDP02

-


E1EDP04 (1)

-


E1EDP04 (2)

but the desired result is :

IDOC

--E1EDK04 (1)

--E1EDK04 (2)

--E1EDP01

-


E1EDP02

-


E1EDP04 (1)

--E1EDP01

-


E1EDP02

-


E1EDP04 (2)

E1EDK04 (1) seg to E1EDP04 (1)seg and so on for the above case using XSLT mapping..?

Thanks in advance for your help

Sam

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Myself solved this issue....

Former Member
0 Kudos

Is there a specific reason why you are using XSLT mapping? You can go for graphical mapping and use node functions to acheive your result.

Former Member
0 Kudos

Yes, since the sender system sends xsd file ,also there exists xslt mapping means I am updating the xslt mapping...