Diese Seite (Version-1) wurde zuletzt am 28-März-2017 14:37 von UnbekannterAutor geändert.

Du bist nicht autorisiert, diese Seite umzubenennen.

Du bist nicht autorisiert, diese Seite zu löschen.

Versionsgeschichte der Seite

Version Zuletzt geändert Größe Autor Änderungen Kommentar

Links

Eingehende Links Ausgehende Links

Versionsunterschiede

Unterschiede zwischen Version und .

Zeile 1: 51 Zeilen hinzugefügt.
[{ALLOW view All}]
[{ALLOW edit Authenticated}]
For accessing __XML__ documents use
[iXML|http://help.sap.com/saphelp_nw04/helpdata/en/86/8280cc12d511d5991b00508b6b8b11/frameset.htm]
For __XSLT__ you can create a "Transformation". \\
1. Object Navigator > Right Click Package > Create > Other (1) > Transformation \\
(This opens an XSLT editor, you can use also transaction STRANS)
2. Write down your XSLT specs
3. Activate it (!)
4. Test it (F8)\\
(This will use program "SXSLT_TEST", here you can look how to do it in ABAP)
5. Write a small program to automate transformation from one file to another
{{{
*&---------------------------------------------------------------------*
*& Report Y_IXML001
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT Y_IXML001.
Data: g_ixml type ref to if_ixml,
streamFactory type ref to if_ixml_stream_factory,
iStream type ref to if_ixml_istream,
oStream type REF TO IF_IXML_OSTREAM,
xmlRes type string,
out type string.
type-pools: ixml.
class cl_ixml definition load.
g_ixml = cl_ixml=>create( ).
streamFactory = g_ixml->create_stream_factory( ).
iStream = streamFactory->create_istream_uri( 'file://e:\sap\test.xml' ).
oStream = streamFactory->create_ostream_uri( 'file://e:\sap\result.xml' ).
CALL TRANSFORMATION Y_TRANS001
SOURCE XML iStream
RESULT XML oStream.
write 'Done.'.
}}}