Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Transformation Error in Loop

Former Member
0 Kudos

I am trying to do a XSLT Transformation and introduced a node as below for a nested table:

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S33 { color: #009300; }

<tt:cond>
<VENDOR>
<tt:loop ref=".REQUEST.BANNERAUTH.PIR_DEFAULTS.VENDOR">
<ZACW_LIFNR>
<tt:cond>
<LIFNR tt:value-ref="LIFNR"/>
</tt:cond>
</ZACW_LIFNR>
</tt:loop>
</VENDOR>
</tt:cond>

There is no syntax error on this but on processing it shows the below error:

System expected the end of the element 'VENDOR ' REQUEST(1)BANNERAUTH(21)ZACW_BANNER_AUTH_S(1)PIR_D

Please suggest on how to get rid of error.

5 REPLIES 5

Sandra_Rossi
Active Contributor
0 Kudos

It's not XSLT, it's a Simple Transformation - two different languages (and the name of transaction XSLT_TOOL is misleading, use transaction STRANS instead)

Former Member
0 Kudos

Hi Sandra,

Thank you for the response. Yes you are right its misleadingbecause of the transaction code name. however I was looking for a way to get rid of the XML processing error. Could you please suggest on what changes do i need to make in the simple transformation for the nested table.

Sandra_Rossi
Active Contributor
0 Kudos

Please show the XML around REQUEST(1)BANNERAUTH(21)ZACW_BANNER_AUTH_S(1)PIR_D

Former Member
0 Kudos
-<PIR_DEFAULTS>
-<ZACW_PIR_DEFAULT_S>
<IS_MCKESSON/>
<MCKESSON_VENDOR/>
<DSD_VENDOR>
<LIFNR>0001028130</LIFNR>
<LIFNR>0001028152</LIFNR>
</DSD_VENDOR>

Sandra_Rossi
Active Contributor
Where is <ZACW_LIFNR> ?