cancel
Showing results for 
Search instead for 
Did you mean: 

Using Starts-with XSLT function with XI

Former Member
0 Kudos

Hi All,

Any help is apperciated. I am using the starts-with xslt function and when i do so the message gets stucks in the queue. If i run code without the starts-with then is works??

<xsl:for-each select="receipt/prod">

<xsl:for-each select="carrier/carrier_detail/carrier">

<xsl:choose>

<xsl:when test="carrier_type='CASE'">

<xsl:choose>

<xsl:when test="starts-with(carrier_barcode, '00')">

do something

</xsl:when>

<otherwise>

do something

</otherwise>

so on..

when i try to process messsage using this xslt format it gets sysfail in the queue, but without it, it works fine.

I need to a special format if the condition of barcode starts with 00

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Also tried using if instead of when.. but still have same issue.

Also Using XI 3.0

Edited by: Chirag Shah on Mar 27, 2009 12:54 AM

Former Member
0 Kudos

Hi,

can you post the detailed error message you're facing please?

Thanks,

Kai

Former Member
0 Kudos

In outbound status i receive a green flag. When i double click on the flag it shows me the queue has 1 entry. Double click on that shows me error of 'sysfail'

Former Member
0 Kudos

Chirag,

Create xslt on abap mapping using transaction SXLT_TOOL on XI abap stack. Copy paste same xslt code and run with test file. You can debug code or most likely you can see error message too.

Actually your mapping raising an exception which result in sys-fail.

Hope this will help.

Nilesh

Former Member
0 Kudos

how do i know what stack im on??

I put it in my current sap xi window and it says transaction code does not exist.

Former Member
0 Kudos

In your interface mapping, when you select mapping program, there is list: when you select abap_xsl, then you will be in ABAP xsl intepretor.

You have choose inside choose, make sure you have proper closing tags. Better to use xmlspy to test it.

Regards.

Liang

Former Member
0 Kudos

Normal XI - R/3 system. The way you right abap code...TC : XSLT_TOOL

Former Member
0 Kudos

hey thanks, i was able to use the tcode

It was test and compiled fine. It had no issues with the XSLT code, now I need to figure out why it is having a problem when used with a BPM???

Thanks

Chirag

Former Member
0 Kudos

Yes I have tested using XMLSpy and StylusStudio. Also works using the XSLT_TOOL in XI.

But doesnt work when it is using a BPM for some reason?? Any suggestions?

Former Member
0 Kudos

Turns out that is xslt 2.0 and cant be used with XI 3.0.