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

XSLT in Binding Instrucción

33 Views

Hi,

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="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">   <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>

regards,