Skip to Content
0
Former Member
Dec 11, 2008 at 06:54 PM

Upload any XML file to internal table

30 Views

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.