12-11-2008 6:54 PM
Hi,
I'm writing a FM to upload any XML file (Which means I don't know the structure) to a internal table.
I tried to use FM 'GUI_UPLOAD' and CALL TRANSFORMATION ('ID'). But the problem is that, the RESULT tab of CALL TRANSFORMATION ('ID') needs to define the structure of the table for the corresponding XML file, otherwise it will not work. For example, I want to get the result table like this:
CALL TRANSFORMATION ('ID')
SOURCE XML xmlupl
RESULT tab = <tab>.
Then it will give me a run time error 'CX_XSLT_FORMAT_ERROR' because I didn't give a specific structure for <tab>.
Any solution for my situation?
Thanks.
12-11-2008 7:29 PM
Where is your XLST file for the call transformation ID
From ABAP to XML you can do it as dynamic, but XML to ABAP you need a XLST to convert.
otherwise please look at this
a®
12-11-2008 7:29 PM
Where is your XLST file for the call transformation ID
From ABAP to XML you can do it as dynamic, but XML to ABAP you need a XLST to convert.
otherwise please look at this
a®
12-11-2008 7:33 PM
Thanks a@s.
I've tried that one, it works for some of the XML files, but some of the XML files I tried encountered a type conversion error.