Skip to Content
0
Former Member
Jul 06, 2006 at 01:13 PM

call transformation with dynamic table

427 Views

hi

i uploaded the xml file from application server into a internal table

data : begin of t_x occurs 0,
d type string,
end of t_x.
  OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT .

  DO.
    READ DATASET file INTO t_x-d.
    IF sy-subrc <> 0.
      EXIT.
    ELSE.
    append t_x.
    clear t_x.
    ENDIF.
  ENDDO.
  CLOSE DATASET filename.

and after i want to call call transformation but i can't put a structure ref to a table like this

CALL TRANSFORMATION ('ID')

SOURCE XML xmlupl

RESULT tab = t001[]

because my file xml are not always the same structure.

So is it possible to have a call transformation wit dynamic structure

thanks for your help

serge