Skip to Content
0
Dec 07, 2022 at 01:03 PM

ABAP BTP - Dynamic XSLT

109 Views

Hi,

I'm looking for a way to create XSLT transformations dynamically in ABAP BTP.

I'm porting some on-premise code which is evaluating XPath expressions provided in configuration so I cannot use 'fixed' transformations.

In on-prem system I was using cl_xslt_processor class ( described in https://blogs.sap.com/2019/04/04/how-to-generate-xml-dynamically-from-xslt/ ).

I could also use FM 'XSLT_MAINTENANCE' to generate ;local' transformations on the fly.

Both options are not available in BTP now.

There is XCO for transformations https://help.sap.com/docs/SAP_S4HANA_CLOUD/6aa39f1ac05441e5a23f484f31e477e7/8e958e24159f4ece888fd72d91993346.html but it requires package & transport so obviously cannot be used to generate a transformation in customer production system.

Is there any API available to achieve this?