Skip to Content
Apr 01, 2013 at 08:25 PM

XSLT in Binding Instrucción



I have the following problem: In the container I want to pass the value of one variable to another, but I must validate that if the variable is empty, write the word in the variable EMPTY destination, but assigns the value it brings the source variable.

I was thinking of using XSLT settings on the binding instruction, but not how to use it. I tested creating the XSLT XSLT_TOOL the transaction, but it does not work and I want to learn how.

 <?sap.transform simple?> <tt:transform xmlns:xsl="" version="1.0" xmlns:tt="" xmlns:ddic="" xmlns:def="">   <tt:root name="BUKRS" type="ddic:BUKRS"/>   <tt:template>     <xsl:choose>       <xsl:when test="BUKRS =null ">         <BUKRS tt:value="EMPTY"/>       </xsl:when>       <xsl:otherwise>         <BUKRS tt:value-ref=".BUKRS"/>       </xsl:otherwise>     </xsl:choose>   </tt:template> </tt:transform>