Skip to Content
-1

Is it possible to pass Transformation ID as parameter

Dear experts,

I am just starting to play with XML and would like to know if it is possible to pass the Transformation using parameter/variable

CALL TRANSFORMATION ztran
     SOURCE XML g_xmldata
     RESULT para = i1_tab[].

I've created a Transformation ztran and would like to know if it is possible to pass it using a variable.

Thanks,

Francis

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 11, 2017 at 10:56 AM

    Why don't you read the documentation for CALL TRANSFORMATION before asking such a question.

    It is written there, that the name of the transformation can be specified dynamically as (name) ...

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Keller,

      Thanks for your help and guidance. I managed to solve it myself by adding a new root (e.g. COUNT) and add assigning it to the attribute in the XLST_TOOL.

      Then call transformation as follows:

           call transformation (g_trans_id)
              source Records = i1_tab[]
                     COUNT = txt_count
              result XML xml_xout.
      

      Regards,

      Francis