2006 Aug 03 4:18 PM
Hi,
I have a following problem. I need to convert one ABAP table into XML, using a CALL TRANSFORMATION, but with some corrections.
Each table field should be transformed into XML without changes, except in case that it has a value of, let's say 'ABC'. If the field has this value, than resulting XML should not contain 'ABC', but result of CL_ENCRYPT=>ENCODE('ABC') method call.
Is it possible to solve this with a simple transformation, and if not, how to solve it with the "normal" transformation ? This is my first XSL transformation , so any help/advice/template is very welcome
Thanks, Srdjan
Hi,
I have a following problem. I need to convert one ABAP table into XML, using a CALL TRANSFORMATION, but with some corrections.
Each table field should be transformed into XML without changes, except in case that it has a value of, let's say 'ABC'. If the field has this value, than resulting XML should not contain 'ABC', but result of CL_ENCRYPT=>ENCODE('ABC') method call.
Is it possible to solve this with a simple transformation, and if not, how to solve it with the "normal" transformation ? This is my first XSL transformation , so any help/advice/template is very welcome
Thanks, Srdjan
2006 Aug 05 7:52 AM
Hello
SAP XSLT engine has some extensions with which you can call ABAP class method. See here - <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/7f/b7463c32a3fe13e10000000a114084/frameset.htm">Additional SAP Statements</a>.
Sorry, I have not tries it myself.
2006 Aug 05 9:39 AM
the best and easy option would be convert the itab field value to the desired format before using the call transformation to convert it to xml. otherwise you have to write your own XSLT program to handle this.
Regards
Raja
2006 Oct 17 1:08 PM
simple transformations can not call any method of ABAP. XSLT can do it. But I think the simplest solution is do this in ABAP, and passed the finalized ABAP data structure to simple transformations
2006 Oct 17 2:17 PM
thanks. It is the simplest, but unfortunately not possible because of the nature of the application, so because of that I try to do this using transformation ,...
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |