on 02-24-2010 7:24 AM
Hi everybody,
I got an ABAP mapping that uses CALL TRANSFORMATION:
TRY.
CALL TRANSFORMATION (strxsltid)
SOURCE XML IDOCXML_DOCUMENT
RESULT XML result.
CATCH cx_xslt_abap_call_error INTO lr_oref.
text = lr_oref->get_text( ).
...
ENDTRY.
The TRANSFORMATION returns result THAT GETS ALREADY serialized!
On base of the result I want to create an new output document:
* Create output document
DATA: li_odocument TYPE REF TO if_ixml_document.
li_odocument = NEW_DOCUMENT.
* Render document
DATA: li_ostream TYPE REF TO if_ixml_ostream.
li_ostream = li_streamfactory->create_ostream_xstring( result ).
* Create renderer
DATA: li_renderer TYPE REF TO if_ixml_renderer.
li_renderer = li_ixmlfactory->create_renderer( ostream = li_ostream
document = li_odocument ).
li_renderer->render( ).
--> The problem is, that already CALL TRANSFORMATION creates a output document. so at the end of the mapping I got a new document wich includes the result of CALL TRANSFORMATION and NEW_DOCUMENT in one document.
How can I suppress CALL TRANSFORMATION from writing the output-stream?
Thanks regards
Mario
Edited by: Mario Müller on Feb 24, 2010 2:27 AM
no answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.