Ansicht
Dokumentation

ABENABAP_XSLT - ABAP XSLT

ABENABAP_XSLT - ABAP XSLT

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

XSL Transformations

An XSL transformation is a program in the repository that is written in XSLT (XSLT program) and used for the transformation of XML data. Existing XLST programs in the repository can be called using the statement CALL TRANSFORMATION. XSLT programs can be edited in the Transformation Editor. This is called either with transaction STRANS or by choosing Edit Object → More → Transformation followed by XSLT Program in the Object Navigator in the ABAP Workbench.

The source and result of a general XSL transformation are XML data. When an XSL transformation is called using the statement CALL TRANSFORMATION, however, ABAP data can also be transformed directly to XML and vice versa. For this purpose, a serialization or deserialization is performed implicitly, with asXML as an intermediate format.

IMAGE @@ABDOC_asXML.gif@@567@@226@@

  • In the case of transformations that use ABAP data as a source, the ABAP data is first serialized to a canonical XML representation (asXML) with the predefined identity transformation ID. This intermediate result is then used as the actual source for the XSL transformation. If the transformation ID itself is called in CALL TRANSFORMATION, the intermediate result is in the direct output.
  • In the case of transformations that have ABAP data as a result, the result of the XSL transformation is deserialized directly to the ABAP data. A prerequisite for the deserialization is that the result represents a canonical XML representation. For transformations from XML to ABAP, the transformation is also performed conceptually to a virtual asXML structure first, which is then deserialized, even if only one transformation step takes place technically.

The ABAP runtime framework contains an SAP XSLT processor for executing the transformations. It supports almost all XSLT statements and provides enhancements (extension instructions) such as the option of calling ABAP methods from XSLT programs. For more information about the SAP XSLT processor, see the documentation SAP XSLT Processor (Reference) in SAP Help Portal.






Addresses (Business Address Services)   General Material Data  
This documentation is copyright by SAP AG.

Length: 3533 Date: 20240329 Time: 123328     sap01-206 ( 89 ms )