<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>xsl &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/xsl/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sapewmhelp.com</link>
	<description>SAP EWM questions answered by experts — ABAP, S/4HANA, warehouse management</description>
	<lastBuildDate>Sat, 18 Oct 2025 20:28:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>create an XSL (Extensible Stylesheet Language) transformation using the XCO Library in SAP (ABAP)</title>
		<link>https://www.sapewmhelp.com/question/create-an-xsl-extensible-stylesheet-language-transformation-using-the-xco-library-in-sap-abap/</link>
					<comments>https://www.sapewmhelp.com/question/create-an-xsl-extensible-stylesheet-language-transformation-using-the-xco-library-in-sap-abap/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sat, 18 Oct 2025 20:28:10 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=create-an-xsl-extensible-stylesheet-language-transformation-using-the-xco-library-in-sap-abap</guid>

					<description><![CDATA[The XCO Library (ABAP Cloud) — part of SAP’s modern ABAP RESTful programming model — allows you to programmatically create and manipulate repository objects like CDS views, classes, and transformations (including XSLT). CLASS zcl_create_xsl_demo DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS create_xsl. ENDCLASS. CLASS zcl_create_xsl_demo IMPLEMENTATION. METHOD create_xsl. &#8221; Get the package where the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The <strong>XCO Library (ABAP Cloud)</strong> — part of SAP’s modern ABAP RESTful programming model — allows you to programmatically create and manipulate repository objects like CDS views, classes, and transformations (including XSLT).</p>
<p>CLASS zcl_create_xsl_demo DEFINITION<br />
PUBLIC<br />
FINAL<br />
CREATE PUBLIC.</p>
<p>PUBLIC SECTION.<br />
METHODS create_xsl.<br />
ENDCLASS.</p>
<p>CLASS zcl_create_xsl_demo IMPLEMENTATION.</p>
<p>METHOD create_xsl.<br />
&#8221; Get the package where the object will be created<br />
DATA(lo_package) = xco_cp_abap_repository=&gt;package-&gt;for( &#8216;Z_MY_PACKAGE&#8217; ).</p>
<p>&#8221; Define the transformation name<br />
DATA(lo_xsl_name) = xco_cp_abap_repository=&gt;object_name-&gt;for( &#8216;Z_MY_XSLT&#8217; ).</p>
<p>&#8221; Define the transformation source code<br />
DATA(lv_xsl_source) = |&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;| &amp;&amp;<br />
|\n&lt;xsl:stylesheet version=&#8221;1.0&#8243; xmlns:xsl=&#8221;http://www.w3.org/1999/XSL/Transform&#8221;&gt;| &amp;&amp;<br />
|\n &lt;xsl:template match=&#8221;/&#8221;&gt;| &amp;&amp;<br />
|\n &lt;output&gt;| &amp;&amp;<br />
|\n &lt;xsl:value-of select=&#8221;/root/value&#8221;/&gt;| &amp;&amp;<br />
|\n &lt;/output&gt;| &amp;&amp;<br />
|\n &lt;/xsl:template&gt;| &amp;&amp;<br />
|\n&lt;/xsl:stylesheet&gt;|.</p>
<p>&#8221; Create a new transformation object<br />
DATA(lo_xsl_object) =<br />
xco_cp_abap_repository=&gt;object-&gt;transformation-&gt;create(<br />
object_name = lo_xsl_name<br />
package = lo_package<br />
).</p>
<p>&#8221; Set the source code of the transformation<br />
lo_xsl_object-&gt;source-&gt;set( lv_xsl_source ).</p>
<p>&#8221; Persist (activate) the transformation in the repository<br />
lo_xsl_object-&gt;save( xco_cp_abap_repository=&gt;activation_mode-&gt;active ).</p>
<p>WRITE: / &#8216;XSL Transformation Z_MY_XSLT created and activated successfully.&#8217;.<br />
ENDMETHOD.</p>
<p>ENDCLASS.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/create-an-xsl-extensible-stylesheet-language-transformation-using-the-xco-library-in-sap-abap/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
