cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP-Mapping with CALL TRANSFORMATION

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

no answers