Skip to Content

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

How to read the attribute in mapping..

Hi,

My source XML looks like this

<GLDEBITACCT>

<VALUE>0545-K-2006605-5500001</VALUE>

<GLCOMP glorder="0">0545</GLCOMP>

<GLCOMP glorder="1">K</GLCOMP>

<GLCOMP glorder="2">2006605</GLCOMP>

<GLCOMP glorder="3">5500001</GLCOMP>

</GLDEBITACCT>

Where glorder is the attribute of GLCOMP. Now I have requirement to read the attribute ( atleast 2 of them)

I have to map to target field checking the value in glorder="1

For e.g. with above XML, if the value in glorder="1 is K than map value from glorder="2 (2006605) to Target 1.

IF the glorder="1 is P map the value in glorder="2 to Target 2 and goes on for another one

How can i acheive this mapping. When I tried putting the value of glorder, i am not getting anything.

Regards,

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